diff options
| author | 2025-09-05 16:57:34 -0400 | |
|---|---|---|
| committer | 2025-09-05 22:57:34 +0200 | |
| commit | de624dc8ce63ec819c61216d9d44f828841c293e (patch) | |
| tree | 5c14d7a1984e3ba6ee739a97edd1b2fe86b3c10f /cli/manipulate.translation.php | |
| parent | 2404a29ee559c953221187111150114ddce3766c (diff) | |
Add new file in i18n (#7917)
When manipulating I18N files, it is now possible to add a new file to all
languages. This action is available both in the manipulation script and
the makefile.
Diffstat (limited to 'cli/manipulate.translation.php')
| -rwxr-xr-x | cli/manipulate.translation.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/manipulate.translation.php b/cli/manipulate.translation.php index db6243cc0..1c4a30ca6 100755 --- a/cli/manipulate.translation.php +++ b/cli/manipulate.translation.php @@ -43,6 +43,8 @@ switch ($cliOptions->action) { $i18nData->addValue($cliOptions->key, $cliOptions->value, $cliOptions->language); } elseif (isset($cliOptions->key) && isset($cliOptions->value)) { $i18nData->addKey($cliOptions->key, $cliOptions->value); + } elseif (isset($cliOptions->key)) { + $i18nData->addFile($cliOptions->key); } elseif (isset($cliOptions->language)) { $reference = null; if (isset($cliOptions->originLanguage)) { @@ -172,6 +174,8 @@ Example 9: revert ignore on all unmodified keys. Removes IGNORE comments from al Example 10: check if a key exist. php $file -a exist -k my_key +Example 11: add a new file to all languages + php $file -a add -k my_file.php HELP; exit(); } |
