Skip to content

[staging] Adding missing lang strings for XTD plugins#25475

Merged
HLeithner merged 6 commits intojoomla:stagingfrom
infograf768:missingsortstrings
Jul 12, 2019
Merged

[staging] Adding missing lang strings for XTD plugins#25475
HLeithner merged 6 commits intojoomla:stagingfrom
infograf768:missingsortstrings

Conversation

@infograf768
Copy link
Copy Markdown
Member

@infograf768 infograf768 commented Jul 8, 2019

Pull Request for Issue #25344
Replaces #25472

Summary of Changes

Loading main administrator joomla xx-XX.ini is not a good idea as it may override some frontend xx-XX.ini strings.
The only reason $lang->load('joomla', JPATH_ADMINISTRATOR); was added for com_menus and com_modules was to get these strings from backend.
These calls are now deleted.

The correct solution was to add then in frontend.
Some looks weird to add:

JTOGGLE_HIDE_SIDEBAR="Hide the sidebar"
JTOGGLE_SHOW_SIDEBAR="Show the sidebar"

but as they show as untranslated when using the Field xtd, I added them.
(it would be interesting to find out why they are needed there and if corrected, delete them in 4.0)

Testing Instructions

Set Language debug on and load each xtd plugin when editing an article in frontend.
Check if any string is missing.

After patch

The main display change with Protostar is the corrected JGLOBAL_LIST_ALIAS="(<span>Alias</span>: %s)" string.

@SharkyKZ @Quy

@infograf768
Copy link
Copy Markdown
Member Author

@Quy Should be OK now. tks.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jul 10, 2019

I have tested this item ✅ successfully on 659eeca


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

@infograf768
Copy link
Copy Markdown
Member Author

@Quy
Please test again. I found out why

JTOGGLE_HIDE_SIDEBAR
JTOGGLE_SHOW_SIDEBAR

was showing as untranslated for the Field xtd plugin.
Sidebar was also loaded for modal which should not have been done. :)
Therefore corrected the view.html.php and took off the strings from frontend.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jul 10, 2019

I have tested this item ✅ successfully on 9442de7


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

@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 22b09f6


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

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jul 10, 2019

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 10, 2019
@infograf768 infograf768 added this to the Joomla! 3.9.11 milestone Jul 12, 2019
@infograf768
Copy link
Copy Markdown
Member Author

@HLeithner
Please merge so that TTs can work on it asap.

@HLeithner HLeithner merged commit fdeeced into joomla:staging Jul 12, 2019
@HLeithner
Copy link
Copy Markdown
Member

thx

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 12, 2019
@infograf768 infograf768 deleted the missingsortstrings branch July 12, 2019 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants