From b2f819fb7f94b1e987eb72fb3e2ff187449a9c58 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 20 Nov 2017 18:08:48 -0500 Subject: [PATCH] add pull_translations.rb --- .tx/config | 15 +++++++++++++++ Gemfile | 3 +++ Gemfile.lock | 17 +++++++++++++++++ bin/pull_translations.rb | 8 ++++++++ config/locales/client.ar.yml | 7 +++++++ config/locales/client.da.yml | 7 +++++++ config/locales/client.de.yml | 7 +++++++ config/locales/client.es.yml | 7 +++++++ config/locales/client.fa_IR.yml | 7 +++++++ config/locales/client.fi.yml | 7 +++++++ config/locales/client.fr.yml | 9 ++++++++- config/locales/client.he.yml | 7 +++++++ config/locales/client.it.yml | 7 +++++++ config/locales/client.pl_PL.yml | 7 +++++++ config/locales/client.pt.yml | 7 +++++++ config/locales/client.pt_BR.yml | 7 +++++++ config/locales/client.ru.yml | 7 +++++++ config/locales/client.tr_TR.yml | 7 +++++++ config/locales/client.zh_CN.yml | 7 +++++++ config/locales/server.ar.yml | 7 +++++++ config/locales/server.da.yml | 8 ++++++++ config/locales/server.de.yml | 7 +++++++ config/locales/server.es.yml | 7 +++++++ config/locales/server.fa_IR.yml | 7 +++++++ config/locales/server.fi.yml | 7 +++++++ config/locales/server.fr.yml | 11 +++++++++-- config/locales/server.he.yml | 7 +++++++ config/locales/server.it.yml | 7 +++++++ config/locales/server.pl_PL.yml | 7 +++++++ config/locales/server.pt.yml | 7 +++++++ config/locales/server.pt_BR.yml | 7 +++++++ config/locales/server.ru.yml | 7 +++++++ config/locales/server.tr_TR.yml | 7 +++++++ config/locales/server.zh_CN.yml | 7 +++++++ 34 files changed, 257 insertions(+), 3 deletions(-) create mode 100644 .tx/config create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100755 bin/pull_translations.rb create mode 100644 config/locales/server.da.yml diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..1d2f0cd --- /dev/null +++ b/.tx/config @@ -0,0 +1,15 @@ +[main] +host = https://www.transifex.com +lang_map = el_GR: el, es_ES: es, fr_FR: fr, ko_KR: ko, pt_PT: pt, sk_SK: sk, vi_VN: vi + +[discourse-org.discourse-solvedclientenyml] +file_filter = config/locales/client..yml +source_file = config/locales/client.en.yml +source_lang = en +type = YML + +[discourse-org.discourse-solvedserverenyml] +file_filter = config/locales/server..yml +source_file = config/locales/server.en.yml +source_lang = en +type = YML diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..2a5f647 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +group :development do + gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..370d87d --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,17 @@ +GIT + remote: https://github.com/discourse/translations-manager.git + revision: 91404d4206b3bbe9670aed25ecb31516f91659de + specs: + translations-manager (0.1.0) + +GEM + specs: + +PLATFORMS + ruby + +DEPENDENCIES + translations-manager! + +BUNDLED WITH + 1.13.6 diff --git a/bin/pull_translations.rb b/bin/pull_translations.rb new file mode 100755 index 0000000..a4052d8 --- /dev/null +++ b/bin/pull_translations.rb @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby + +require 'translations_manager' + +YML_DIRS = ['config/locales'].map { |d| File.expand_path(d) } +YML_FILE_PREFIXES = ['client', 'server'] + +TranslationsManager::TransifexUpdater.new(YML_DIRS, YML_FILE_PREFIXES, *ARGV).perform diff --git a/config/locales/client.ar.yml b/config/locales/client.ar.yml index 91fe49b..9e0e6da 100644 --- a/config/locales/client.ar.yml +++ b/config/locales/client.ar.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + ar: js: solved: diff --git a/config/locales/client.da.yml b/config/locales/client.da.yml index 031550f..1c916af 100644 --- a/config/locales/client.da.yml +++ b/config/locales/client.da.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + da: js: solved: diff --git a/config/locales/client.de.yml b/config/locales/client.de.yml index 37113d8..08ce86c 100644 --- a/config/locales/client.de.yml +++ b/config/locales/client.de.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + de: js: solved: diff --git a/config/locales/client.es.yml b/config/locales/client.es.yml index 5ea07a9..fe62018 100644 --- a/config/locales/client.es.yml +++ b/config/locales/client.es.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + es: js: solved: diff --git a/config/locales/client.fa_IR.yml b/config/locales/client.fa_IR.yml index 14a104a..915ccc4 100644 --- a/config/locales/client.fa_IR.yml +++ b/config/locales/client.fa_IR.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + fa_IR: js: solved: diff --git a/config/locales/client.fi.yml b/config/locales/client.fi.yml index 6e7bfe6..224421f 100644 --- a/config/locales/client.fi.yml +++ b/config/locales/client.fi.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + fi: js: solved: diff --git a/config/locales/client.fr.yml b/config/locales/client.fr.yml index 66f7b65..4d5e1f7 100644 --- a/config/locales/client.fr.yml +++ b/config/locales/client.fr.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + fr: js: solved: @@ -11,6 +18,6 @@ fr: solution: "Solution" solution_summary: one: "solution " - other: "solutions " + other: "solutions " accepted_html: " Résolu par {{username}} dans le message #{{post_number}}" accepted_notification: "

{{username}} {{description}}

" diff --git a/config/locales/client.he.yml b/config/locales/client.he.yml index 4af675c..2a490c6 100644 --- a/config/locales/client.he.yml +++ b/config/locales/client.he.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + he: js: solved: diff --git a/config/locales/client.it.yml b/config/locales/client.it.yml index fb314f5..bd144e2 100644 --- a/config/locales/client.it.yml +++ b/config/locales/client.it.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + it: js: solved: diff --git a/config/locales/client.pl_PL.yml b/config/locales/client.pl_PL.yml index 748ed52..ea6885f 100644 --- a/config/locales/client.pl_PL.yml +++ b/config/locales/client.pl_PL.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + pl_PL: js: solved: diff --git a/config/locales/client.pt.yml b/config/locales/client.pt.yml index 918d015..24b5bb7 100644 --- a/config/locales/client.pt.yml +++ b/config/locales/client.pt.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + pt: js: solved: diff --git a/config/locales/client.pt_BR.yml b/config/locales/client.pt_BR.yml index c332209..dad690a 100644 --- a/config/locales/client.pt_BR.yml +++ b/config/locales/client.pt_BR.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + pt_BR: js: solved: diff --git a/config/locales/client.ru.yml b/config/locales/client.ru.yml index 32955bd..63f5b11 100644 --- a/config/locales/client.ru.yml +++ b/config/locales/client.ru.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + ru: js: solved: diff --git a/config/locales/client.tr_TR.yml b/config/locales/client.tr_TR.yml index a236366..d3c9082 100644 --- a/config/locales/client.tr_TR.yml +++ b/config/locales/client.tr_TR.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + tr_TR: js: solved: diff --git a/config/locales/client.zh_CN.yml b/config/locales/client.zh_CN.yml index 497317b..c2798c9 100644 --- a/config/locales/client.zh_CN.yml +++ b/config/locales/client.zh_CN.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + zh_CN: js: solved: diff --git a/config/locales/server.ar.yml b/config/locales/server.ar.yml index c024742..336e66a 100644 --- a/config/locales/server.ar.yml +++ b/config/locales/server.ar.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + ar: site_settings: allow_solved_on_all_topics: "اسمح للمستخدمين باختيار الحلول في كل المواضيع (إذ أنك تتحكم في هذا افتراضيا بتحرير الفئات)" diff --git a/config/locales/server.da.yml b/config/locales/server.da.yml new file mode 100644 index 0000000..9ca8189 --- /dev/null +++ b/config/locales/server.da.yml @@ -0,0 +1,8 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + +da: {} diff --git a/config/locales/server.de.yml b/config/locales/server.de.yml index edd7fe3..6db5a21 100644 --- a/config/locales/server.de.yml +++ b/config/locales/server.de.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + de: site_settings: allow_solved_on_all_topics: "Erlaube Nutzern für Themen in allen Kategorien Lösungen als Antworten zu markieren (normalerweise wird dies für jede Kategorie individuell eingestellt)" diff --git a/config/locales/server.es.yml b/config/locales/server.es.yml index e0f66b0..3de2602 100644 --- a/config/locales/server.es.yml +++ b/config/locales/server.es.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + es: site_settings: solved_enabled: "Activar plugin de temas solucionados, permitir a los usuarios seleccionar soluciones a temas" diff --git a/config/locales/server.fa_IR.yml b/config/locales/server.fa_IR.yml index c04f0b7..f114b34 100644 --- a/config/locales/server.fa_IR.yml +++ b/config/locales/server.fa_IR.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + fa_IR: site_settings: allow_solved_on_all_topics: "به کاربر اجازه انتخاب راه حل را بده." diff --git a/config/locales/server.fi.yml b/config/locales/server.fi.yml index fbe94b5..445b1ae 100644 --- a/config/locales/server.fi.yml +++ b/config/locales/server.fi.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + fi: site_settings: solved_enabled: "Ota käyttöön Solved-lisäosa, salii käyttäjän merkitä ratkaisuja ketjuille" diff --git a/config/locales/server.fr.yml b/config/locales/server.fr.yml index 83e4597..a9f93a6 100644 --- a/config/locales/server.fr.yml +++ b/config/locales/server.fr.yml @@ -1,10 +1,17 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + fr: site_settings: - solved_enabled: "Activer le plugin Solutions, autoriser les utilisateurs à sélectionner des solutions aux sujets" + solved_enabled: "Activer le plugin Solutions, autoriser les utilisateurs à sélectionner des solutions aux sujets" allow_solved_on_all_topics: "Autoriser les utilisateurs à sélectionner une solution sur tous les sujets (par défaut, vous devez modifier les catégories concernées)" accept_all_solutions_trust_level: "Niveau de confiance minimum requis pour accepter des solutions sur n'importe quel sujet (même sans en être l'auteur)" empty_box_on_unsolved: "Afficher une coche vide à côté des sujets non résolus" - solved_quote_length: "Nombre de caractères à citer lors de l'affichage de la solution sous le premier post" + solved_quote_length: "Nombre de caractères à citer lors de l'affichage de la solution sous le premier post" reports: accepted_solutions: title: "Solutions acceptées" diff --git a/config/locales/server.he.yml b/config/locales/server.he.yml index 47b28e4..ed84f9c 100644 --- a/config/locales/server.he.yml +++ b/config/locales/server.he.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + he: site_settings: allow_solved_on_all_topics: "אפשר למשתמשים לקבל תשובות לכל הנושאים(כברירת מחדל שולט בזה על ידי עריכת הקטגוריה" diff --git a/config/locales/server.it.yml b/config/locales/server.it.yml index 766e3bc..ff2cd04 100644 --- a/config/locales/server.it.yml +++ b/config/locales/server.it.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + it: site_settings: allow_solved_on_all_topics: "Consentire agli utenti di selezionare le soluzioni su tutti gli argomenti (per difetto puoi controllare il settaggio modificando le categorie)" diff --git a/config/locales/server.pl_PL.yml b/config/locales/server.pl_PL.yml index b92e998..f56193b 100644 --- a/config/locales/server.pl_PL.yml +++ b/config/locales/server.pl_PL.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + pl_PL: site_settings: allow_solved_on_all_topics: "Pozwól oznaczać użytkownikom wszystkie tematy jako rozwiązane (domyślnie tylko dla wybranych kategorii w ich ustawieniach)" diff --git a/config/locales/server.pt.yml b/config/locales/server.pt.yml index d19f1ad..9ef24c6 100644 --- a/config/locales/server.pt.yml +++ b/config/locales/server.pt.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + pt: site_settings: allow_solved_on_all_topics: "Permitir que os utilizadores escolham soluções em todos os tópicos (por omissão essa gestão é feita pela edição de categorias)" diff --git a/config/locales/server.pt_BR.yml b/config/locales/server.pt_BR.yml index 1ba9397..418566a 100644 --- a/config/locales/server.pt_BR.yml +++ b/config/locales/server.pt_BR.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + pt_BR: site_settings: allow_solved_on_all_topics: "Permitir usuários selecionarem soluções em todos tópicos (por padrão você controla isso editando categorias)" diff --git a/config/locales/server.ru.yml b/config/locales/server.ru.yml index 894e899..93211a4 100644 --- a/config/locales/server.ru.yml +++ b/config/locales/server.ru.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + ru: site_settings: allow_solved_on_all_topics: "Разрешить пользователям отмечать ответы в темах (управляется в свойствах раздела)" diff --git a/config/locales/server.tr_TR.yml b/config/locales/server.tr_TR.yml index 34dac93..2153e51 100644 --- a/config/locales/server.tr_TR.yml +++ b/config/locales/server.tr_TR.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + tr_TR: site_settings: allow_solved_on_all_topics: "Kullanıcılar yanıtları çözüldü olarak seçebilsinler mi? (Varsayılan olarak kategori düzenleme kısmından ayarlayabilirsiniz.)" diff --git a/config/locales/server.zh_CN.yml b/config/locales/server.zh_CN.yml index b561fbd..9b1c301 100644 --- a/config/locales/server.zh_CN.yml +++ b/config/locales/server.zh_CN.yml @@ -1,3 +1,10 @@ +# encoding: utf-8 +# +# Never edit this file. It will be overwritten when translations are pulled from Transifex. +# +# To work with us on translations, join this project: +# https://www.transifex.com/projects/p/discourse-org/ + zh_CN: site_settings: allow_solved_on_all_topics: "允许用户在所有主题选择解决方案(默认情况下在各个分类设置中更设置)"