Add translations for core plugin branch

This commit is contained in:
Oliver Günther
2017-11-23 11:08:34 +01:00
parent 467f94019a
commit 845797d9ed
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ platforms :mri, :mingw, :x64_mingw do
end
group :opf_plugins do
gem 'openproject-translations', git: 'https://github.com/opf/openproject-translations.git', branch: 'dev'
gem 'openproject-translations', git: 'https://github.com/opf/openproject-translations.git', branch: 'translations-in-core'
end
# TODO: Make this group :optional when bundler v10.x
+2 -2
View File
@@ -60,8 +60,8 @@ GIT
GIT
remote: https://github.com/opf/openproject-translations.git
revision: 4ead96fdf6edc99b892896ef74d133162cc9b5e3
branch: dev
revision: 70af71e9462fa32dc355bbf9d99eddfc6f1ef4dc
branch: translations-in-core
specs:
openproject-translations (7.4.0)
crowdin-api (~> 0.4.1)
+2 -2
View File
@@ -110,8 +110,8 @@ module OpenProject
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# Add locales from crowdin translations to i18n
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', 'crowdin', '*.{rb,yml}').to_s]
config.i18n.default_locale = :en
# Fall back to default locale
View File
@@ -52,6 +52,10 @@ module OpenProject::Plugins
app.config.plugins_to_test_paths << root
end
initializer "#{engine_name}.i18n_load_paths" do |app|
app.config.i18n.load_path << config.root.join('config', 'locales' , 'crowdin')
end
initializer "#{engine_name}.register_cell_view_paths" do |_app|
pathname = config.root.join("app/cells/views")