add pull_translations.rb

This commit is contained in:
Neil Lalonde 2017-11-20 18:08:48 -05:00
parent 4bfb0fc70b
commit b2f819fb7f
34 changed files with 257 additions and 3 deletions

15
.tx/config Normal file
View File

@ -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.<lang>.yml
source_file = config/locales/client.en.yml
source_lang = en
type = YML
[discourse-org.discourse-solvedserverenyml]
file_filter = config/locales/server.<lang>.yml
source_file = config/locales/server.en.yml
source_lang = en
type = YML

3
Gemfile Normal file
View File

@ -0,0 +1,3 @@
group :development do
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
end

17
Gemfile.lock Normal file
View File

@ -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

8
bin/pull_translations.rb Executable file
View File

@ -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

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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 <i class='fa fa-check-square'></i>"
other: "solutions <i class='fa fa-check-square'></i>"
other: "solutions <i class='fa fa-check-square'></i>"
accepted_html: "<i class='fa-check-square fa accepted'></i> Résolu <span class='by'>par <a href data-user-card='{{username_lower}}'>{{username}}</a></span> dans le <a href='{{post_path}}'>message #{{post_number}}</a>"
accepted_notification: "<i title='accepted' class='fa fa-check-square'></i><p><span>{{username}}</span> {{description}}</p>"

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: "اسمح للمستخدمين باختيار الحلول في كل المواضيع (إذ أنك تتحكم في هذا افتراضيا بتحرير الفئات)"

View File

@ -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: {}

View File

@ -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)"

View File

@ -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"

View File

@ -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: "به کاربر اجازه انتخاب راه حل را بده."

View File

@ -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"

View File

@ -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"

View File

@ -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: "אפשר למשתמשים לקבל תשובות לכל הנושאים(כברירת מחדל שולט בזה על ידי עריכת הקטגוריה"

View File

@ -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)"

View File

@ -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)"

View File

@ -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)"

View File

@ -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)"

View File

@ -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: "Разрешить пользователям отмечать ответы в темах (управляется в свойствах раздела)"

View File

@ -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.)"

View File

@ -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: "允许用户在所有主题选择解决方案(默认情况下在各个分类设置中更设置)"