? ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
25 Sep 2018

Pull Request for Issue #22304

Summary of Changes

As title says

Testing Instructions

Allow Preview template in Templates General Options.
Preview template to display the modules positions.

After patching, change the site en-GB.ini new strings values to reflect the fact that Position: and Style: are no more harcoded

New strings are
JGLOBAL_PREVIEW_POSITION="Position: "
JGLOBAL_PREVIEW_STYLE="Style: "

Verify that you still get:

screen shot 2018-09-25 at 07 12 32

Note: No need to test in RTL. I did it. To test it in RTL, it is not enough to set en-GB to rtl. One has to use a RTL string value containing a :

avatar infograf768 infograf768 - open - 25 Sep 2018
avatar infograf768 infograf768 - change - 25 Sep 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Sep 2018
Category Language & Strings Front End Templates (site)
avatar SharkyKZ
SharkyKZ - comment - 25 Sep 2018

Use language variables?

avatar infograf768
infograf768 - comment - 25 Sep 2018

Use language variables?

I do not understand your question

avatar SharkyKZ
SharkyKZ - comment - 25 Sep 2018

Add variable (%s) to string for style/position and use JText::sprintf()? Just a suggestion.

avatar brianteeman
brianteeman - comment - 25 Sep 2018

Is it possible to remove the space from the string and have a space in the markup?

avatar infograf768
infograf768 - comment - 25 Sep 2018

good suggestion. On it.

avatar infograf768
infograf768 - comment - 25 Sep 2018

Is it possible to remove the space from the string and have a space in the markup?

I am now modifying to use a sprintf, as suggested by @SharkyKZ, therefore the space has to be in the string

avatar infograf768 infograf768 - change - 25 Sep 2018
Labels Added: ? ?
avatar infograf768
infograf768 - comment - 25 Sep 2018

That should be it now.

avatar SharkyKZ
SharkyKZ - comment - 25 Sep 2018

But now to keep the intended styling <span> has to be inside the string ?

JGLOBAL_PREVIEW_POSITION="<span>Position:</span> %s"
JGLOBAL_PREVIEW_STYLE="<span>Style:</span> %s"
avatar infograf768
infograf768 - comment - 25 Sep 2018

grrr

avatar infograf768
infograf768 - comment - 25 Sep 2018

have to cook now, will see later

avatar infograf768
infograf768 - comment - 25 Sep 2018

Done. Can be tested.

avatar SharkyKZ
SharkyKZ - comment - 25 Sep 2018

I have tested this item successfully on 45ac0c7


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

avatar SharkyKZ SharkyKZ - test_item - 25 Sep 2018 - Tested successfully
avatar Quy
Quy - comment - 25 Sep 2018

I have tested this item successfully on 45ac0c7


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

avatar Quy Quy - test_item - 25 Sep 2018 - Tested successfully
avatar Quy Quy - change - 25 Sep 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 25 Sep 2018

RTC


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

avatar mbabker mbabker - change - 25 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-25 23:30:05
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 25 Sep 2018
avatar mbabker mbabker - merge - 25 Sep 2018

Add a Comment

Login with GitHub to post a comment