Skip to content

Conversation

@brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Feb 12, 2022

pr for #37013

create a menu item called test
Try to create a second menu item also called test

Before

image

After

It only says trashed if it is trashed and the link opens the existing menu item
image

image

Plus

Also updates com_content, com_categories, com_newsfeeds by splitting the message into two (one if the item is trashed). These are simpler changes as they dont have item names or links

Also updates com_finder filters to use a correct language string. Its not an article and it cant be trashed ;)

com_banners has not been updated because there is an existing bug in that #37031

No idea if this is the _best_ way to do this so feedback appreciated. If/when accepted it can be applied to may similar use cases.

pr for joomla#37013

create a menu item called test
Try to create a second menu item also called test

Before

After
And the link opens the existing menu item
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.2-dev labels Feb 12, 2022
@HLeithner
Copy link
Member

You have to use a new language string else we get a fatal error without of sync languages

@brianteeman
Copy link
Contributor Author

You have to use a new language string else we get a fatal error without of sync languages

no you don't. Did you actually test it? If you did and you got a fatal error please post the stack trace.

@ChristineWk
Copy link

Patch activated:
The patch could not be applied because it conflicts with a previously applied patch: administrator/language/en-GB/lib_joomla.ini
(4.1.0-rc5-dev)


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

@brianteeman
Copy link
Contributor Author

I assume thats with patchtester? You cannot apply a patch on to an existing one. You need to rest first.

@ChristineWk
Copy link

Of course have fetched before. And now resetted. Will try again.


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

@ChristineWk
Copy link

I have tested this item ✅ successfully on 834c85c


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

@ChristineWk
Copy link

Result:screen shot 2022-02-12 at 21 37 28


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

@chmst
Copy link
Contributor

chmst commented Feb 13, 2022

@brianteeman I see a chance to improve this message (as i have monochrome in backend I tried to cklick on all strong parts of the text).

grafik

What do you think about
grafik

where the string trashed is set only if the item is trashed?

@brianteeman
Copy link
Contributor Author

@chmst oh there are lots of possibilities for improvement. My main concern at this moment in time is if the code is correct.

@brianteeman
Copy link
Contributor Author

@chmst unless I am very much mistaken the change to have two strings - one for trashed and one for regular items - is very easy. It was just lazy coding before to have that language string.

Once @HLeithner can confirm that he was wrong I will continue to work on this.

@chmst
Copy link
Contributor

chmst commented Feb 13, 2022

@brianteeman yes, otherwise it would be tricky. If the user has a link, he can see that the item ist trashed, so maybe it is not necessary to mention it at all

@brianteeman
Copy link
Contributor Author

@chmst updated the PR so that the message is different if the duplicate is trashed or not

@brianteeman brianteeman marked this pull request as draft February 13, 2022 20:44
@brianteeman brianteeman marked this pull request as ready for review February 14, 2022 22:36
@brianteeman
Copy link
Contributor Author

Updated as requested by @roland-d

@joomla-bot
Copy link
Contributor

This pull requests has been automatically converted to the PSR-12 coding standard.

@obuisard
Copy link
Contributor

@roland-d are you planning to include this PR into 4.2? Not sure if language files are updated on minor releases.

@zero-24
Copy link
Contributor

zero-24 commented Oct 11, 2022

Not sure if language files are updated on minor releases.

That should not be a blocker for things merged into 4.2 :)

@brianteeman
Copy link
Contributor Author

Is this ever going to be merged?

@roland-d roland-d merged commit a8f965e into joomla:4.2-dev Oct 15, 2022
@roland-d roland-d added this to the Joomla! 4.2.4 milestone Oct 15, 2022
@roland-d
Copy link
Contributor

Thanks

@brianteeman brianteeman deleted the errormessage branch October 15, 2022 14:38
@brianteeman
Copy link
Contributor Author

thanks

heelc29 added a commit to heelc29/joomla that referenced this pull request Oct 24, 2022
Kostelano added a commit to JPathRu/localisation that referenced this pull request Oct 25, 2022
joomla/joomla-cms#37385 - (только для pl-PL)
joomla/joomla-cms#38825 +
joomla/joomla-cms#38877 - (только для других языков)
joomla/joomla-cms#38867 +
joomla/joomla-cms#37017 +
joomla/joomla-cms#38771 +
joomla/joomla-cms#38761 +
joomla/joomla-cms#39072 - (только для en-GB)
+ исправление различных формулировок
@heelc29 heelc29 mentioned this pull request Nov 2, 2022
4 tasks
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.

10 participants