-
-
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] Multilingual status module improvements #27184
[4.0] Multilingual status module improvements #27184
Conversation
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
916bf77
to
2c59072
Compare
@Quy May I suggest now to test the results of this PR rather than concentrating on the queries format as that type of format is absent from the majority of 4.0 code. |
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
b36d13b
to
81f786a
Compare
Done. |
administrator/components/com_languages/Helper/MultilangstatusHelper.php
Outdated
Show resolved
Hide resolved
These are redundant.
|
Good find! Corrected. |
84b30a6
to
83d41bc
Compare
administrator/components/com_languages/tmpl/multilangstatus/default.php
Outdated
Show resolved
Hide resolved
35a9bf9
to
93a6744
Compare
Added a new Error when the Default Site Language has no published Content Language. The second part of the new message "If not corrected, the multilingual feature will not work!" |
c013afb
to
f861e02
Compare
Changed new string to Thanks Mig. I guess it is now ready to go, as a module. |
3788f28
to
84b1b58
Compare
I have tested this item ✅ successfully on 605b87e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27184. |
administrator/components/com_languages/tmpl/multilangstatus/default.php
Outdated
Show resolved
Hide resolved
605b87e
to
fb94651
Compare
I have tested this item ✅ successfully on 0cc3ab8 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27184. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27184. |
Thanks |
@brianteeman Is that what you want? |
That is almost what I was talking about - give me one sec |
I will let you do it. I found some issues here doing it like this when switching to other menus without closing first the multilingual status module. EDIT: also it lets click again on the module icon and we get into an endless loop as the redirect would now be the multilangstatus module path itself. |
In any case the return is obtained by |
ok - I will put it on my todo |
Replaces #24062 which had conflicts
This PR adds a Notice and displays the language concerned when the Content Language for that language has been deleted and remains in the site an orphan home page while the site language is published.
It also adds a Notice when a Content Language is in the trash.
It also reinstate all states of a content language to display the correct icons.
published = 1
published = 0
published = -2 (i.e. trash) and for this one displays the trash icon
It also modifies all the queries in the Helper to use quotename()
See more below
Testing Instructions
Install a multilingual site with all languages available to install
French fr-FR
German de-DE
Persian fa-IR
Then use the Cpanel Multilingual Sample Data module to create a basic.
First test:
Display the Content languages Manager
Trash AND delete the fa-IR Persian content language.
You should get this when displaying the multilingual status module
Then unpublish the French fr-FR Content Language.
And trash (do NOT delete) the German de-DE Content language.
I.e. Manager should look like this
You should get this when displaying the multilingual status module
Unpublish also the fr-FR Home page to get a new notice.
Deleted Content Language error now displays the notice as last.
see #24062 (comment)
Added new Notice when both Content Language and Home page are unpublished.
We should now get in that case:
Added notice when both content language and home page missing. added trash icon when home page is in the trash.
Added warning icon when home page does not exist.
Reminder
It is OK to have an Unpublished Content Language (as French is above) as it lets the site owner prepare a new Language for the multilingual site.
The screenshots were taken in March. They will now rather look like this:
@Quy
@alikon
Please test and specially look at the queries as I did my best but there could be improvements there.