-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] Fix language strings causing false plurals in crowdin #35681
[4.0] Fix language strings causing false plurals in crowdin #35681
Conversation
You might need to check MOD_TAGS_SIMILAR_FIELD_ONE |
@brianteeman Yes, that's the one I wanna check. Do you think I should do them all in this PR, or should I better make separate PRs? |
if you are fixing the same problem then you can do them in the same pr. its a small enough a change |
@brianteeman Are you familiar with CrowdIn? I'm not. Do you know if it would be ok to change "MOD_TAGS_SIMILAR_FIELD_ONE" to "MOD_TAGS_SIMILAR_FIELD_ANY", or do you have an idea why it hasn't been named like that from the beginning on? Does ending with "_ANY" cause similar issues on CrowdIn? Or can we use that? |
Answering no and no idea to each question - sorry |
@brianteeman Other question: Do you know if it's still ok to have the deprecation comment above the line with the language string? Or should that be put to the end of the line with the string? |
End of the line please #34671 |
Some languages may use I suggest: |
Wont the plurals still be generated as they are still in the language file? |
@brianteeman I think so. But what else can we do? We're not allowed just to remove the strings, are we? |
The arguments for not removing them was always something I did not agree with. It was so that you could use an old and outdated language file with the very latest version of joomla and/or in case the string was used by an extension which is unlikely to apply in this case. The problem is that if you dont remove the strings then you aren't solving the problem (are you?) |
@brianteeman I solve the problem ... for Joomla 5.0. @wilsonge Do you know what we shall do? Can we remove these strings? |
I would just remove them as we're fixing a bug. |
I have tested this item 🔴 unsuccessfully on df3e40b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35681. |
@brianteeman l’ll update this PR tomorrow. |
I've changed this PR so the bad strings are not deprecated but removed. @brianteeman Please test again. Thanks in advance. |
I have tested this item ✅ successfully on 3b133cf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35681. |
1 similar comment
I have tested this item ✅ successfully on 3b133cf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35681. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35681. |
Thx |
Thanks all. |
Pull Request for infograf768/j4localise#30 (comment) .
Summary of Changes
Language string constants ending with "_ONE" seem to trigger some kind of plural string generation for translations on Crodwin.
See infograf768/j4localise#30 (comment) .
To avoid this, we should not use language string constants ending with "_ONE" if they are not really plural strings.
Work in Progress (WiP): I have to complete testing instructions.
As soon as ready, I'll remove draft status from this PR.
Testing Instructions
Hint: It needs to run "npm ci" or "npm run build:js" after having applied the PR.
Hint: You can use that button even if it visually appears to be disabled. But that's another issue to be solved with another PR.
Actual result BEFORE applying this Pull Request
Strings "COM_CONTENTHISTORY_BUTTON_SELECT_ONE" and "MOD_TAGS_SIMILAR_FIELD_ONE" found.
Expected result AFTER applying this Pull Request
None.
Same as without this PR.
Same as without this PR.
Same as without this PR.
Documentation Changes Required
None.