New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [ticket/10780] Move colons from template files to language files. #730
Conversation
For now, colons are hardcoded in template files (adm, prosilver & subsilver2). In some languages, a space is needed before it or it's possible that another symbol is used. For this reason, colons are better located in the language files. *_COLON language key has been added when a language key is also used in another place without a colon. PHPBB3-10780
As discussed on IRC:
|
|
For now, colons are hardcoded in template files (adm, prosilver & subsilver2). In some languages, a space is needed before it or it's possible that another symbol is used. For this reason, colons are better located in the language files. *_COLON language key has been added when a language key is also used in another place without a colon. PHPBB3-10780
For now, colons are hardcoded in template files (adm, prosilver & subsilver2). In some languages, a space is needed before it or it's possible that another symbol is used. For this reason, colons are better located in the language files. *_COLON language key has been added when a language key is also used in another place without a colon. PHPBB3-10780
Updated. I'm so tired. :) |
Mael can you refer to a language that does not use colons and/or requires spaces before them? |
@@ -73,7 +77,6 @@ | |||
'CAT_WM_FILES' => 'Windows Media media files', | |||
'CHECK_CONTENT' => 'Check attachment files', | |||
'CHECK_CONTENT_EXPLAIN' => 'Some browsers can be tricked to assume an incorrect mimetype for uploaded files. This option ensures that such files likely to cause this are rejected.', | |||
'CREATE_GROUP' => 'Create new group', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional? Same for the other deleted keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, those are double language keys.
I don't know about other languages, but in French, a space is required both before and after all two- (or more) part punctuation marks and symbols, including : ; « » ! ? % $ #. |
Please gist and/or pastebin the IRC discussion and/or summarize the problem and the proposed solution and pros and cons. Maybe create an RFC for these changes where they can be properly discussed. The duplication of language keys specifically should be explained. Please include specific examples in your language that are not currently properly translated. |
I think I've already summed up the problem. Colons are hardcoded in template files (adm, prosilver & subsilver2) for now. In some languages, a space is needed before it. For example, in French, a space is required both before and after all two- (or more) part punctuation marks and symbols, including : ; « » ! ? % $ #. For this reason, colons are better located in the language files. The IRC discussion is really not interesting, I'm just asking to Nils if I can proceed and he's okay, he thinks I am right and that the colons should be in the language files. If you need concrete example because "in French, a space is required both before and after all two- (or more) part punctuation marks and symbols, including : ; « » ! ? % $ #" is not clear enough for you, okay, let's go:
So actually, all the changes in my patch are not currently properly translated in French, and I'm sure other languages. Pu a space before a sentence is wrong, language keys can be used without colons. Pros:
Cons:
Concerning RFC, I posted there: http://area51.phpbb.com/phpBB/viewtopic.php?p=238341#p238341 |
L_COLON should work just well in RTL If that is not acceptable, I'd vote to remove the : instead of adding tones of duplicates |
I'm with Nick, a big -1 one a change that introduces this much duplication for a very limited use case. If the space is an issue why not simply add a space on the end of the original language entry for those languages that need it? |
There is an RFC for this on area51 now, so let's please discuss it there: http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=42903 |
For now, colons are hardcoded in template files (adm, prosilver & subsilver2). In some languages, a space is needed before it or it's possible that another symbol is used. For this reason, colons are better located in the language files.
Ticket related: http://tracker.phpbb.com/browse/PHPBB3-10780
PHPBB3-10780