alchemy_i18n 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7570d12517e4318ca4ba96b7c6b228e8d8fd6f1c118cc129565380afb2fa218
4
- data.tar.gz: 861c794bc16f3c0e8f5528a47cb4629178cdbe3ad23147ef17dcfeffd1d33d97
3
+ metadata.gz: c2895fcc017e9ab9418ae334a4177785bd04a9d6ce16857ea13ba5ee599b24c6
4
+ data.tar.gz: 877b9c050b8fc05a981c962db5c1fac1a8da7ac8052e510bdffdda3a5296b5e3
5
5
  SHA512:
6
- metadata.gz: c2ebcdcbc6f907004f06d0eebfa612b839cc06f47d4468849a62215ef074ed3f1fe29e1640b1cea71ca35496bbe8860b9a4231505695383d1e6b82cb0ffd34f6
7
- data.tar.gz: a2a8091d0bf603fdb48439776c1d036316acdbcb056c208daecfd394e30d3fcc1853c695ae54415285e179c8ac87610bf4ae87b4505f7f969fe09dfc632d5eaf
6
+ metadata.gz: fae7439ae005a81b68baad5d28e0a70407cfd531258c38a3d8ac49d6c560567576e19992262bbb8294cde70cb4f12fbb1a43f0fd6002cd8e709d3346c3ef7595
7
+ data.tar.gz: 4e9ffd4c4b12f24cf8b06d3c0ac47629f40d356ee2cddfa79d1abd66d23e228bd51f3058cf764a9749bb154b3191d64e6fcbd8acc9ac95a1dfe114665ad58b8f
@@ -1,3 +1,3 @@
1
1
  module AlchemyI18n
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -18,12 +18,15 @@ module AlchemyI18n
18
18
  default: [],
19
19
  desc: "Locales to generate files for. #{description}"
20
20
 
21
- source_root AlchemyI18n::Engine.root.join('locales')
21
+ source_root AlchemyI18n::Engine.root
22
22
 
23
23
  def copy_locales
24
24
  locales.each do |locale|
25
- filename = "alchemy.#{locale}.yml"
26
- copy_file filename, Rails.root.join('config', 'locales', filename)
25
+ yml_filename = "alchemy.#{locale}.yml"
26
+ copy_file File.join('locales', yml_filename), Rails.root.join('config', 'locales', yml_filename)
27
+ js_filename = "#{locale}.js"
28
+ copy_file File.join('app', 'assets', 'javascripts', 'alchemy_i18n', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'alchemy_i18n', js_filename)
29
+ copy_file File.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename)
27
30
  end
28
31
  end
29
32
 
@@ -39,7 +42,7 @@ module AlchemyI18n
39
42
 
40
43
  def copy_tinymce_locales
41
44
  locales.each do |locale|
42
- copy_file "tinymce/#{locale}.js",
45
+ copy_file File.join("locales", "tinymce", "#{locale}.js"),
43
46
  Rails.root.join('vendor', 'assets', 'javascripts', 'tinymce', 'langs', "#{locale}.js")
44
47
  end
45
48
  end
@@ -47,7 +50,7 @@ module AlchemyI18n
47
50
  def append_manifest
48
51
  locales.each do |locale|
49
52
  append_file 'app/assets/config/manifest.js', <<~MANIFEST
50
- //= link vendor/assets/javascripts/tinymce/langs/#{locale}.js
53
+ //= link tinymce/langs/#{locale}.js
51
54
  MANIFEST
52
55
  end
53
56
  end
@@ -6,6 +6,20 @@ de:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Seitenleistenmenü
18
+ #
19
+ menu_names:
20
+ main_menu: Hauptmenü
21
+ footer_menut: Footermenü
22
+
9
23
  # == Translations for page_layout names
10
24
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
25
  #
@@ -6,6 +6,20 @@ es:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Menú de barra lateral
18
+ #
19
+ menu_names:
20
+ main_menu: Menú principal
21
+ footer_menut: Menú de pie de página
22
+
9
23
  # == Translations for page_layout names
10
24
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
25
  #
@@ -6,6 +6,20 @@ fr:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Menu latéral
18
+ #
19
+ menu_names:
20
+ main_menu: Menu principal
21
+ footer_menut: Menu de bas de page
22
+
9
23
  # == Translations for page_layout names
10
24
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
25
  #
@@ -6,6 +6,18 @@ it:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Side bar menu (?)
18
+ #
19
+ menu_names:
20
+
9
21
  # == Translations for page_layout names
10
22
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
23
  #
@@ -6,6 +6,18 @@ nl:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Side bar menu (?)
18
+ #
19
+ menu_names:
20
+
9
21
  # == Translations for page_layout names
10
22
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
23
  #
@@ -6,6 +6,18 @@ pl:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Side bar menu (?)
18
+ #
19
+ menu_names:
20
+
9
21
  # == Translations for page_layout names
10
22
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
23
  #
@@ -6,6 +6,18 @@ ru:
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
8
 
9
+ # == Translations for menu names
10
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
11
+ # We're providing main and footer menu here as a convenience.
12
+ # Example:
13
+ #
14
+ # de:
15
+ # alchemy:
16
+ # menu_names:
17
+ # sidebar_menu: Seitenleistenmenü
18
+ #
19
+ menu_names:
20
+
9
21
  # == Translations for page_layout names
10
22
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
11
23
  #
@@ -5,6 +5,17 @@ zh-CN:
5
5
  # = Alchemy Translations
6
6
  # All translations used in Alchemy CMS are inside this alchemy namespace.
7
7
  alchemy:
8
+ # == Translations for menu names
9
+ # Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
10
+ # We're providing main and footer menu here as a convenience.
11
+ # Example:
12
+ #
13
+ # de:
14
+ # alchemy:
15
+ # menu_names:
16
+ # sidebar_menu: Side bar menu (?)
17
+ #
18
+ menu_names:
8
19
 
9
20
  # == Translations for page_layout names
10
21
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-29 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 4.4.0.a
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: '6.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 4.4.0.a
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.0'
32
+ version: '6.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails-i18n
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +92,7 @@ homepage: https://alchemy-cms.com
92
92
  licenses:
93
93
  - MIT
94
94
  metadata: {}
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubygems_version: 3.0.3
111
- signing_key:
111
+ signing_key:
112
112
  specification_version: 4
113
113
  summary: AlchemyCMS translation files
114
114
  test_files: []