? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
29 Aug 2022

When you have a language override that is in both locations then it is displayed as site /administrator

This extra space is added because the markup is on multiple lines.

To Test

Go to language overrides and select a language-admin pair
Create a new override and check the box for both locations
Save and check the list of overrides

Before

image

After

image

avatar brianteeman brianteeman - open - 29 Aug 2022
avatar brianteeman brianteeman - change - 29 Aug 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2022
Category Administration com_languages
avatar brianteeman brianteeman - change - 29 Aug 2022
Labels Added: ?
avatar brianteeman
brianteeman - comment - 29 Aug 2022

@HLeithner my reading of the drone error is that its not possible to resolve the space issue that the pr is intended to do without breaking the cs rules. Your advice please

avatar richard67
richard67 - comment - 29 Aug 2022

@HLeithner my reading of the drone error is that its not possible to resolve the space issue that the pr is intended to do without breaking the cs rules. Your advice please

@brianteeman Does it work without the curly brackets?

b4fee5f 29 Aug 2022 avatar brianteeman cs
avatar brianteeman
brianteeman - comment - 29 Aug 2022

Thank @HLeithner all good now

avatar Kostelano
Kostelano - comment - 19 Sep 2022

I have tested this item successfully on b4fee5f


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

avatar Kostelano Kostelano - test_item - 19 Sep 2022 - Tested successfully
avatar viocassel
viocassel - comment - 19 Sep 2022

I have tested this item successfully on b4fee5f


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

avatar viocassel viocassel - test_item - 19 Sep 2022 - Tested successfully
avatar richard67 richard67 - change - 19 Sep 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 19 Sep 2022

RTC


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

avatar laoneo
laoneo - comment - 21 Sep 2022

Should we not try to avoid multi line PHP statements in layout files? If I remember correctly every PHP code in these layout files should start with <?php. To solve this issue you can make a one line statement out of it:

<?php echo $client . (isset($oppositeStrings[$key]) && $oppositeStrings[$key] === $text ? '/' . $oppositeClient : ''); ?>

avatar brianteeman
brianteeman - comment - 21 Sep 2022

is it in the code styles?

avatar brianteeman
brianteeman - comment - 21 Sep 2022

... and I would say it is beyond the scope of this PR as it was already on multiple lines that did not begin and end with <?

avatar HLeithner HLeithner - close - 30 Sep 2022
avatar HLeithner HLeithner - merge - 30 Sep 2022
avatar HLeithner HLeithner - change - 30 Sep 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-09-30 14:46:37
Closed_By HLeithner
Labels Added: ?
avatar HLeithner
HLeithner - comment - 30 Sep 2022

thanks

avatar brianteeman
brianteeman - comment - 30 Sep 2022

thx

Add a Comment

Login with GitHub to post a comment