From a12054cdba3438ad8b21c92b9dda39db6c4e9eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Valero?= Date: Sat, 27 Jul 2019 13:16:36 -0500 Subject: [PATCH] Plugin can not have AMOS translations because of code error --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 4894c82..0f2975c 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,14 @@ TODO/ limitations: * If there's demand, add ability to use custom icons/images. * If there's demand, translation. +* Please look at Moodle documentation about plugins with missing strings in AMOS at https://docs.moodle.org/dev/Translating_plugins#Plugins_with_coding_errors : + +The plugin code must not rely on trailing and leading whitespace in strings. +The string file must be considered as pure data file with the syntax $string['id'] = 'value'; +No other PHP syntax such as concatenation, heredoc and nowdoc is supported by the tools that AMOS use when processing the strings (even if it may work in Moodle itself). +Use neither string concatenation operators nor other PHP logic inside string files. Those should really be considered as plain data files with simple $string['key'] = 'value'; syntax, nothing more. + + Credits ------- Calculated Objects question type. Copyright © 2010 Nicholas Freear.