joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Language Override space

Open brianteeman opened this issue 3 years ago • 9 comments

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

brianteeman avatar Aug 29 '22 09:08 brianteeman

@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 avatar Aug 29 '22 16:08 brianteeman

@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?

richard67 avatar Aug 29 '22 18:08 richard67

Thank @HLeithner all good now

brianteeman avatar Aug 29 '22 21:08 brianteeman

I have tested this item :white_check_mark: successfully on b4fee5f17917ccc8409c37589042f4da48e06f31


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

Kostelano avatar Sep 19 '22 08:09 Kostelano

I have tested this item :white_check_mark: successfully on b4fee5f17917ccc8409c37589042f4da48e06f31


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

viocassel avatar Sep 19 '22 09:09 viocassel

RTC


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

richard67 avatar Sep 19 '22 09:09 richard67

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 : ''); ?>

laoneo avatar Sep 21 '22 06:09 laoneo

is it in the code styles?

brianteeman avatar Sep 21 '22 06:09 brianteeman

... 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 <?

brianteeman avatar Sep 21 '22 06:09 brianteeman

thanks

HLeithner avatar Sep 30 '22 14:09 HLeithner

thx

brianteeman avatar Sep 30 '22 16:09 brianteeman