mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Add translations for core plugin branch
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user