Language override

  • Posts: 15
  • Thank you received: 0
10 years 6 months ago #178553

-- url of the page with the problem -- : www.montinibags.it/collezione/prodotto/2...n-pelle-marrone.html
-- HikaShop version -- : Business 2.3.4

Hi, I need to translate my custom field values.
After reading on the forum I'm trying to create some language constant and use them as custom field value like that:
MARRONE_CUOIO="Marrone Cuoio"
SI="Si"
NO="No"
OTTONE_VECCHIO="Ottone vecchio"

I've two questions:
1) is this the only way to translate custom field values?
2) it works for me only if I use only one entry/line and if I translate more than one term hikashop show me the constant instead of translated text (ex: VECCHIO_CUOIO instead of "Vecchio cuoio", see url please).

Where I'm wrong?
Thank you.

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

  • Posts: 26243
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178598

Hi,

HikaShop can translate the values of the custom fields.
It will look for in the translation keys if it can find a corresponding one.
The system transform the text into a translation key, using only uppercase and replacing special characters by underscores.

So, yes it is the correct way to translate custom field values.
For the second point, I'm not sure I understand it clearly ; can you please try to re-explain it or provide a screenshot to illustrate your problem ?

Kind regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 15
  • Thank you received: 0
10 years 6 months ago #178617

Hi, ok so this is the right way.
As you can see in the attachment, I've 4 entries in my language override window but it works only if I leave only one entry (the first one). If I insert more than one, hikashop show me not the translated text but the translation key (as seen in url).

So, this works and I get "blabla":
KEY = "blabla"

This NOT works and I get KEY, ANOTHERKEY and SOMEOTHERKEY:
KEY = "blabla"
ANOTHERKEY = "blablablabla"
SOMEOTHERKEY = "blablablablablabla"

Thank you.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #178711

Hello,
And where/how do you exactly use these key word ?

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

  • Posts: 15
  • Thank you received: 0
10 years 6 months ago #178760

I need to translate all my custom field values (as you can see in url that I've posted), look at the custom field table under the price, you can see that 2 values are not translated and keys are showed insted (OTTONE_VECCHIO and MARRONE_CUOIO).

But I think that the problem is in the override window, because 1 line only works, more than one not.
thank you.

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

  • Posts: 26243
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178765

Hi,

You can activate the language debug mode in your Joomla global configuration.
It is possible that there is something in the overridden language file which make a parsing error.
With the Joomla language debug mode activate, you will be able to see that.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum