Conflicting Files ? ? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
7 Mar 2020

Pull Request for Issue #28238 .

Summary of Changes

added a system plugin that replace this markup {dontTranslate}Text{/dontTranslate}
with <span translate="no">Text</span>

Testing Instructions

apply pr
discover the plugin
and publish
add the markup {dontTranslate}Text{/dontTranslate} in articles content, article title menu item title ect

Expected result

look at the html of the page
the translate attribute <span translate="no">Text</span>

Actual result

NA

Todo

add the sql
manage better the alias field if the markup is used in the title

avatar alikon alikon - open - 7 Mar 2020
avatar alikon alikon - change - 7 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Mar 2020
Category Administration Language & Strings Front End Plugins
avatar SharkyKZ
SharkyKZ - comment - 7 Mar 2020

Please change the syntax to use opening/closing tags, e.g. {notranslate}Text{/notranslate}. This should avoid issues like #21329.

avatar infograf768
infograf768 - comment - 7 Mar 2020

Please change donttranslate plugin name etc to notranslate. This is imho too much a deteriorated english phrase.

avatar alikon alikon - change - 8 Mar 2020
Labels Added: ? ?
d150728 8 Mar 2020 avatar alikon ini
e275b6c 8 Mar 2020 avatar alikon ini
avatar alikon alikon - change - 8 Mar 2020
The description was changed
avatar alikon alikon - edited - 8 Mar 2020
avatar alikon alikon - change - 8 Mar 2020
The description was changed
avatar alikon alikon - edited - 8 Mar 2020
avatar alikon
alikon - comment - 8 Mar 2020

@infograf768 that can be done easily later when the approach got some positive feedback
@SharkyKZ open/close tag done

ready for a round of tests

75b7067 9 Mar 2020 avatar alikon sql
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2020
Category Administration Language & Strings Front End Plugins Administration Language & Strings SQL Installation Front End Plugins
20f116d 9 Mar 2020 avatar alikon sql
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2020
Category Administration Language & Strings Front End Plugins SQL Installation Administration Language & Strings SQL Installation Postgresql Front End Plugins
921f7f8 9 Mar 2020 avatar alikon sql
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2020
Category Administration Language & Strings Front End Plugins SQL Installation Postgresql SQL Administration com_admin Language & Strings Installation Postgresql Front End Plugins
avatar SharkyKZ
SharkyKZ - comment - 9 Mar 2020

Can this at least be disabled by default?

4b4fa07 9 Mar 2020 avatar alikon sql
avatar alikon
alikon - comment - 9 Mar 2020

yes, for sure...

avatar alikon alikon - change - 9 Mar 2020
The description was changed
avatar alikon alikon - edited - 9 Mar 2020
avatar brianteeman
brianteeman - comment - 9 Mar 2020

Before this is merged it should be decided by production department if it can be accepted as it is not supported by firefox in any version and is still flagged as an experimental feature that may change.

(I implemented this on a site several years ago and it was less than reliable)

avatar alikon
alikon - comment - 9 Mar 2020

you mean this right https://caniuse.com/#search=translate%20attr ?
well the worst that may happen is that text is translated
but it is supported from other tools..

avatar brianteeman
brianteeman - comment - 9 Mar 2020

Yes that's the link

Our policy has always been it should work equally across all supported browsers which is why I bring this up

avatar ReLater
ReLater - comment - 9 Mar 2020

Our policy has always been it should work equally across all supported browsers which is why I bring this up

The "funny" thing is that https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate says:

"Although not all browsers recognize this attribute, it is respected by automatic translation systems such as Google Translate, and may also be respected by tools used by human translators. As such it's important that web authors use this attribute to mark content that should not be translated."

avatar gerryfrancis
gerryfrancis - comment - 9 Mar 2020

The Google translation service for websites has been limited to their product, Chrome. Other browsers are literally locked out. :(

avatar ReLater
ReLater - comment - 9 Mar 2020

We are talking about browser support for the translate attribute. That's more a philosophical or principal decision in this case, I think.

avatar sanek4life
sanek4life - comment - 9 Mar 2020

Before this is merged it should be decided by production department if it can be accepted as it is not supported by firefox in any version and is still flagged as an experimental feature that may change.

(I implemented this on a site several years ago and it was less than reliable)

Mozilla does not support this attribute, because Mozilla does not have a built-in translator, unlike Chrome and other browsers. I think this is logical. But Mozilla recommends adding this attribute to website in his documentation.

avatar alikon alikon - change - 10 Mar 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2020
Category Administration Language & Strings Front End Plugins SQL Installation Postgresql com_admin SQL Administration com_admin Postgresql Language & Strings Installation Libraries Front End Plugins
avatar ReLater
ReLater - comment - 10 Mar 2020

I have tested this item ? unsuccessfully on 61fd2b0

Description/Images follow on GitHub


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

avatar ReLater ReLater - test_item - 10 Mar 2020 - Tested unsuccessfully
avatar ReLater
ReLater - comment - 10 Mar 2020

New menu item (Site), Single Article:

001

Front-end view:

002

003

Inspector:

004

Database:

005

avatar sanek4life
sanek4life - comment - 10 Mar 2020

003

This is the reason I created my theme #28238

avatar ReLater
ReLater - comment - 10 Mar 2020

This is the reason I created my theme

There's code in this pr to avoid that. Means: Anybody is and was aware of the problem. Now we have to solve it or close the pr if not solveable.

avatar ReLater
ReLater - comment - 10 Mar 2020

TBH: From my point of view it's the job of the user to check and correct the alias. Everything else is luxury ;-)

avatar alikon
alikon - comment - 11 Mar 2020

i've added some improvements,
another round of tests please

avatar infograf768
infograf768 - comment - 11 Mar 2020

Looks like working now using unicode slugs or not.
{dontTranslate}Coca Cola{/dontTranslate} ànewarticle
will give as alias with unicodeslugs
coca-cola-ànewarticle
without unicodeslugs
coca-cola-anewarticle

Screen Shot 2020-03-11 at 10 54 24

Screen Shot 2020-03-11 at 10 55 27

Screen Shot 2020-03-11 at 10 50 00

Screen Shot 2020-03-11 at 10 52 27

avatar chmst
chmst - comment - 11 Mar 2020

I have tested this item successfully on 411da87

I have tested the plugin at different places: Menu Item titles, Texts in different components, in module titles and all worked as expected. Tested with mySQLi only.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28261.
avatar chmst chmst - test_item - 11 Mar 2020 - Tested successfully
avatar alikon
alikon - comment - 11 Mar 2020

thanks folks for testing and commenting---- still more to do , i believe
as it is a big change, please be patient
but togheter we can do it
?

avatar alikon alikon - change - 10 Oct 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-10-10 09:27:35
Closed_By alikon
Labels Added: Conflicting Files
avatar alikon alikon - close - 10 Oct 2020

Add a Comment

Login with GitHub to post a comment