From 45ff10f953f4af681252ed4d77c32b375f9c396c Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Sun, 13 Oct 2024 14:56:59 +0200 Subject: [PATCH] feat: add vietnamese translation (#573) --- README.md | 6 +++--- includes/version.php | 2 +- passwordreset.php | 4 +--- service-worker.js | 1 + 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 49f0bc6a6..8f717ac93 100644 --- a/README.md +++ b/README.md @@ -171,10 +171,10 @@ I welcome contributions from the community and look forward to working with you ### Translations If you want to contribute with a translation of wallos: -- Add your language code to `includes/i18n/languages.php` in the format `"en" => "English"`. Please use the original language name and not the english translation. -- Create a copy of the file `includes/i18n/en.php` and rename it to the language code you used above. Example: pt.php for "pt" => "Português". +- Add your language code to `includes/i18n/languages.php` in the format `"en" => ["name" => "English", "dir" => "ltr"],`. Please use the original language name and not the english translation. +- Create a copy of the file `includes/i18n/en.php` and rename it to the language code you used above. Example: pt.php for "pt" => ["name" => "Português", "dir" => "ltr"],. - Translate all the values on the language file to the new language. (Incomplete translations will not be accepted). -- Create a copy of the file `scripts/i18n/en.js` and rename it to the language code you used above. Example: pt.js for "pt" => "Português". +- Create a copy of the file `scripts/i18n/en.js` and rename it to the language code you used above. Example: pt.js for "pt" => ["name" => "Português", "dir" => "ltr"],. - Translate all the values on the language file to the new language. (Incomplete translations will not be accepted). ## License diff --git a/includes/version.php b/includes/version.php index 5efb522b9..a2c44d980 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/passwordreset.php b/passwordreset.php index f537ec5f4..a6d7066a4 100644 --- a/passwordreset.php +++ b/passwordreset.php @@ -239,6 +239,4 @@ function openRegitrationPage() { - - -?> \ No newline at end of file + \ No newline at end of file diff --git a/service-worker.js b/service-worker.js index 58a6b2f0c..3bd9c2496 100644 --- a/service-worker.js +++ b/service-worker.js @@ -55,6 +55,7 @@ self.addEventListener('install', function (event) { 'scripts/i18n/sr_lat.js', 'scripts/i18n/sr.js', 'scripts/i18n/tr.js', + 'scripts/i18n/vi.js', 'scripts/i18n/zh_cn.js', 'scripts/i18n/zh_tw.js', 'scripts/i18n/getlang.js',