? Language Change ? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
27 Sep 2021

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.

  1. Code review: Check if there are language strings in the CMS core having a key ending with "_ONE".
  2. In content history modal of some content having some history (i.e. more than 1 version), use the "Preview" button without having selected any version.
    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.
  3. In the same modal, use the "Compare" button with only one version selected.
  4. Create a module of type "Tags - Similar" and check the available options in the "Match Type" drop-down on the first Tab "Module".

Actual result BEFORE applying this Pull Request

  1. Strings "COM_CONTENTHISTORY_BUTTON_SELECT_ONE" and "MOD_TAGS_SIMILAR_FIELD_ONE" found.

Screen Shot 2021-09-24 at 07 18 06

Screen Shot 2021-09-24 at 07 18 24

  1. Options "All", "Any" and "Half" are available.

Expected result AFTER applying this Pull Request

  1. None.

  2. Same as without this PR.

  3. Same as without this PR.

  4. Same as without this PR.

Documentation Changes Required

None.

avatar richard67 richard67 - open - 27 Sep 2021
avatar richard67 richard67 - change - 27 Sep 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2021
Category Administration com_content com_contenthistory Language & Strings JavaScript Repository NPM Change
avatar brianteeman
brianteeman - comment - 27 Sep 2021

You might need to check MOD_TAGS_SIMILAR_FIELD_ONE

avatar richard67
richard67 - comment - 27 Sep 2021

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?

avatar brianteeman
brianteeman - comment - 27 Sep 2021

if you are fixing the same problem then you can do them in the same pr. its a small enough a change

avatar richard67
richard67 - comment - 27 Sep 2021

@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?

avatar brianteeman
brianteeman - comment - 27 Sep 2021

Answering no and no idea to each question - sorry

avatar richard67
richard67 - comment - 27 Sep 2021

@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?

avatar brianteeman
brianteeman - comment - 27 Sep 2021

End of the line please #34671

avatar infograf768
infograf768 - comment - 27 Sep 2021

"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?

Some languages may use ANY in their plural forms and crowdin may wonder there.

I suggest: MOD_TAGS_SIMILAR_FIELD_ONE_TAG

avatar richard67 richard67 - change - 27 Sep 2021
Labels Added: Language Change ? NPM Resource Changed
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2021
Category Administration com_content com_contenthistory Language & Strings JavaScript Repository NPM Change Administration com_content com_contenthistory Language & Strings JavaScript Repository NPM Change Modules Front End
avatar richard67 richard67 - change - 27 Sep 2021
The description was changed
avatar richard67 richard67 - edited - 27 Sep 2021
avatar brianteeman
brianteeman - comment - 27 Sep 2021

Wont the plurals still be generated as they are still in the language file?

avatar richard67
richard67 - comment - 27 Sep 2021

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?

avatar brianteeman
brianteeman - comment - 27 Sep 2021

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?)

avatar richard67
richard67 - comment - 27 Sep 2021

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?

avatar Bakual
Bakual - comment - 27 Sep 2021

I would just remove them as we're fixing a bug.
And chances are slim that the string is used by 3rd party.

avatar brianteeman
brianteeman - comment - 2 Oct 2021

I have tested this item ? unsuccessfully on df3e40b

Doesnt fix the problem


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35681.

avatar brianteeman brianteeman - test_item - 2 Oct 2021 - Tested unsuccessfully
avatar richard67
richard67 - comment - 2 Oct 2021

@brianteeman l’ll update this PR tomorrow.

avatar richard67 richard67 - change - 3 Oct 2021
The description was changed
avatar richard67 richard67 - edited - 3 Oct 2021
avatar richard67 richard67 - change - 3 Oct 2021
Title
[4.0] Fix content history language strings causing false plurals in crowdin
[4.0] Fix language strings causing false plurals in crowdin
avatar richard67 richard67 - edited - 3 Oct 2021
avatar richard67
richard67 - comment - 3 Oct 2021

I've changed this PR so the bad strings are not deprecated but removed.

@brianteeman Please test again. Thanks in advance.

avatar richard67 richard67 - change - 3 Oct 2021
The description was changed
avatar richard67 richard67 - edited - 3 Oct 2021
avatar richard67 richard67 - change - 3 Oct 2021
The description was changed
avatar richard67 richard67 - edited - 3 Oct 2021
avatar richard67 richard67 - change - 3 Oct 2021
The description was changed
avatar richard67 richard67 - edited - 3 Oct 2021
avatar brianteeman
brianteeman - comment - 3 Oct 2021

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.

avatar brianteeman brianteeman - test_item - 3 Oct 2021 - Tested successfully
avatar infograf768
infograf768 - comment - 4 Oct 2021

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.

avatar infograf768 infograf768 - test_item - 4 Oct 2021 - Tested successfully
avatar infograf768 infograf768 - change - 4 Oct 2021
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 4 Oct 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35681.

avatar bembelimen bembelimen - close - 5 Oct 2021
avatar bembelimen bembelimen - merge - 5 Oct 2021
avatar bembelimen bembelimen - change - 5 Oct 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-10-05 14:29:57
Closed_By bembelimen
Labels Added: ? ?
avatar bembelimen
bembelimen - comment - 5 Oct 2021

Thx

avatar richard67
richard67 - comment - 5 Oct 2021

Thanks all.

Add a Comment

Login with GitHub to post a comment