-
-
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
[5.3] Language Association Codes #44551
base: 5.3-dev
Are you sure you want to change the base?
Conversation
In the Language Code plugin it is possible to change the code used for a specified language. eg fr-FR can be changed to fr-CA However everywhhere in the admin that associations are displayed it uses the original code and not the changed code. This PR is a "takeover" of the original PR joomla#37289 created by @infograf768 That PR has merge conflicts and @infograf768 is now retired. See the original PR for more screenshots but an example is below Signed-off-by: BrianTeeman <[email protected]>
I have tested this item ✅ successfully on 8ccef0c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44551. |
Signed-off-by: BrianTeeman <[email protected]>
The feature maybe is good and usefull. Need to look for a better way of doing the same, maybe some extra event, or kind of that. |
@brianteeman will it work if instead of |
yes but then then language code wont work as intended. |
Prebuilt packages are not available for a retest. |
@fgsw Yes, they are deleted after a while. I've updated the branch so a new build was triggered, and now packages are available. |
I have tested this item ✅ successfully on 6cc6c8c
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44551. |
I have tested this item ✅ successfully on 6cc6c8c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44551. |
PBF This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44551. |
I am sorry, but this cannot be merged, because of hardcoding This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44551. |
I dont understand your reasoning. |
It not an issue with In the core, the plugins should never be used like: $languageCodeParams = new Registry(PluginHelper::getPlugin('system', 'languagecode')->params); What if I want to use 3rd language plugin? With current approach the whole thing will not going to work. The plugins should listen to events, instead of being used directly. |
As i said this is already being used in core joomla-cms/administrator/components/com_redirect/src/Helper/RedirectHelper.php Lines 93 to 95 in 64ac8c8
|
Signed-off-by: BrianTeeman <[email protected]>
That another bad code, and not an excuse to do the same. |
When infograf wrote the code I assume he just followed existing practice |
In the Language Code plugin it is possible to change the code used for a specified language. eg fr-FR can be changed to fr-CA
However everywhhere in the admin that associations are displayed it uses the original code and not the changed code.
This PR is a "takeover" of the original PR #37289 created by @infograf768
That PR has merge conflicts and @infograf768 is now retired.
See the original PR for more screenshots
Testing Instructions
Create a multilingual site.
Enable the languagecode system plugin and give a new lang tag value for a language.
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed