localized weight units

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #32798

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


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 12 years 11 months ago by progreccor.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32815

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.

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #32819

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"


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 12 years 11 months ago by progreccor. Reason: г is more correctly

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum