mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +08:00
Configure Transifex for local-dates plugin
This commit is contained in:
parent
2ed7b6e459
commit
88217ca0b6
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -46,14 +46,13 @@ bootsnap-compile-cache/
|
|||
|
||||
# Ignore plugins except for the bundled ones.
|
||||
/plugins/*
|
||||
!/plugins/emoji/
|
||||
!/plugins/lazyYT/
|
||||
!/plugins/poll/
|
||||
!/plugins/discourse-details/
|
||||
!/plugins/discourse-nginx-performance-report
|
||||
!/plugins/discourse-narrative-bot
|
||||
!/plugins/discourse-presence
|
||||
!/plugins/discourse-cronos
|
||||
!/plugins/discourse-local-dates
|
||||
/plugins/*/auto_generated/
|
||||
|
||||
/spec/fixtures/plugins/my_plugin/auto_generated
|
||||
|
|
12
.tx/config
12
.tx/config
|
@ -68,6 +68,18 @@ source_file = plugins/discourse-nginx-performance-report/config/locales/server.e
|
|||
source_lang = en
|
||||
type = YML
|
||||
|
||||
[discourse-org.core-plugin-local-dates-client-yml]
|
||||
file_filter = plugins/discourse-local-dates/config/locales/client.<lang>.yml
|
||||
source_file = plugins/discourse-local-dates/config/locales/client.en.yml
|
||||
source_lang = en
|
||||
type = YML
|
||||
|
||||
[discourse-org.core-plugin-local-dates-server-yml]
|
||||
file_filter = plugins/discourse-local-dates/config/locales/server.<lang>.yml
|
||||
source_file = plugins/discourse-local-dates/config/locales/server.en.yml
|
||||
source_lang = en
|
||||
type = YML
|
||||
|
||||
[discourse-org.403html]
|
||||
file_filter = public/403.<lang>.html
|
||||
source_file = public/403.html
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#!/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
|
|
@ -19,7 +19,6 @@ class PluginTxUpdater
|
|||
'discourse-canned-replies',
|
||||
'discourse-characters-required',
|
||||
'discourse-chat-integration',
|
||||
'discourse-cronos',
|
||||
'discourse-data-explorer',
|
||||
'discourse-math',
|
||||
'discourse-oauth2-basic',
|
||||
|
|
|
@ -22,6 +22,7 @@ end
|
|||
YML_DIRS = ['config/locales',
|
||||
'plugins/poll/config/locales',
|
||||
'plugins/discourse-details/config/locales',
|
||||
'plugins/discourse-local-dates/config/locales',
|
||||
'plugins/discourse-narrative-bot/config/locales',
|
||||
'plugins/discourse-nginx-performance-report/config/locales',
|
||||
'plugins/discourse-presence/config/locales'].map { |dir| expand_path(dir) }
|
||||
|
|
Loading…
Reference in New Issue
Block a user