[Skip to main content](#vessel-content)

#   localized weight units

##

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

14 years 10 months ago -  14 years 10 months ago [\#32798](#32798) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  *[localized weight units](/forum/3-bug-report/32798-localized-weight-units#32798 "I have tried to replace English version &quot;kg&quot; to Russian version &quot;кг&quot;, but this unit is disappear. What should I do?  Also I need custom string for price per weight unit like this &quot;1000 руб. за кг&quot; and not like now &quot;1000 руб. / kg&quot; I don't see line for this in language file")* was created by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")*

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: 14 years 10 months ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjc5OC1sb2NhbGl6ZWQtd2VpZ2h0LXVuaXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 10 months ago [\#32815](#32815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: localized weight units](/forum/3-bug-report/32798-localized-weight-units#32815 "I have tried to replace English version &quot;kg&quot; to Russian version &quot;кг&quot;, but this unit is disappear. What should I do?  Also I need custom string for price per weight unit like this &quot;1000 руб. за кг&quot; and not like now &quot;1000 руб. / kg&quot; I don't see line for this in language file")*

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&gt;Views and change the line:
echo $this-&gt;currencyHelper-&gt;format($weight_price,$price-&gt;price_currency_id).' / '.JText::_($this-&gt;row-&gt;product_weight_unit);
to:
echo $this-&gt;currencyHelper-&gt;format($weight_price,$price-&gt;price_currency_id).' за '.JText::_($this-&gt;row-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjc5OC1sb2NhbGl6ZWQtd2VpZ2h0LXVuaXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

14 years 10 months ago -  14 years 10 months ago [\#32819](#32819) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Re: localized weight units](/forum/3-bug-report/32798-localized-weight-units#32819 "I have tried to replace English version &quot;kg&quot; to Russian version &quot;кг&quot;, but this unit is disappear. What should I do?  Also I need custom string for price per weight unit like this &quot;1000 руб. за кг&quot; and not like now &quot;1000 руб. / kg&quot; I don't see line for this in language file")*

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: 14 years 10 months ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile"). Reason: г is more correctly

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjc5OC1sb2NhbGl6ZWQtd2VpZ2h0LXVuaXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
