diff options
| author | 2018-03-04 14:41:40 +0100 | |
|---|---|---|
| committer | 2018-03-04 14:41:40 +0100 | |
| commit | 67c173f79b011224c28ee7296484db065b2cd87a (patch) | |
| tree | f38496ca3c7f920d1534dc5ea1ebce27945f796b /cli/i18n/I18nFile.php | |
| parent | 29dc711b7b53e73eb9325da217cef8affbd3c11b (diff) | |
Add new tools to manipulate translations (#1818)
I've added a tool to add a new translation for a specific key and language.
I've added a tool to format the i18n files.
This is one of the steps to improve the translation process.
Diffstat (limited to 'cli/i18n/I18nFile.php')
| -rw-r--r-- | cli/i18n/I18nFile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/i18n/I18nFile.php b/cli/i18n/I18nFile.php index 627f6f580..a07efdf88 100644 --- a/cli/i18n/I18nFile.php +++ b/cli/i18n/I18nFile.php @@ -113,7 +113,7 @@ class i18nFile { $translation = preg_replace($patterns, $replacements, $translation); // Double quoting is mandatory to have new lines instead of \n strings - return sprintf("<?php\n\nreturn %s;", $translation); + return sprintf("<?php\n\nreturn %s;\n", $translation); } } |
