? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
9 Nov 2015

As of today, a language constant containing a star will trigger a parse error when debug language is on.
Some extensions like sobibro do use stars in their constants.

SP.PERMISSIONS.DELETE_*="delete any"

It is not mandatory to throw an error if there is a star as the translation works fine
This patch prevents the parse error.

To test, modify a string, for example in en-GB.config.ini:
Change
COM_CONFIG_DEBUG_SETTINGS="Debug Settings"
to
COM_CONFIG_DEBUG_SETTINGS*="Debug Settings"
Then modify in ROOT/administrator/components/com_config/view/application/tmpl/default_debug.php

$this->name = JText::_('COM_CONFIG_DEBUG_SETTINGS');
to
$this->name = JText::_('COM_CONFIG_DEBUG_SETTINGS*');

Go to Global Configuration => System and enable Debug Language

The translation works.
Look at the bottom of the page: there is an error in Parsing Error in language files (it shows red)

Patch and test again.
No more parsing error.

@Radek-Suski
@baijianpeng

avatar infograf768 infograf768 - open - 9 Nov 2015
avatar infograf768 infograf768 - change - 9 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Nov 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 9 Nov 2015
Category Language & Strings
avatar zero-24 zero-24 - change - 9 Nov 2015
Easy No Yes
avatar fontanil fontanil - test_item - 10 Nov 2015 - Tested successfully
avatar fontanil
fontanil - comment - 10 Nov 2015

I have tested this item :white_check_mark: successfully on edcdd0a

Tested on 3.5.0: works fine
Thanks


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

avatar gwsdesk
gwsdesk - comment - 10 Nov 2015

Tested also on 3.5.0 and works4me

Cheers

avatar infograf768 infograf768 - alter_testresult - 10 Nov 2015 - gwsdesk: Tested successfully
avatar infograf768 infograf768 - change - 10 Nov 2015
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 10 Nov 2015

2 good tests. RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 10 Nov 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 10 Nov 2015
Milestone Added:
avatar wilsonge wilsonge - change - 11 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-11 08:55:20
Closed_By wilsonge
avatar wilsonge wilsonge - close - 11 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - close - 11 Nov 2015
avatar wilsonge wilsonge - reference | 2be8e03 - 11 Nov 15
avatar wilsonge wilsonge - merge - 11 Nov 2015
avatar wilsonge wilsonge - close - 11 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - change - 11 Nov 2015
Labels Removed: ?
avatar infograf768 infograf768 - head_ref_deleted - 11 Nov 2015

Add a Comment

Login with GitHub to post a comment