? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
3 Jan 2017

This PR to complete #13425 in various places where JS language strings are incorrect.
#13425 deals only with toolbar buttons.

Summary of Changes

Files modified:
/plugins/installer/folderinstaller/tmpl/default.php
/plugins/installer/packageinstaller/tmpl/default.php
/components/com_mailto/views/mailto/tmpl/default.php
/administrator/templates/hathor/html/com_contenthistory/history/modal.php
/administrator/components/com_contenthistory/views/history/tmpl/modal.php

I did not touch at fof
strapper, joomla.php
Let me know if this should be added.

Testing Instructions

On a staging create 2 en-GB.override.ini

For back-end:

JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST="Please first make a "_QQ_"selection"_QQ_" \"from\" the list."
PLG_INSTALLER_PACKAGEINSTALLER_NO_PACKAGE="Checking if "_QQ_"QQ between double quotes"_QQ_" and escaped \"strings\" work. No Package."
PLG_INSTALLER_FOLDERINSTALLER_NO_INSTALL_PATH="Checking if "_QQ_"QQ between double quotes"_QQ_" and escaped \"strings\" work. No folder path."
COM_CONTENTHISTORY_BUTTON_SELECT_ONE="Checking if "_QQ_"QQ between double quotes"_QQ_" and escaped \"strings\" work. Preview and restore."
COM_CONTENTHISTORY_BUTTON_SELECT_TWO="Checking if "_QQ_"QQ between double quotes"_QQ_" and escaped \"strings\" work. Compare."

For frontend:

COM_MAILTO_EMAIL_ERR_NOINFO="Checking if "_QQ_"QQ between double quotes"_QQ_" and escaped \"strings\" work. Invalid mail."

Testing places:
Extensions Manager->Install
Make sure the field for the Upload Package File tab is empty and click Upload & Install button.
Then Make sure the field for the Install from Folder is empty and click Check and Install button

Content History Modal
In Hathor as well as in Isis, edit an article and Click on the Versions Toolbar button.
Do NOT select any item in the list and click on each button.

screen shot 2017-01-03 at 09 46 06

Frontend Mailto
Display the Email this link to friend popup. Do not enter anything in the fields and Click on the Send button.

RESULT: for each of these operations, there will be a JS error and the alerts will not display.

PATCH and test again (after clearing all caches)

You should now get all these alerts correctly.
Example:

screen shot 2017-01-03 at 09 20 14

Documentation Changes Required

None. This is a bug.
None

avatar infograf768 infograf768 - open - 3 Jan 2017
avatar infograf768 infograf768 - change - 3 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2017
Category Administration com_content com_contenthistory Templates (admin) Front End com_mailto Plugins
avatar N6REJ
N6REJ - comment - 3 Jan 2017

when testing the buttons in versions "keep on/off" and "Delete" still show old style.

avatar infograf768
infograf768 - comment - 3 Jan 2017

what do you mean with "old style" ?

avatar anibalsanchez
anibalsanchez - comment - 3 Jan 2017

I have not tested this item.

1. Installer works as always
2. Item Version History. Toolbar buttons show alerts with the message.
3. Email to a Friend does nothing.

Is it OK?


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

avatar anibalsanchez anibalsanchez - test_item - 3 Jan 2017 - Not tested
avatar infograf768
infograf768 - comment - 4 Jan 2017

Let me clarify. The purpose of this PR is to display the language strings value when they contains double quotes.
Before patch, when both en-GB.override.ini —which have been created manually— are present, the double quotes are not escaped correctly, therefore No Alert will display.

For install, it goes even further as the tabs will not display at all.

screen shot 2017-01-04 at 07 25 29

After patch, for example for install, we will rightfully get:

package
If you get these results, please mark your test as successful.

avatar N6REJ
N6REJ - comment - 4 Jan 2017

@infograf768 the last 2 buttons that I commented about do NOT have the test strings showing.

avatar infograf768
infograf768 - comment - 4 Jan 2017

They do here. You may have to clean cache, check that the back-end en-GB.override.ini is correct or check if the patch was applied correctly.
en-GB.override.ini.zip

contenthistory

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jan 2017

I have tested this item ? unsuccessfully on 959756c

Stopped testing at "Extensions Manager > Install" in Tab

  • "Upload Package File"
  • and "Install from Folder"

See Screenshot (but Patch works here as tabs are now shown).

bildschirmfoto 2017-01-04 um 10 59 15


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13455.
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 4 Jan 2017 - Tested unsuccessfully
avatar ggppdk
ggppdk - comment - 4 Jan 2017

Tested all these 3 cases in the language strings and they do work:
'
\"
"_QQ_"


  1. Tested versions history modal in article form, applying patch and modifying the language strings
    COM_CONTENTHISTORY_BUTTON_SELECT_ONE="Please select ' \" one "_QQ_" version."
    COM_CONTENTHISTORY_BUTTON_SELECT_TWO="Please select ' \" two "_QQ_" versions."
    JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST="Please ' \" first "_QQ_" make a selection from the list."
  • the first 3 button continue to work, further more the escaping in the new way, does not add any unwanted slashes:
    Please select ' " one " version
    Please select ' " two " versions
  • the last 2 buttons did not work before patch if you have ' \" "_QQ_" in the language string (no alert instead you get JS error):
    after patching you get:
    Please ' " first " make a selection from the list.

  1. Tested Extension Manager / Install / Install From Folder
    PLG_INSTALLER_FOLDERINSTALLER_NO_INSTALL_PATH="Please enter ' \"a "_QQ_" Folder."
  • with empty folder, the alert message is:
    Please enter ' "a " Folder.

  1. Tested Extension Manager / Install / Upload Package File
    PLG_INSTALLER_PACKAGEINSTALLER_NO_PACKAGE="Please select a package ' \" to "_QQ_" upload"
  • with no package selected, the alert message is:
    Please select a package ' " to " upload.

  1. Tested Article view / Email Button
    COM_MAILTO_EMAIL_ERR_NOINFO="Please provide a ' \" valid email "_QQ_" address."
  • with no email in the popup the alert message:
    Please provide a ' " valid " email address.
avatar ggppdk
ggppdk - comment - 4 Jan 2017

I have tested this item successfully on 959756c


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

avatar ggppdk ggppdk - test_item - 4 Jan 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 4 Jan 2017

@franz-wohlkoenig
It looks like you did not create the override.ini manually (or used the zip I posted above) using en-GB as default language.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jan 2017

@infograf768 Sorry, my fault, read not carefully: I made Lang.-Overrides inside Joomla! Will test evening if necessary.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jan 2017

In 3.7.0-alpha1 i copied the downloaded "en-GB.override.ini" to "/administrator/language/en-GB/" cause thinking this is the Place what "On a staging create …" by @infograf768 Test instructions means.

Got String "Please select a package to upload" at "Upload Package File".


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

avatar infograf768
infograf768 - comment - 4 Jan 2017

In 3.7.0-alpha1 i copied the downloaded "en-GB.override.ini" to "/administrator/language/en-GB/" cause thinking this is the Place what "On a staging create …" by @infograf768 Test instructions means.

Nope, the en-GB.override.ini has to go into language/overrides/
screen shot 2017-01-04 at 16 25 09

and similar place for frontend

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jan 2017

I have tested this item successfully on 959756c


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 4 Jan 2017 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 4 Jan 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 4 Jan 2017

RTC


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

avatar rdeutz rdeutz - change - 4 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-04 19:03:20
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 4 Jan 2017
avatar rdeutz rdeutz - merge - 4 Jan 2017

Add a Comment

Login with GitHub to post a comment