- Posts: 10
COMMUNITY FORUM
Create a new constant for the language override
- Max
- Topic Author
- Offline
- New Member
Less
More
6 years 11 months ago #165868
by Max
Create a new constant for the language override was created 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
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 11 months ago #165906
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Create a new constant for the language override
Hello Max,
Which language file did you edit?
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.
- Max
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
6 years 10 months ago #166145
by Max
Replied by Max on topic Create a new constant for the language override
in frontend both. Overwrite the constant with the translation depending on the selected language.
in the backend the Italian language
in the backend the Italian language
Please Log in or Create an account to join the conversation.
- Max
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
6 years 8 months ago #166998
by Max
Replied by Max on topic Create a new constant for the language override
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 8 months ago #167005
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Create a new constant for the language override
Hello,
Can you send me an example of your code?
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.