From ac425431ed9dab6b00b0f3c06e066add77c9e904 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 8 Jan 2017 00:55:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D0=BC=D0=B5=D0=BD=D1=8E=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=8F=D0=B7=D1=8B=D0=BA=D0=BE=D0=B2=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D1=81=D1=81=D1=8B?= =?UTF-8?q?=D0=BB=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D1=81=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B8=D1=81=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/i18n-collect.js | 2 +- src/components/langMenu/LangMenu.jsx | 5 +++++ src/components/langMenu/langMenu.intl.json | 3 ++- src/components/langMenu/langMenu.scss | 18 ++++++++++++++++++ src/i18n/be.json | 1 + src/i18n/en.json | 1 + src/i18n/pt.json | 1 + src/i18n/ru.json | 1 + src/i18n/uk.json | 1 + 9 files changed, 31 insertions(+), 2 deletions(-) diff --git a/scripts/i18n-collect.js b/scripts/i18n-collect.js index 884b9ec..5745fcd 100644 --- a/scripts/i18n-collect.js +++ b/scripts/i18n-collect.js @@ -9,7 +9,7 @@ import prompt from 'prompt'; const MESSAGES_PATTERN = `${__dirname}/../dist/messages/**/*.json`; const LANG_DIR = `${__dirname}/../src/i18n`; const DEFAULT_LOCALE = 'en'; -const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'uk'); +const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'pt', 'uk'); /** * Aggregates the default messages that were extracted from the app's diff --git a/src/components/langMenu/LangMenu.jsx b/src/components/langMenu/LangMenu.jsx index 0df1491..be02c30 100644 --- a/src/components/langMenu/LangMenu.jsx +++ b/src/components/langMenu/LangMenu.jsx @@ -62,6 +62,11 @@ class LangMenu extends Component { {this.renderLangLabel(lang)} ))} +
  • + + + +
  • diff --git a/src/components/langMenu/langMenu.intl.json b/src/components/langMenu/langMenu.intl.json index 3c26c68..ec2bab4 100644 --- a/src/components/langMenu/langMenu.intl.json +++ b/src/components/langMenu/langMenu.intl.json @@ -1,3 +1,4 @@ { - "siteLanguage": "Site language" + "siteLanguage": "Site language", + "improveTranslations": "Improve translations" } diff --git a/src/components/langMenu/langMenu.scss b/src/components/langMenu/langMenu.scss index 30cbddd..aedb942 100644 --- a/src/components/langMenu/langMenu.scss +++ b/src/components/langMenu/langMenu.scss @@ -111,6 +111,24 @@ background-image: url('~icons/flag_uk.svg'); } +.improveTranslatesLink { + font-size: 11px; + text-align: center; + padding: 5px 10px; + + a { + color: #9a9a9a; + border-bottom: 1px dotted #9a9a9a; + text-decoration: none; + transition: .25s; + + &:hover { + border-bottom-color: #777; + color: #777; + } + } +} + .trigger { color: #666; border-bottom: 1px dotted #666; diff --git a/src/i18n/be.json b/src/i18n/be.json index 06c61c7..75044d3 100644 --- a/src/i18n/be.json +++ b/src/i18n/be.json @@ -91,6 +91,7 @@ "components.contact.youMessageReceived": "Ваш зварот у форму зваротнай сувязі атрыман. Мы адкажам вам у бліжэйшы час. Адказ прыйдзе на ўказаны вамі E-mail:", "components.footerMenu.contactUs": "Зваротная сувязь", "components.footerMenu.rules": "Правілы сайта", + "components.langMenu.improveTranslations": "Палепшыць пераклады", "components.langMenu.siteLanguage": "Мова сайта", "components.profile.accountDescription": "Дзякуючы акаўнту Ely.by вы можаце атрымаць доступ да шматлікіх рэсурсаў, звязаных з Minecraft. Беражыце свой акаўнт, выкарыстоўвайце надзейны пароль і рэгулярна яго змяняйце.", "components.profile.accountPreferencesTitle": "Налады акаўнта Ely.by", diff --git a/src/i18n/en.json b/src/i18n/en.json index ba29676..5491dbf 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -91,6 +91,7 @@ "components.contact.youMessageReceived": "Your message was received. We will respond to you shortly. The answer will come to your E-mail:", "components.footerMenu.contactUs": "Contact Us", "components.footerMenu.rules": "Rules", + "components.langMenu.improveTranslations": "Improve translations", "components.langMenu.siteLanguage": "Site language", "components.profile.accountDescription": "Ely.by account allows you to get access to many Minecraft resources. Please, take care of your account safety. Use secure password and change it regularly.", "components.profile.accountPreferencesTitle": "Ely.by account preferences", diff --git a/src/i18n/pt.json b/src/i18n/pt.json index 8aa3efe..3940f81 100644 --- a/src/i18n/pt.json +++ b/src/i18n/pt.json @@ -93,6 +93,7 @@ "components.footerMenu.rules": "Regras", "components.profile.back": "Voltar", "components.profile.accountDescription": "A conta Ely.by lhe d\u00e1 acesso a muitos recursos do Minecraft, mas cuidado com a sua conta e mude a senha regularmente.", + "components.langMenu.improveTranslations": "", "components.langMenu.siteLanguage": "Idioma do site", "components.profile.accountPreferencesTitle": "Prefer\u00eancias da conta Ely.by", "components.profile.changeEmail.alreadyReceivedCode": "J\u00e1 recebeu o c\u00f3digo", diff --git a/src/i18n/ru.json b/src/i18n/ru.json index 2f7a722..5df7875 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -91,6 +91,7 @@ "components.contact.youMessageReceived": "Ваше обращение в форму обратной связи получено. Мы ответим вам в ближайшее время. Ответ придёт на указанный вами E‑mail:", "components.footerMenu.contactUs": "Обратная связь", "components.footerMenu.rules": "Правила сайта", + "components.langMenu.improveTranslations": "Улучшить переводы", "components.langMenu.siteLanguage": "Язык сайта", "components.profile.accountDescription": "Благодаря аккаунту Ely.by вы можете получить доступ ко многим ресурсам, связанным с Minecraft. Берегите свой аккаунт, используйте надёжный пароль и регулярно его меняйте.", "components.profile.accountPreferencesTitle": "Настройки аккаунта Ely.by", diff --git a/src/i18n/uk.json b/src/i18n/uk.json index 7225fc1..72ab4a6 100644 --- a/src/i18n/uk.json +++ b/src/i18n/uk.json @@ -91,6 +91,7 @@ "components.contact.youMessageReceived": "Ваше звернення отримано. Ми відповімо вам найближчим часом. Відповідь прийде на вказаний вами E-mail:", "components.footerMenu.contactUs": "Зворотній зв'язок", "components.footerMenu.rules": "Правила сайту", + "components.langMenu.improveTranslations": "", "components.langMenu.siteLanguage": "Мова сайту", "components.profile.accountDescription": "Завдяки аккаунту Ely.by ви можете отримати доступ до багатьох ресурсів, пов'язаних з Minecraft. Бережіть свій аккаунт, використовуйте надійний пароль і регулярно його змінюйте.", "components.profile.accountPreferencesTitle": "Налаштування акаунту Ely.by",