Skip to content

A platform for community discussion. Free, open, simple.

Configure Transifex for local-dates plugin

Gerhard Schlager88217ca0b64d
diff --git a/.gitignore b/.gitignore
index 051211a4f3d..601f196f5c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/.tx/config b/.tx/config
index f936be8b0ff..bc1bcb84c93 100644
--- a/.tx/config
+++ b/.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
diff --git a/plugins/discourse-local-dates/bin/pull_translations.rb b/plugins/discourse-local-dates/bin/pull_translations.rb
deleted file mode 100755
index a4052d80105..00000000000
--- a/plugins/discourse-local-dates/bin/pull_translations.rb
+++ /dev/null
@@ -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
diff --git a/script/plugin-translations.rb b/script/plugin-translations.rb
index ea8701ceccd..c01e804a8ca 100644
--- a/script/plugin-translations.rb
+++ b/script/plugin-translations.rb
@@ -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',
diff --git a/script/pull_translations.rb b/script/pull_translations.rb
index 4370b229032..c3bab58ad37 100755
--- a/script/pull_translations.rb
+++ b/script/pull_translations.rb
@@ -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) }