Commit Graph

19 Commits

Author SHA1 Message Date
Neil Lalonde c90c4b9703 sadly I can't remove that locale_file_walker dependency from pull_translations.rb 2017-11-16 15:05:45 -05:00
Gerhard Schlager a1ee61ec25 handle empty locale file in Transifex pull script 2017-09-16 23:33:21 +02:00
Gerhard Schlager 74a855b08d Ensure that all locale files are pulled from Transifex 2017-09-16 22:33:00 +02:00
Guo Xiang Tan 5012d46cbd Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
Guo Xiang Tan 6af40a6ade Remove unused `discourse_imgur` plugin. 2017-07-10 11:15:22 +09:00
Arpit Jalan 22b488704e FIX: add discourse-narrative-bot locales path 2017-05-30 14:23:05 +05:30
Régis Hanol 41c850f31d fix pull_translation script 2017-02-27 22:48:50 +01:00
Arpit Jalan 5a48cea395 FIX: correct path for LocaleFileWalker 2017-02-28 01:42:55 +05:30
Gerhard Schlager 71421df72a
Always use --force when pulling translations from Transifex
Also, this makes it possible to pull only selected languages which is
handy during development and for adding a new language.
2016-08-12 22:12:03 +02:00
Neil Lalonde 7109442ef0 Stop using Transifex workaround, but keep the code just in case 2016-07-27 17:55:28 -04:00
Gerhard Schlager 3d76ad623c
Workaround for Transifex YML issues 2016-07-27 18:02:57 +02:00
frictionel f41d3b15d2 Update pull_translations.rb
updated outdated installation instructions
2016-04-02 15:20:23 +02:00
Gerhard Schlager d2d823186c Add support for YAML aliases to pull_translations script
The English locale files use aliases and anchors in order to prevent
duplicate translations. Transifex doesn't support them.
The script finds those aliases and anchors in the original locale files
and adds them to the locale files pulled from Transifex.
2015-09-19 00:18:38 +02:00
Gerhard Schlager dc8759962b Fixes the language codes in the pull_translations script 2015-05-06 17:03:07 +02:00
Gerhard Schlager 1023badd90 Simplify the pull_translations script
- There's no need for configuring "trans.<lang>" for each resource.
  Using the global "lang_map" in the Transifex client config is enough.
- The Transifex client can rename locales. No need to do this manually.
- Pull all translation files for each locale that has a file named
  config/locales/client.<lang>.yml. Up until now the script did only
  update existing files, but didn't add missing ones. That is why there
  are so many translation files for the poll plugin missing.
2015-04-30 22:32:12 +02:00
Arpit Jalan dbe525b9de update Transifex project link 2014-05-20 22:24:19 +05:30
Neil Lalonde 69dee799e9 Add plugins/poll and discourse_imgur translation files to transifex 2014-04-24 10:53:03 -04:00
Neil Lalonde 1cddfd64c9 Add a flag to pull_translations.rb to force pull of all translations 2014-04-16 10:35:27 -04:00
Neil Lalonde 9e947df747 Add script/pull_translations. It pulls translations from Transifex, and does some post-processing on the files. 2014-04-14 11:53:25 -04:00