localized weight units
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Less
More
14 years 9 months ago - 14 years 9 months ago #32798
by progreccor
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
localized weight units was created by progreccor
I have tried to replace English version "kg" to Russian version "кг", but this unit is disappear.
What should I do?
Also I need custom string for price per weight unit like this "1000 руб. за кг" and not like now "1000 руб. / kg"
I don't see line for this in language file
What should I do?
Also I need custom string for price per weight unit like this "1000 руб. за кг" and not like now "1000 руб. / kg"
I don't see line for this in language file
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 14 years 9 months ago by progreccor.
Please Log in or Create an account to join the conversation.
14 years 9 months ago #32815
by nicolas
Replied by nicolas on topic Re: localized weight units
For kg, you can replace it by overriding it like that in the translation override:
KG="кг"
We'll add that to the Russian translation file so that it's like that by default. Would you happen to know the other symbol translations in Russian so that we can put them in the translation file too ?
For the / between the price and the weight unit, we didn't know that this would be a problem in different languages, so it can't be done via a translation override.
You will have to edit the file "listing_price" of the view "product" via the menu Display>Views and change the line:
echo $this->currencyHelper->format($weight_price,$price->price_currency_id).' / '.JText::_($this->row->product_weight_unit);
to:
echo $this->currencyHelper->format($weight_price,$price->price_currency_id).' за '.JText::_($this->row->product_weight_unit);
Note that this line is present twice in there so you will have to do the modification in both places. We'll look at adding a translation for that in next release.
KG="кг"
We'll add that to the Russian translation file so that it's like that by default. Would you happen to know the other symbol translations in Russian so that we can put them in the translation file too ?
For the / between the price and the weight unit, we didn't know that this would be a problem in different languages, so it can't be done via a translation override.
You will have to edit the file "listing_price" of the view "product" via the menu Display>Views and change the line:
echo $this->currencyHelper->format($weight_price,$price->price_currency_id).' / '.JText::_($this->row->product_weight_unit);
to:
echo $this->currencyHelper->format($weight_price,$price->price_currency_id).' за '.JText::_($this->row->product_weight_unit);
Note that this line is present twice in there so you will have to do the modification in both places. We'll look at adding a translation for that in next release.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
14 years 9 months ago - 14 years 9 months ago #32819
by progreccor
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Replied by progreccor on topic Re: localized weight units
you are so fast!
Great!
thank you for your work! I love this shop more and more!
Nicolas is great!
:woohoo:
In Russia we also use gramm ("g" = "г")
"mg" = "мг"
others measures are not in common use.
p.s.
could you correct also this line for others
VIEWS="Просмотры"
to
VIEWS="Шаблоны"
because it's meaning really is "templates"
Great!
thank you for your work! I love this shop more and more!
Nicolas is great!
:woohoo:
In Russia we also use gramm ("g" = "г")
"mg" = "мг"
others measures are not in common use.
p.s.
could you correct also this line for others
VIEWS="Просмотры"
to
VIEWS="Шаблоны"
because it's meaning really is "templates"
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 14 years 9 months ago by progreccor. Reason: г is more correctly
Please Log in or Create an account to join the conversation.
Time to create page: 0.235 seconds