User tests: Successful: Unsuccessful:
Pull Request for Issue #24161 .
An easy solution for the problem that translators could try to translate code. It seems that translators did not understand that code must not be tranlated.
Some proposed solutions seem to be rather sophisticated and need some work so this could be a very simple solution:
Add a comment above the Language Key.
Code Review
Following the issue description there are translators who ty to translate the code.
Translators read the comment and don't touch the code.
no
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings |
I have tested this item
"we cannot heal stupidity" as you said some time ago. This could help in some way.
Title |
|
When using crowdin the proper way to comment a line os not placing a commented line above the string but to place the comment at the end of the line to be commented. The coment needs to start with //
It Will display for traslados then.
Maybe in the string itself?
Just the same - the correct way was to do what this PR does. YCFS
Well this works for me in another project. See:
$app_strings['LBL_SEARCH_OF'] = ' of '; // Usage: Page # of #
Maybe its only for PHP files?
Note: the comments will be displayed in Crowdin string into the section "Context" this is placed below the value to be translated. You need to click on it to see the contents.
A final say from me: Adding comments to the end of the string line it works fine with Crowdin as it supposed to be (using a Joomla file). See pictures.
Note: I also Hope some users stop saying nasty things as "we cannot heal stupidity" or YCFS (You Can't Fix Stupid). Do you feel its OK calling "Stupid" to others? No, you have no right to call it to nobody. Please keep your intelligent remarks just for you.
I'm leaving this conversation now.
Yes it works in crowdin but the comment is output in joomla :(
Maybe its only for PHP files?
I think so. The comment syntax of PHP files and ini files is different.
If Crowdin can't handle ini file syntax (comments starting with a semicolon), it's a Crowdin and not a Joomla issue.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
?
?
|
@horus68
As I wrote in TT forum:
This would throw an error for the file concerned, in core as well as com_localise.
Example: COM_CONTENT_ARTICLE_CONTENT="Content" //commentaire
**Parsing errors in language files**
JROOT/language/en-GB/en-GB.com_content.ini : error(s) in line(s) 9
As for "we cannot heal stupidity" , I do agree with @horus68 .
Many TTs are absolutely not code aware and this should remain present in everybody's mind.
com_localise displays these comments:
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-02 09:15:41 |
Closed_By | ⇒ | infograf768 | |
Labels |
Tks
There will be complaints that they dont see the comments in some translation tools but this is imho the correct way to mark something as not to be translated.