Loading...
 
Skip to main content

get_strings.php doesn't collect properly strings with single quotes in some cases

Status
Closed
Subject
get_strings.php doesn't collect properly strings with single quotes in some cases
Category
  • Error
Feature
i18n (Multilingual, l10n, Babelfish)
Submitted by
Rodrigo Primo
Lastmod by
Rodrigo Primo
Rating
(0)
Description

get_strings.php doesn't collect properly strings with single quotes if they have been declared inside tr() or tra() functions with single quotes as well. For example:

tr('You are not permitted to edit someone else\'s post!');

Should go to language.php files as:

// "You are not permitted to edit someone else's post!" => "You are not permitted to edit someone else's post!"

But instead it goes as:

// "You are not permitted to edit someone else\\'s post!" => "You are not permitted to edit someone else\\'s post!"

Even the string above is translated, the translation will never be used by Tiki since the English string in language.php files differs from the original string.

Solution
See r36324. This commit fix the problem and correct language.php files to preserve translations.
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Created
Friday 19 August, 2011 16:47:35 UTC
by Rodrigo Primo
LastModif
Friday 19 August, 2011 16:57:46 UTC


Show PHP error messages