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

#   alias display when translating product

##

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

4 years 3 months ago -  4 years 3 months ago [\#343834](#343834) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  *[alias display when translating product](/forum/10-translation/904837-alias-display-when-translating-product#343834 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 8.0  Hi, I noticed that when updating a name of a product in a different language using the HikaShop country flags that the alias of that is exactly the product name with capitals, spaces etc.  This is different than what I expect (all small with - in between).  I have the support of translated aliasses set to ON.  Now I'm wondering if this is by design, a bug, something I did wrong or different?  Thanks for your reply.")* was created by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.1.5
-- PHP version -- : 8.0

Hi,
I noticed that when updating a name of a product in a different language using the HikaShop country flags that the alias of that is exactly the product name with capitals, spaces etc.

This is different than what I expect (all small with - in between).

I have the support of translated aliasses set to ON.

Now I'm wondering if this is by design, a bug, something I did wrong or different?

Thanks for your reply.

Last edit: 4 years 3 months ago by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile"). Reason: solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwNDgzNy1hbGlhcy1kaXNwbGF5LXdoZW4tdHJhbnNsYXRpbmctcHJvZHVjdD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

4 years 3 months ago [\#343849](#343849) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[alias display when translating product](/forum/10-translation/904837-alias-display-when-translating-product#343849 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 8.0  Hi, I noticed that when updating a name of a product in a different language using the HikaShop country flags that the alias of that is exactly the product name with capitals, spaces etc.  This is different than what I expect (all small with - in between).  I have the support of translated aliasses set to ON.  Now I'm wondering if this is by design, a bug, something I did wrong or different?  Thanks for your reply.")*

Hi,

It is not by design. It's a byproduct of how you translate your products and how HikaShop's internal translation system works:
When you use the translation popup to enter a translation for a text, the system will take the original text from the product, uppercase it, remove non-latin letters and use it as a translation key to add a translation override for your text.
So for example, if you have a product with the name "HikaShop English" and you enter the text "HikaShop Français" in the translation popup for the name, HikaShop will add a translation override:
HIKASHOPENGLISH="HikaShop Français"
Now, if the original alias of the product is "hikashop-english", when HikaShop's translation system looks for its translation text, it will look for that same translation key "HIKASHOPENGLISH". And so it will use "HikaShop Français" as the alias of the french version of the product.
To avoid that, you can enter translation key you want in the alias of the product. So instead of "hikashop-english", you could enter for example MY_HIKASHOP_ALIAS
Then, in the English translation popup, you can enter "hikashop-english" and in the french one, you can enter "hikashop-francais".

Now having spaces and accents in aliases is not necessarily a problem. It was 20 years ago and maybe 10 years ago, but now all browsers and search crawlers support UTF8 letters in URLs. So the alias is less useful than it was before and you could just not bother with all this.

Finaly, note that this supposes that the option "Non-latin translation keys" is turned off under the Languages tab of the HikaShop configuration. With that option activated, the system will use a hash instead of upper casing letters and removing non latin characters to generate the translation key. In that case, the alias issue shouldn't be one unless the text of the product name and the alias are exactly the same in the original language but in that case having the translated name and alias being the same too shouldn't be a problem either. Note however that if you already translated your content without that option activated, when you activate it, you'll have to redo your translations so this would only be useful for new shops.

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

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

4 years 3 months ago [\#343876](#343876) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  Replied by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")* on topic *[alias display when translating product](/forum/10-translation/904837-alias-display-when-translating-product#343876 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.1.5 -- PHP version -- : 8.0  Hi, I noticed that when updating a name of a product in a different language using the HikaShop country flags that the alias of that is exactly the product name with capitals, spaces etc.  This is different than what I expect (all small with - in between).  I have the support of translated aliasses set to ON.  Now I'm wondering if this is by design, a bug, something I did wrong or different?  Thanks for your reply.")*

Hi Nicolas,
Thanks for the great explanation.

I've been using parts of your tips already but the alias made me question this, probably because I was used to aliases having all small caps etc ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwNDgzNy1hbGlhcy1kaXNwbGF5LXdoZW4tdHJhbnNsYXRpbmctcHJvZHVjdD90bXBsPW1hcmtkb3du) 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.047 seconds

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