From 17a8017a592d15c4570d0cdd666f79f96414308a Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 11 Oct 2022 10:51:10 +0200 Subject: [PATCH] utilitaires temporaires --- site/i18n/create_modules.php | 17 +++++++++++++++++ site/i18n/update_es.php | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 site/i18n/create_modules.php create mode 100644 site/i18n/update_es.php diff --git a/site/i18n/create_modules.php b/site/i18n/create_modules.php new file mode 100644 index 00000000..7850e9b3 --- /dev/null +++ b/site/i18n/create_modules.php @@ -0,0 +1,17 @@ + $value) { + if (array_key_exists($key, $data)) { + unset($dataTarget[$key]); + echo $key; + echo "

"; + } + } + + file_put_contents ($target . '.json', json_encode($dataTarget, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX); diff --git a/site/i18n/update_es.php b/site/i18n/update_es.php new file mode 100644 index 00000000..7b86379c --- /dev/null +++ b/site/i18n/update_es.php @@ -0,0 +1,12 @@ + $value) { + if (!array_key_exists($key, $dataTarget)) { + $dataTarget[$key] = ''; + } + } + + file_put_contents ('es.json', json_encode($dataTarget, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX);