Skip to content

Commit

Permalink
fix(question): locale issue cause tests to fail
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
btry committed Dec 16, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b9de3fd commit 51148a3
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/fields.class.php
Original file line number Diff line number Diff line change
@@ -380,10 +380,10 @@ public static function fieldTypeExists($type) {
* @return null|PluginFormcreatorFieldInterface
*/
public static function getFieldInstance($type, PluginFormcreatorQuestion $question) {
$className = self::getFieldClassname($type);
if (!self::fieldTypeExists($type)) {
return null;
}
$className = self::getFieldClassname($type);
return new $className($question);
}
}
Binary file modified locales/en_GB.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion locales/en_GB.po
Original file line number Diff line number Diff line change
@@ -570,7 +570,7 @@ msgstr "The section is required"
#: inc/question.class.php:315
#, php-format
msgid "Field type %1$s is not available for question %2$s."
msgstr "Field type %1$s is not available for question%2$s."
msgstr "Field type %1$s is not available for question %2$s."

#: inc/question.class.php:335
msgid "This type of question is not compatible with public forms."

0 comments on commit 51148a3

Please sign in to comment.