alchemy_i18n 2.1.0 → 3.0.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: c2895fcc017e9ab9418ae334a4177785bd04a9d6ce16857ea13ba5ee599b24c6
4
- data.tar.gz: 877b9c050b8fc05a981c962db5c1fac1a8da7ac8052e510bdffdda3a5296b5e3
3
+ metadata.gz: f1d136fcb080a14be76a7fe577646561bea6d42ea02dab0c9b1aa2dd101d85e1
4
+ data.tar.gz: 908873c94d85302bb3b1f2efc8497143be203874c06beaf1ef588f92ffc06d05
5
5
  SHA512:
6
- metadata.gz: fae7439ae005a81b68baad5d28e0a70407cfd531258c38a3d8ac49d6c560567576e19992262bbb8294cde70cb4f12fbb1a43f0fd6002cd8e709d3346c3ef7595
7
- data.tar.gz: 4e9ffd4c4b12f24cf8b06d3c0ac47629f40d356ee2cddfa79d1abd66d23e228bd51f3058cf764a9749bb154b3191d64e6fcbd8acc9ac95a1dfe114665ad58b8f
6
+ metadata.gz: e835b863f10c3d42db9ab5ae92cc9cfe151c5d1d76544438180a93bc9fd228d09c0b8f47f8d8110e03a9ea6160469f0ca913502f046d54a6a031ed2626db102b
7
+ data.tar.gz: 13575f931f873f2a80d045d95102976e0791ba0e60816f7807da03294f477a4b6d48498ef51614f8649a8e3cdcb2c8c4b89a4f0cfdbac6118188d7fe782d8ec1
data/CHANGELOG.md ADDED
@@ -0,0 +1,100 @@
1
+ # Changelog
2
+
3
+ ## [v3.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v3.0.0) (2022-04-17)
4
+
5
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.3.0...v3.0.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - Load the translations from the gem instead of copy [\#33](https://github.com/AlchemyCMS/alchemy_i18n/issues/33)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Append locales to I18n load path [\#41](https://github.com/AlchemyCMS/alchemy_i18n/pull/41) ([tvdeyen](https://github.com/tvdeyen))
14
+ - Update alchemy.es.yml [\#39](https://github.com/AlchemyCMS/alchemy_i18n/pull/39) ([diegodev9](https://github.com/diegodev9))
15
+ - Update alchemy.es.yml [\#38](https://github.com/AlchemyCMS/alchemy_i18n/pull/38) ([diegodev9](https://github.com/diegodev9))
16
+ - Add german node translations [\#37](https://github.com/AlchemyCMS/alchemy_i18n/pull/37) ([tvdeyen](https://github.com/tvdeyen))
17
+ - Allow Alchemy 6 [\#36](https://github.com/AlchemyCMS/alchemy_i18n/pull/36) ([afdev82](https://github.com/afdev82))
18
+
19
+ ## [v2.3.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.3.0) (2021-10-26)
20
+
21
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.2.0...v2.3.0)
22
+
23
+ **Closed issues:**
24
+
25
+ - Norwegian translation added through localeapp [\#30](https://github.com/AlchemyCMS/alchemy_i18n/issues/30)
26
+
27
+ **Merged pull requests:**
28
+
29
+ - Add norwegian translation [\#35](https://github.com/AlchemyCMS/alchemy_i18n/pull/35) ([tvdeyen](https://github.com/tvdeyen))
30
+
31
+ ## [v2.2.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.2.0) (2021-10-26)
32
+
33
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.1.0...v2.2.0)
34
+
35
+ **Closed issues:**
36
+
37
+ - Missing file alchemy.translations [\#32](https://github.com/AlchemyCMS/alchemy_i18n/issues/32)
38
+
39
+ **Merged pull requests:**
40
+
41
+ - Alchemy v5 compatibility [\#34](https://github.com/AlchemyCMS/alchemy_i18n/pull/34) ([afdev82](https://github.com/afdev82))
42
+ - Add select2 locales [\#31](https://github.com/AlchemyCMS/alchemy_i18n/pull/31) ([tvdeyen](https://github.com/tvdeyen))
43
+ - Added Dutch translation for menu-functionality. [\#29](https://github.com/AlchemyCMS/alchemy_i18n/pull/29) ([bjornconstructors](https://github.com/bjornconstructors))
44
+ - IT translations for new menus entry [\#26](https://github.com/AlchemyCMS/alchemy_i18n/pull/26) ([juryghidinelli](https://github.com/juryghidinelli))
45
+
46
+ ## [v2.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.1.0) (2020-07-20)
47
+
48
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.0.0...v2.1.0)
49
+
50
+ **Merged pull requests:**
51
+
52
+ - Copy Flatpickr translations in generator [\#28](https://github.com/AlchemyCMS/alchemy_i18n/pull/28) ([mamhoff](https://github.com/mamhoff))
53
+ - Install Generator: Copy JS translations [\#27](https://github.com/AlchemyCMS/alchemy_i18n/pull/27) ([mamhoff](https://github.com/mamhoff))
54
+ - Fix tinymce sprockets include in generator [\#25](https://github.com/AlchemyCMS/alchemy_i18n/pull/25) ([mamhoff](https://github.com/mamhoff))
55
+ - Add translations for menu names [\#24](https://github.com/AlchemyCMS/alchemy_i18n/pull/24) ([mamhoff](https://github.com/mamhoff))
56
+
57
+ ## [v2.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.0.0) (2019-12-29)
58
+
59
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v1.1.0...v2.0.0)
60
+
61
+ **Merged pull requests:**
62
+
63
+ - Add demo content translations from core [\#22](https://github.com/AlchemyCMS/alchemy_i18n/pull/22) ([tvdeyen](https://github.com/tvdeyen))
64
+ - Add a install generator [\#21](https://github.com/AlchemyCMS/alchemy_i18n/pull/21) ([tvdeyen](https://github.com/tvdeyen))
65
+
66
+ ## [v1.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v1.1.0) (2019-12-29)
67
+
68
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v1.0.0...v1.1.0)
69
+
70
+ **Merged pull requests:**
71
+
72
+ - Add German translations for page select [\#19](https://github.com/AlchemyCMS/alchemy_i18n/pull/19) ([tvdeyen](https://github.com/tvdeyen))
73
+ - Add German translations for menus and nodes [\#18](https://github.com/AlchemyCMS/alchemy_i18n/pull/18) ([tvdeyen](https://github.com/tvdeyen))
74
+ - Add add\_nested\_element key [\#16](https://github.com/AlchemyCMS/alchemy_i18n/pull/16) ([tvdeyen](https://github.com/tvdeyen))
75
+ - Prepare release [\#15](https://github.com/AlchemyCMS/alchemy_i18n/pull/15) ([tvdeyen](https://github.com/tvdeyen))
76
+
77
+ ## [v1.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v1.0.0) (2019-04-17)
78
+
79
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/e1a898c9fcdd2865f5a1c0510f8f96f5f03d734c...v1.0.0)
80
+
81
+ **Merged pull requests:**
82
+
83
+ - Remove Gemfile.lock [\#14](https://github.com/AlchemyCMS/alchemy_i18n/pull/14) ([tvdeyen](https://github.com/tvdeyen))
84
+ - Add date column translations [\#13](https://github.com/AlchemyCMS/alchemy_i18n/pull/13) ([tvdeyen](https://github.com/tvdeyen))
85
+ - Add translations for Flatpickr.js [\#12](https://github.com/AlchemyCMS/alchemy_i18n/pull/12) ([mamhoff](https://github.com/mamhoff))
86
+ - Include all necessary files in gemspec [\#11](https://github.com/AlchemyCMS/alchemy_i18n/pull/11) ([tvdeyen](https://github.com/tvdeyen))
87
+ - Fix the localeapp config [\#10](https://github.com/AlchemyCMS/alchemy_i18n/pull/10) ([tvdeyen](https://github.com/tvdeyen))
88
+ - Fix the polish translation file [\#9](https://github.com/AlchemyCMS/alchemy_i18n/pull/9) ([tvdeyen](https://github.com/tvdeyen))
89
+ - Add localeapp config [\#8](https://github.com/AlchemyCMS/alchemy_i18n/pull/8) ([tvdeyen](https://github.com/tvdeyen))
90
+ - Add Alchemy Devise translations [\#7](https://github.com/AlchemyCMS/alchemy_i18n/pull/7) ([tvdeyen](https://github.com/tvdeyen))
91
+ - Add simplified Chinese translation [\#6](https://github.com/AlchemyCMS/alchemy_i18n/pull/6) ([tvdeyen](https://github.com/tvdeyen))
92
+ - Add select2 translation instructions [\#5](https://github.com/AlchemyCMS/alchemy_i18n/pull/5) ([tvdeyen](https://github.com/tvdeyen))
93
+ - Add JS translations [\#4](https://github.com/AlchemyCMS/alchemy_i18n/pull/4) ([tvdeyen](https://github.com/tvdeyen))
94
+ - Add simple form translations [\#3](https://github.com/AlchemyCMS/alchemy_i18n/pull/3) ([tvdeyen](https://github.com/tvdeyen))
95
+ - Move Kaminari pagination translations into alchemy scope [\#2](https://github.com/AlchemyCMS/alchemy_i18n/pull/2) ([tvdeyen](https://github.com/tvdeyen))
96
+ - Typo error [\#1](https://github.com/AlchemyCMS/alchemy_i18n/pull/1) ([juryghidinelli](https://github.com/juryghidinelli))
97
+
98
+
99
+
100
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -1,29 +1,33 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {}
3
2
  Alchemy.translations.de = {
4
- allowed_chars: 'von %{count} Zeichen',
5
- cancel: 'Abbrechen',
6
- cancelled: 'Abgebrochen',
7
- click_to_edit: 'Klicken zum Bearbeiten',
8
- complete: 'Abgeschlossen',
9
- element_dirty_notice: 'Dieses Element hat nicht gespeicherte Änderungen. Möchten Sie es wirklich einklappen?',
10
- help: 'Hilfe',
11
- ok: 'Ok',
12
- page_dirty_notice: 'Sie haben ungesicherte Änderungen auf der Seite. Diese gehen verloren, wenn Sie fortfahren.',
13
- page_found: 'Seite gefunden',
14
- pages_found: 'Seiten gefunden',
15
- 'Search page': 'Seite wählen',
16
- url_validation_failed: 'Die URL hat kein gültiges Format.',
17
- warning: 'Achtung!',
18
- 'File is too large': 'Datei ist zu groß.',
19
- 'File is too small': 'Datei ist zu klein.',
20
- 'File type not allowed': 'Dateityp nicht erlaubt.',
21
- 'Maximum number of files exceeded': 'Maximale Anzahl gleichzeitig erlaubter Datei-Uploads erreicht.',
22
- 'Uploaded bytes exceed file size': 'Maximale Größe der erlaubten Dateigröße erreicht.',
3
+ allowed_chars: "von %{count} Zeichen",
4
+ cancel: "Abbrechen",
5
+ cancelled: "Abgebrochen",
6
+ click_to_edit: "Klicken zum Bearbeiten",
7
+ complete: "Abgeschlossen",
8
+ element_dirty_notice:
9
+ "Dieses Element hat nicht gespeicherte Änderungen. Möchten Sie es wirklich einklappen?",
10
+ help: "Hilfe",
11
+ ok: "Ok",
12
+ page_dirty_notice:
13
+ "Sie haben ungesicherte Änderungen auf der Seite. Diese gehen verloren, wenn Sie fortfahren.",
14
+ page_found: "Seite gefunden",
15
+ pages_found: "Seiten gefunden",
16
+ "Search page": "Seite wählen",
17
+ url_validation_failed: "Die URL hat kein gültiges Format.",
18
+ warning: "Achtung!",
19
+ "File is too large": "Datei ist zu groß.",
20
+ "File is too small": "Datei ist zu klein.",
21
+ "File type not allowed": "Dateityp nicht erlaubt.",
22
+ "Maximum number of files exceeded":
23
+ "Maximale Anzahl gleichzeitig erlaubter Datei-Uploads erreicht.",
24
+ "Uploaded bytes exceed file size":
25
+ "Maximale Größe der erlaubten Dateigröße erreicht.",
26
+ "Successfully moved menu item": "Menü-Eintrag wurde erfolgreich bewegt.",
23
27
  formats: {
24
28
  datetime: "d.m.Y H:i",
25
29
  date: "d.m.Y",
26
30
  time: "H:i",
27
- time_24hr: true
28
- }
29
- };
31
+ time_24hr: true,
32
+ },
33
+ }
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations.es = {
4
3
  allowed_chars: 'de %{count} caracteres',
5
4
  cancel: 'Cancelar',
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations.fr = {
4
3
  allowed_chars: 'von %{count} signes',
5
4
  cancel: 'abandonner',
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations.it = {
4
3
  allowed_chars: 'di %{count} caratteri',
5
4
  cancel: 'Annulla',
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations.nl = {
4
3
  allowed_chars: 'of %{count} chars',
5
4
  cancel: 'Annuleren',
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations.ru = {
4
3
  allowed_chars: '%{count} знаков',
5
4
  cancel: 'Отмена',
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations['zh-CN'] = {
4
3
  allowed_chars: '%{count} 个字符',
5
4
  cancel: '取消',
@@ -1,4 +1,10 @@
1
1
  module AlchemyI18n
2
2
  class Engine < ::Rails::Engine
3
+ initializer "alchemy-i18n" do |app|
4
+ locales = Array(app.config.i18n.available_locales)
5
+ pattern = locales.empty? ? "*" : "{#{locales.join ","}}"
6
+ files = Dir[root.join("locales", "alchemy.#{pattern}.yml")]
7
+ I18n.load_path.concat(files)
8
+ end
3
9
  end
4
10
  end
@@ -1,3 +1,3 @@
1
1
  module AlchemyI18n
2
- VERSION = '2.1.0'
2
+ VERSION = "3.0.0"
3
3
  end
data/lib/alchemy_i18n.rb CHANGED
@@ -1 +1,2 @@
1
- require 'alchemy_i18n/engine'
1
+ require "rails-i18n"
2
+ require "alchemy_i18n/engine"
@@ -22,8 +22,6 @@ module AlchemyI18n
22
22
 
23
23
  def copy_locales
24
24
  locales.each do |locale|
25
- yml_filename = "alchemy.#{locale}.yml"
26
- copy_file File.join('locales', yml_filename), Rails.root.join('config', 'locales', yml_filename)
27
25
  js_filename = "#{locale}.js"
28
26
  copy_file File.join('app', 'assets', 'javascripts', 'alchemy_i18n', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'alchemy_i18n', js_filename)
29
27
  copy_file File.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename)