Rene Prent

Translate "Price Time"

9 posts in this topic

On 25.10.2016 at 9:44 PM, Rene Prent said:

I want to translate "Prive Time", I translated it in all Language files but with no result.

Who knows where i have to do this?

The same question from me.

Share this post


Link to post
Share on other sites

Hi. Anybody solve this problem? I found in helper.php string:

$price = number_format($price, $params->get('decimal', 2), $params->get('decimal_symbol', '.'), $params->get('thousands_sep', ','));
			return str_replace(array('000','$'), array($price,$currency), $priceFormat) . ($priceTime ? '/' . JTEXT::_($priceTime) : '');

But what's next? Where from JTEXT::_($priceTime) take the value? As an option, I can change this text with the one I need, but it is bed solution((

Share this post


Link to post
Share on other sites

hi guys,

same problem for me

I'm going mad

Any help ? tips ? gun ?

Sorry, I have created another topic about it (moderator could move it ??)

 

Share this post


Link to post
Share on other sites

Ok, I have found.

The string about price time is written in database (?? staff : why use this method ??)

But the problem is that the string is extracted from english langage file  (?? staff : why dont use the user language file ??)

So, to write the right string in your language, you must translate the english language files from administrator before to set the price time of your properties.

Enjoy ;)

Share this post


Link to post
Share on other sites

Hi does anybody have a solution for this, I also translated all files but nothing changed. Override won't find in the backend the words "day" "month" and so on. Please help

Share this post


Link to post
Share on other sites

Hi, guys! I solve the problem.

See this /public_html/administrator/components/com_bt_property/models/forms/property.xml

<field name="price_time" type="list" default="" label="COM_BT_PROPERTY_PRICE_TIME" description="COM_BT_PROPERTY_PRICE_TIME_DESC" class="inputbox">
            <option value="">JNONE</option>
            <option value="hour">COM_BT_PROPERTY_PRICE_TIME_HOUR</option>
            <option value="night">COM_BT_PROPERTY_PRICE_TIME_NIGHT</option>
            <option value="day">COM_BT_PROPERTY_PRICE_TIME_DAY</option>
            <option value="month">COM_BT_PROPERTY_PRICE_TIME_MONTH</option>
            <option value="year">COM_BT_PROPERTY_PRICE_TIME_YEAR</option>
        </field>

 

niwesa likes this

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now