Commit Graph

32 Commits

Author SHA1 Message Date
Gerhard Schlager
44922b0c25 zh_TW isn't broken anymore 2018-09-05 00:47:39 +02:00
Neil Lalonde
3fddbb603c omit zh_TW which breaks the build 2018-08-21 11:17:42 -04:00
Neil Lalonde
0ada6b81c2 DEV: add a way to skip locales with problems that break Discourse and need to be fixed in Transifex 2018-08-21 10:36:48 -04:00
Gerhard Schlager
bf30f74f60 Pulling translations for a new language didn't work 2018-05-29 20:57:32 +02:00
Gerhard Schlager
bdeae17d32 Automatically create locale.js.erb file when adding new locale 2018-05-29 12:58:31 +02:00
Gerhard Schlager
88217ca0b6 Configure Transifex for local-dates plugin 2018-05-04 10:13:15 +02:00
Gerhard Schlager
ef80341806 Update pull_translations script to work with latest Transifex changes
* supports resources created with Transifex's YML handler version 3
* uses translations-manager gem
* makes sure that the locales supported by translations-manager are not out of sync
* update the lang_map in tx client config before pulling translations
2018-04-27 19:20:19 +02:00
Gerhard Schlager
8412a96acb Do not create empty files when pulling from Transifex 2018-04-06 14:47:25 +02:00
Gerhard Schlager
09c4491f73 Add remaining core plugins to Transifex 2018-04-06 14:15:47 +02:00
Gerhard Schlager
37fa843efc Allow pulling of Urdu translations from Transifex again
The translations have been fixed.
2018-03-27 11:56:40 +02:00
Neil Lalonde
baba45a369 ur translations still break the build, so stop pulling them from Transifex for now 2018-03-26 11:03:14 -04:00
Gerhard Schlager
19ee2c3fac Add presence plugin to pull translations script to fix the build 2017-12-11 20:37:54 +01:00
Gerhard Schlager
7c3a087ef5 FIX: Script for pulling translations ignored exit code 2017-12-06 17:05:10 +01:00
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