alchemy_i18n 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +100 -0
- data/app/assets/javascripts/alchemy_i18n/de.js +28 -24
- data/app/assets/javascripts/alchemy_i18n/es.js +1 -2
- data/app/assets/javascripts/alchemy_i18n/fr.js +1 -2
- data/app/assets/javascripts/alchemy_i18n/it.js +1 -2
- data/app/assets/javascripts/alchemy_i18n/nl.js +1 -2
- data/app/assets/javascripts/alchemy_i18n/ru.js +1 -2
- data/app/assets/javascripts/alchemy_i18n/zh-CN.js +1 -2
- data/lib/alchemy_i18n/engine.rb +6 -0
- data/lib/alchemy_i18n/version.rb +1 -1
- data/lib/alchemy_i18n.rb +2 -1
- data/lib/generators/alchemy_i18n/install/install_generator.rb +0 -2
- data/locales/alchemy.de.yml +98 -93
- data/locales/alchemy.es.yml +41 -2
- data/locales/alchemy.it.yml +15 -0
- data/locales/alchemy.nb-NO.yml +783 -0
- data/locales/alchemy.nl.yml +15 -0
- data/vendor/assets/javascripts/select2_locale_de.js +18 -0
- data/vendor/assets/javascripts/select2_locale_es.js +19 -0
- data/vendor/assets/javascripts/select2_locale_fr.js +18 -0
- data/vendor/assets/javascripts/select2_locale_it.js +17 -0
- data/vendor/assets/javascripts/select2_locale_nl.js +17 -0
- data/vendor/assets/javascripts/select2_locale_ru.js +23 -0
- data/vendor/assets/javascripts/select2_locale_zh-CN.js +16 -0
- metadata +28 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1d136fcb080a14be76a7fe577646561bea6d42ea02dab0c9b1aa2dd101d85e1
|
|
4
|
+
data.tar.gz: 908873c94d85302bb3b1f2efc8497143be203874c06beaf1ef588f92ffc06d05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
2
|
-
|
|
1
|
+
Alchemy.translations = Alchemy.translations || {}
|
|
3
2
|
Alchemy.translations.de = {
|
|
4
|
-
allowed_chars:
|
|
5
|
-
cancel:
|
|
6
|
-
cancelled:
|
|
7
|
-
click_to_edit:
|
|
8
|
-
complete:
|
|
9
|
-
element_dirty_notice:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
}
|
data/lib/alchemy_i18n/engine.rb
CHANGED
|
@@ -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
|
data/lib/alchemy_i18n/version.rb
CHANGED
data/lib/alchemy_i18n.rb
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
require
|
|
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)
|