-
-
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 Untranslated tip #27174
[4.0] Fix Untranslated tip #27174
Conversation
That's better. But I wonder whether passed strings should be translated or not. Here they're not translated: joomla-cms/libraries/src/Button/PublishedButton.php Lines 32 to 35 in 551e356
So maybe translation should be performed in |
Afaik that part of PublishButton is not used for articles but may be for other managers and it is translated somewhere else. The articles manager loads a new PublishButton with specific states because of workflow. Then it is displayed by the transition-button where the textip (data content) depends of the state of the article obtained by Publish button when the article is published. |
It's not translated as far as I can tell. After removing custom |
Indeed. In fact it looks like it is never used in core... What is used elsewhere is JGrid. Looks like it "could" be used by 3rd party in the future. Therefore I think it is safer to add the |
Please test again. |
Grrrr... Now it looks weird because title has to be translated but tip_title doesn't 🤷♂. |
@SharkyKZ I patched this way
Therefore the $title is untranslated when the article is unpublished. We have to take a decision. Do we reinstate the Text there (and get a wrong debug lang) or modify as done in this PR? |
I just don't like that one string we pass has to be translated but the other doesn't. I see two options here:
|
I'm afraid I can't do what you suggest. |
You mean you don't know how to do it or you don't agree with proposed solutions? |
Don’t know how. 😄 |
Remove
This should also fix remaining double translations which aren't visible in core. |
b264d75
to
24d59bc
Compare
@SharkyKZ BUT, remains a case. I did not touch for the moment at the If you don't know, maybe @bembelimen knows the uses of that part. |
Yes, remove those |
Done. Can be now tested. I fail to understand the use of |
Remove |
Done. |
needs more work for featured. |
09c7d6d
to
18a1654
Compare
Remove
And with that |
0f6751f
to
4c89c16
Compare
LOL |
I have tested this item ✅ successfully on 0318b14 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27174. |
I have tested this item ✅ successfully on 0318b14 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27174. |
This looks better to me translating the tips this way (sorry for not looking before JM!). Thanks! |
Thanks to all who helped on this. Was a long road... ;) |
Summary of Changes
As title says. The tip displays in the articles Manager when an article is Unpublished.
It concerns the
COM_CONTENT_CHANGE_STAGE
lang stringTesting Instructions
Create an article as Unpublished.
make sure publish up and down are empty
Hover the Status icon.
Before patch
After patch
About this patch
It is the simplest solution but we have another solution by passing through Text the string in both
articles/default.php
andfeatured/default.php
I can change the PR if judged necessary.