Hi,
I open this discussion after seeing a problem on badge page (in french).
After some search, it appears that some (english) strings begin with (a) space. And when one wants to insert this space in existing translation, AMOS ignores it, don't see the change, and it's impossible to insert this space.
I've made a search on Moodle 3.8 code, with the following command (from Moodle directory):
for i in `find . -type f -name '*.php' | grep 'lang/en/'`
do grep -Hne "'] = ' " $i | grep string
done | sort | cut -c 3-
and results are:
admin/tool/lp/lang/en/tool_lp.php:211:$string['sitedefault'] = ' (Site default) ';
lang/en/admin.php:768:$string['maxusersperpage'] = ' Maximum users per page';
lang/en/badges.php:170:$string['bydate'] = ' complete by';
lang/en/badges.php:199:$string['criteria_descr_bydate'] = ' by <em>{$a}</em> ';
lang/en/badges.php:200:$string['criteria_descr_grade'] = ' with minimum grade of <em>{$a}</em> ';
lang/en/badges.php:555:$string['warnexpired'] = ' (This badge has expired!)';
lang/en/repository.php:74:$string['confirmrenamefolder'] = ' Are you sure you want to move/rename this folder? Any alias/shortcut files that reference files in this folder will be converted into true copies.';
question/type/calculated/lang/en/qtype_calculated.php:49:$string['datasetrole'] = ' The wild cards <strong>{x..}</strong> will be substituted by a numerical value from their dataset';
If you search with several installed plugins, you'll find other strings.
Moreover, i'm wondering if these spaces shouldn't better be defined in Moodle code than in lang strings? Is there a recommandation/coding style? I don't find anything clear about this in coding style documentation.
Séverin