From 4fe9576ec7a73ac33b98132591f4e320df62ffc8 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Wed, 23 Oct 2019 22:43:19 +0300 Subject: [PATCH] Added Thai locale --- CHANGES.md | 2 +- app/config/locale/th.countries.php | 2 +- app/config/locale/th.php | 2 +- app/init.php | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 722ac6145a..4733f2571d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,7 @@ ## Features -* Added 1 new locales for locale service and email templates (ml,) +* Added 1 new locales for locale service and email templates (ml, th) * 2 stage Docker build * New database rule validation options * Update docs example with auth info diff --git a/app/config/locale/th.countries.php b/app/config/locale/th.countries.php index e659764ab1..e183b4795b 100644 --- a/app/config/locale/th.countries.php +++ b/app/config/locale/th.countries.php @@ -158,7 +158,7 @@ return [ 'SV' => 'เซียร์ราลีโอน', 'SM' => 'ซานมาริโน', 'SO' => 'โซมาเลีย', - 'RS' => 'เซอร์เบีย, + 'RS' => 'เซอร์เบีย', 'SS' => 'ซูดานใต้', 'ST' => 'เซาตูเมและปรินซิปี', 'SR' => 'ซูรินาเม', diff --git a/app/config/locale/th.php b/app/config/locale/th.php index cf675d2db4..841d97496f 100644 --- a/app/config/locale/th.php +++ b/app/config/locale/th.php @@ -8,7 +8,7 @@ return [ // Service - Users 'auth.emails.team' => '%s ทีม', 'auth.emails.confirm.title' => 'ยืนยันบัญชี', - 'auth.emails.confirm.body' => th.email.auth.confirm.tpl', + 'auth.emails.confirm.body' => 'th.email.auth.confirm.tpl', 'auth.emails.recovery.title' => 'รีเซ็ตรหัสผ่าน', 'auth.emails.recovery.body' => 'th.email.auth.recovery.tpl', 'auth.emails.invitation.title' => 'ขอเชิญเข้าร่วม %s ทีมที่ %s', diff --git a/app/init.php b/app/init.php index b9c158201a..fb4160b36e 100644 --- a/app/init.php +++ b/app/init.php @@ -60,6 +60,7 @@ const APP_LOCALES = [ 'sq', // Albanian 'sv', // Swedish 'ta', // Tamil + 'th', // Thai 'tr', // Turkish 'ua', // Ukrainian 'vi', // Vietnamese @@ -204,6 +205,7 @@ Locale::setLanguage('sl', include __DIR__ . '/config/locale/sl.php'); Locale::setLanguage('sq', include __DIR__ . '/config/locale/sq.php'); Locale::setLanguage('sv', include __DIR__ . '/config/locale/sv.php'); Locale::setLanguage('ta', include __DIR__ . '/config/locale/ta.php'); +Locale::setLanguage('th', include __DIR__.'/config/locale/th.php'); Locale::setLanguage('tr', include __DIR__.'/config/locale/tr.php'); Locale::setLanguage('ua', include __DIR__.'/config/locale/ua.php'); Locale::setLanguage('vi', include __DIR__.'/config/locale/vi.php');