Translating labels

More
11 years 11 months ago #38285 by ggppdk
Replied by ggppdk on topic Translating labels
To find out the language strings used in a page do this:

1. In Joomla's Global Configuration, enable "Debug Language"

2. Refresh the frontend joomla page and all text that is produced via a language string will appear between dual stars e.g.:
**Read More ...**

3. Goto Joomla Language manager and goto Overrides:
Search for value: Read More ...
And you will see it is a language string FLEXI_READ_MORE
which you can load and set an override ...

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 11 months ago #38306 by Rooney
Replied by Rooney on topic Translating labels
I did this before. Debugging language has the result that the label is shown in question marks:
Code:
????Download????
which is correct related to Joomla help:

(text surrounded by pairs of question marks) indicates that the string is translatable but no match was found in the language definition file.

So, searching will not work because there is no string defined yet...

Searching for "Download" gives
Code:
FLEXI_CHOOSE_DIR
as a result!

Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 11 months ago #38307 by Rooney
Replied by Rooney on topic Translating labels
Wow. I just tried "Download" as string and it works. Without any FLEXI_. This is spooky...
The most spooky thing is that if I am changing the Label from "Download" to something else it is not working anymore.
So, actually I can create an override but not the field name, but the field label is taken as a string. Changing the label of the field changes the string...
I tried it. I changed the label of a related item field to "Download" and both, the related item and the file field label are translated with the set override.
This is not really practical.
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 11 months ago #38312 by ggppdk
Replied by ggppdk on topic Translating labels

Rooney wrote: Wow. I just tried "Download" as string and it works. Without any FLEXI_.


i was speaking of built-in language strings

about field label it will be taken as it is
e.g. if you write as field label:
File Download
the the name of language string will be "File Download"
if you write:
FLEXI_File_Download_02
the the name of language string will be "FLEXI_File_Download_02" so i am not sure that i understand the comment about "FLEXI_"

And of course there are language string without FLEXI_, you found the String with name "Download" in some other extension, right? ... because no language string with such name inside FLEXIcontent language file


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 11 months ago #38314 by Rooney
Replied by Rooney on topic Translating labels

ggppdk wrote: about field label it will be taken as it is
e.g. if you write as field label:
File Download
the the name of language string will be "File Download"
if you write:
FLEXI_File_Download_02
the the name of language string will be "FLEXI_File_Download_02" so i am not sure that i understand the comment about "FLEXI_"

I thought, that every label would automatically get a specific language string starting with FLEXI_

ggppdk wrote: And of course there are language string without FLEXI_, you found the String with name "Download" in some other extension, right? ... because no language string with such name inside FLEXIcontent language file

No, the language string "Download" does not come from another component. It works like that:
If you create a field with the label "Download" you can just use "Download" in the in-built override function of Joomla under the language manager. The label automatically becomes a language string DOWNLOADS and can be translated. So far, so easy, so good. There are two disadvantages:
1. All field labels with label "Download" will be translated. Even if only one label is supposed to.
2. Labels with a blank cannot be translated because a language string must not contain strings.
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 11 months ago #38315 by ggppdk
Replied by ggppdk on topic Translating labels

Rooney wrote: 1. All field labels with label "Download" will be translated. Even if only one label is supposed to.
2. Labels with a blank cannot be translated because a language string must not contain strings.

Hello,
but why would do this ? you can very easily avoid the above problem.

I mean if using the label as something to be language translated
then you should enter a label: "Download"
instead you should enter: "FC_Download"

Thus prefix all you language strings with something relevant and unique

For the above to work , please enter 2 language overrides one for backend and one for frontend

I have updated the FAQ article with corrected information
www.flexicontent.org/documentati ... -file.html


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.348 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save