? ? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
21 Mar 2015

There's a string in the InstallationModelSetup class to display what translates into "PHP Version >= 5.3.10" in the installer that is manually appending the ">= 5.3.10" part to the translated string. This PR makes a new language string that puts the whole thing together using sprintf to inject the PHP version.

Test Instructions

Make sure the string still displays in the installer and there aren't any parse errors.

avatar mbabker mbabker - open - 21 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 21 Mar 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Mar 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 21 Mar 2015

Good for RTL and languages generally speaking as they can place the variable the way they like.
For 3.4.2 I guess.

avatar wilsonge wilsonge - change - 21 Mar 2015
Milestone Added:
avatar brianteeman
brianteeman - comment - 22 Mar 2015

Is there a benefit to doing it this way over simply moving the >= into the current string

INSTL_PHP_VERSION="PHP Version >="
$option->label = JText::_('INSTL_PHP_VERSION') . '5.3.10';


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6528.
avatar sovainfo
sovainfo - comment - 22 Mar 2015

Suggest to extend #6529 to installation and use constant instead of '5.3.10'

avatar mbabker
mbabker - comment - 22 Mar 2015

@brianteeman That still forces the version number to be at the end of the output. By making it a sprintf, a language string could show the translated version of "PHP 5.3.10 or later" instead of being forced to be worded so the version is at the end of the text.

@sovainfo The constant is already in use in this same line of code in that PR, whichever of these two are accepted first (assuming either are) will cause the other to need an update.

avatar sovainfo
sovainfo - comment - 22 Mar 2015

@mbabker Can't believe I missed that!

avatar zero-24 zero-24 - change - 22 Mar 2015
Easy No Yes
avatar zero-24 zero-24 - change - 22 Mar 2015
Category Installation Language & Strings
avatar infograf768
infograf768 - comment - 23 Mar 2015

As this is a change in installation ini and we have issues with pagination which may require a fast 3.4.2 release, I guess we should wait to merge this as it is unlikely all TTs will be able to update their inis in a short notice.
A temporary solution could be to check if the new constant is present in the language and if not use the former one for now.
Otherwise, evidently, en-GB will take over.

avatar wilsonge wilsonge - change - 24 Mar 2015
Milestone Added:
avatar wilsonge wilsonge - change - 24 Mar 2015
Milestone Removed:
avatar mbabker
mbabker - comment - 10 May 2015

Unless 3.4.2 is coming like tomorrow, any reason this needs to keep waiting for 3.4.3?

avatar zero-24
zero-24 - comment - 15 May 2015

@test successful.


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

avatar zero-24 zero-24 - test_item - 15 May 2015 - Tested successfully
avatar waader
waader - comment - 17 May 2015

@test works!

avatar waader waader - test_item - 17 May 2015 - Tested successfully
avatar Bakual Bakual - change - 17 May 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 17 May 2015
Status Pending Ready to Commit
avatar wilsonge wilsonge - change - 24 May 2015
Milestone Added:
avatar wilsonge wilsonge - change - 24 May 2015
Milestone Removed:
avatar wilsonge wilsonge - reference | 6202214 - 25 May 15
avatar wilsonge wilsonge - merge - 25 May 2015
avatar wilsonge wilsonge - close - 25 May 2015
avatar wilsonge wilsonge - change - 25 May 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-25 00:55:22
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 May 2015
avatar mbabker mbabker - head_ref_deleted - 1 Oct 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment