Keyword

Create a new constant for the language override

More
6 years 11 months ago #165868 by Max
hello, for a multilingual site (2 language) I need to create K2 extrafields that use a CONSTANT name to translate with the language OVERRIDE system.

1-I create the extrafield
2-as the name I use CUSTOM_FIELDNAME_1
3-I create override translation for each languages (I verified that the code was written in the override.ini file of each language)
4-I open the backend and go to the k2 item where to enter the values in the extrafields and ... the name of the extrafield has not been translated! I see CUSTOM_FIELDNAME_1 instead of the translation.

Where am I doing wrong?

PS: other constants in the site (already present in the components) are translated normally

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #165906 by Krikor Boghossian
Replied by Krikor Boghossian on topic Create a new constant for the language override
Hello Max,

Which language file did you edit?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 10 months ago #166145 by Max
in frontend both. Overwrite the constant with the translation depending on the selected language.
in the backend the Italian language

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

More
6 years 8 months ago #166998 by Max
hello, excuse the slowness in replying, I add the translations through the Joomla OVERRIDE system

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 8 months ago #167005 by Krikor Boghossian
Replied by Krikor Boghossian on topic Create a new constant for the language override
Hello,

Can you send me an example of your code?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum