AMOS translator breaks translations when importing from file when the strings end in single quotes escaped by backslashes. Example in slovenian:
Local (already fixed) translation in Moodle for string
'core_completion/completionexpectedfor':
|
Pričakovana zaključenost za '{$a->modulename}' dejavnost '{$a->instancename}'
|
Saved PHP file moodledata/lang/sl_local/completion.php:
$string['completionexpectedfor'] = 'Pričakovana zaključenost za \'{$a->modulename}\' dejavnost \'{$a->instancename}\''; |
Text to be imported to AMOS from said file:
Pričakovana zaključenost za '{$a->modulename}' dejavnost '{$a->instancename}\
|
When I searched for strings ending with a backslash in AMOS, I found 317 hits in default English. We stumbled across this problem, when the Timeline started throwing an error described in this issue and fixed it by changing the local translations and running the query on the database manually:
UPDATE mdl_event SET name = REGEXP_REPLACE( name,"\\\\$","'") WHERE name LIKE "%\\"; |
- will be (partly) resolved by
-
MDLSITE-3589 AMOS removes correctly escaped single quote as last character of an English string
-
- Resolved
-