From 689a43617545f2309e679a5238bc50949c818dac Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Mon, 13 Aug 2018 18:25:39 +0200 Subject: [PATCH] Enh: Added Amharic language support --- protected/humhub/config/common.php | 1 + protected/humhub/config/i18n.php | 2 +- protected/humhub/docs/CHANGELOG.md | 1 + protected/humhub/messages/am/humhub.yii.php | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 protected/humhub/messages/am/humhub.yii.php diff --git a/protected/humhub/config/common.php b/protected/humhub/config/common.php index 69928dea76..c78c0b43b6 100644 --- a/protected/humhub/config/common.php +++ b/protected/humhub/config/common.php @@ -201,6 +201,7 @@ $config = [ 'lv' => 'Latvijas', 'sl' => 'Slovenščina', 'hr' => 'Hrvatski', + 'am' => 'አማርኛ', ], 'ldap' => [ // LDAP date field formats diff --git a/protected/humhub/config/i18n.php b/protected/humhub/config/i18n.php index 0fb27bd0b3..72318577f8 100644 --- a/protected/humhub/config/i18n.php +++ b/protected/humhub/config/i18n.php @@ -11,7 +11,7 @@ return [ 'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..', // array, required, list of language codes that the extracted messages // should be translated to. For example, ['zh-CN', 'de']. - 'languages' => ['de', 'fr', 'nl', 'pt', 'pl', 'pt_br', 'es', 'it', 'tr', 'ru', 'th', 'uk', 'el', 'hu', 'ja', 'nb_no', 'zh_cn', 'ca', 'an', 'cs', 'vi', 'sv', 'da', 'uz', 'fa_ir', 'bg', 'sk', 'zh_tw', 'ro', 'ar', 'id', 'ko', 'lt', 'hr', 'ht', 'lv', 'sl', 'nn_no'], + 'languages' => ['de', 'fr', 'nl', 'pt', 'pl', 'pt_br', 'es', 'it', 'tr', 'ru', 'th', 'uk', 'el', 'hu', 'ja', 'nb_no', 'zh_cn', 'ca', 'an', 'cs', 'vi', 'sv', 'da', 'uz', 'fa_ir', 'bg', 'sk', 'zh_tw', 'ro', 'ar', 'id', 'ko', 'lt', 'hr', 'ht', 'lv', 'sl', 'nn_no', 'am'], // string, the name of the function for translating messages. // Defaults to 'Yii::t'. This is used as a mark to find the messages to be // translated. You may use a string for single function name or an array for diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index dfb5391762..e2ec8b0537 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -10,6 +10,7 @@ HumHub Change Log - Enh: Added queuing for search updates of commments - Enh: Added queue clear option at Administration - Information - Enh: Improved support of languages unsupported Yii2 +- Enh: Added Amharic language support 1.3.1 (August 7, 2018) diff --git a/protected/humhub/messages/am/humhub.yii.php b/protected/humhub/messages/am/humhub.yii.php new file mode 100644 index 0000000000..0b67a5fe47 --- /dev/null +++ b/protected/humhub/messages/am/humhub.yii.php @@ -0,0 +1,3 @@ +