alchemy_i18n 3.1.0 → 4.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: afcda1e2237220c08f23a6b02a6c62346f4c6023578013295aed3a65189a617b
4
- data.tar.gz: 0bddec1cc7a9697e6efd77f59921bf67e2a7064dd2cbb9ceb3d8564e41e99727
3
+ metadata.gz: fe8181e95211f25589c670ca70399aeadca6e72f74105afc71b54c3533965272
4
+ data.tar.gz: 550be2d0f544f9b7582ae4ee190a8b3ddb70fdf27a12ab9f0480c750c50abfd2
5
5
  SHA512:
6
- metadata.gz: 0fbad3ee9e873804db695e5ee41664706ebb68db0496f201728725337b6ad5558d175a453e9deb6052d455a597e39ab8ac85d2c877a4c80ad89069ea37bb04b1
7
- data.tar.gz: f2f8df792344d80ac620f378c1b565a39641430f84e5388147272545d902367ed0a1c14e44026bb473396b752cae6a10289bf737deae9b9430b3ed8c06689523
6
+ metadata.gz: 562a9758f5faf35da051b54d6674f45cce97fb131f056f4762dd323229ed7e2830cf50abfb6b044d69ac2c3ab712cee5d1292f4a528ac02af1439133841bde53
7
+ data.tar.gz: 7b1d0bcf163e1bf9fd6c6407cc2c5f308d4ee644eaa86511c28014bd59b51f34aea13959aadd65b84aa8b7c8401443ba744b5b6207d59f1da669a0972753dc97
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [v4.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v4.0.0) (2023-10-06)
4
+
5
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v3.2.0...v4.0.0)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Import flatpickr translations into Alchemy admin [\#51](https://github.com/AlchemyCMS/alchemy_i18n/pull/51) ([tvdeyen](https://github.com/tvdeyen))
10
+
11
+ **Closed issues:**
12
+
13
+ - Generator relies on webpacker [\#50](https://github.com/AlchemyCMS/alchemy_i18n/issues/50)
14
+
15
+ ## [v3.2.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v3.2.0) (2023-09-29)
16
+
17
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v3.1.0...v3.2.0)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - Check for webpack config in installer [\#49](https://github.com/AlchemyCMS/alchemy_i18n/pull/49) ([tvdeyen](https://github.com/tvdeyen))
22
+ - Add German translations for picture and file filters [\#48](https://github.com/AlchemyCMS/alchemy_i18n/pull/48) ([tvdeyen](https://github.com/tvdeyen))
23
+
3
24
  ## [v3.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v3.1.0) (2023-03-30)
4
25
 
5
26
  [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v3.0.2...v3.1.0)
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # AlchemyCMS Translations
2
2
 
3
- Translations files for AlchemyCMS 6.0 and above.
3
+ Translations files for AlchemyCMS 7.0 and above.
4
4
 
5
5
  ## Alchemy version
6
6
 
7
- For a Alchemy 5.3 compatible version use v2.3.1 or the `2.3-stable` branch.
7
+ - For a Alchemy 6.1 compatible version use v3.2.0 or the `3.2-stable` branch.
8
+ - For a Alchemy 5.3 compatible version use v2.3.1 or the `2.3-stable` branch.
8
9
 
9
10
  ## Installation
10
11
 
@@ -5,6 +5,10 @@ module AlchemyI18n
5
5
  pattern = locales.empty? ? "*" : "{#{locales.join ","}}"
6
6
  files = Dir[root.join("locales", "alchemy.#{pattern}.yml")]
7
7
  I18n.load_path.concat(files)
8
+ locales.each do |locale|
9
+ Alchemy.importmap.pin "flatpickr/#{locale}.js", to: "https://ga.jspm.io/npm:flatpickr@4.6.13/dist/l10n/#{locale}.js"
10
+ Alchemy.admin_js_imports << "flatpickr/#{locale}.js"
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module AlchemyI18n
2
- VERSION = "3.1.0"
2
+ VERSION = "4.0.0"
3
3
  end
@@ -37,16 +37,6 @@ module AlchemyI18n
37
37
  end
38
38
  end
39
39
 
40
- def append_pack
41
- webpack_config = YAML.load_file(Rails.root.join("config", "webpacker.yml"))[Rails.env]
42
- pack = Rails.root.join(webpack_config["source_path"], webpack_config["source_entry_path"], "alchemy/admin.js")
43
- additional_locales.each do |locale|
44
- append_file pack, <<~PACK
45
- import "flatpickr/dist/l10n/#{locale}.js"
46
- PACK
47
- end
48
- end
49
-
50
40
  def add_rails_i18n
51
41
  environment do
52
42
  "config.i18n.available_locales = #{locales.inspect}"
@@ -153,7 +153,7 @@ de:
153
153
 
154
154
  # == Mime Types translations
155
155
  # These are human readable mime types used for the document-type row in archive files.
156
- mime_types:
156
+ mime_types: &mime_types
157
157
  audio/mp4: "MP4-Audio"
158
158
  application/msword: "Word-Dokument"
159
159
  application/rtf: "RTF-Dokument"
@@ -161,6 +161,7 @@ de:
161
161
  text/plain: "Text-Dokument"
162
162
  video/mp4: "MP4-Video"
163
163
  video/mpeg: "MPEG-Video"
164
+ application/octet-stream: "Unbekannte Datei"
164
165
  application/pdf: "PDF-Dokument"
165
166
  application/x-flash-video: "Flash-Video"
166
167
  video/x-flv: "Flash-Video"
@@ -180,6 +181,49 @@ de:
180
181
  image/tiff: "TIFF-Bild"
181
182
  "text/x-vcard": "vCard"
182
183
  application/vcard: "vCard"
184
+ text/calendar: "iCal"
185
+
186
+ # === Translations for filter names and values
187
+ # Used in the right filter column in case the model has `alchemy_resource_filters` defined.
188
+ #
189
+ filters:
190
+ page:
191
+ by_page_layout:
192
+ name: Seitentyp
193
+ status:
194
+ name: Status
195
+ values:
196
+ not_public: Unveröffentlicht
197
+ published: Veröffentlicht
198
+ restricted: Geschützt
199
+ picture:
200
+ by_file_format:
201
+ name: Dateityp
202
+ values:
203
+ gif: GIF
204
+ jpeg: JPG
205
+ png: PNG
206
+ tiff: TIFF
207
+ webp: WebP
208
+ svg: SVG
209
+ misc:
210
+ name: Sonstige
211
+ values:
212
+ last_upload: Zuletzt hochgeladen
213
+ recent: Küzlich hochgeladen
214
+ without_tag: Ohne Tag
215
+ deletable: Nicht auf Seiten benutzt
216
+ attachment:
217
+ by_file_type:
218
+ name: Dateityp
219
+ values:
220
+ <<: *mime_types
221
+ misc:
222
+ name: Sonstige
223
+ values:
224
+ last_upload: Zuletzt hochgeladen
225
+ recent: Küzlich hochgeladen
226
+ without_tag: Ohne Tag
183
227
 
184
228
  link_target_options:
185
229
  default: gleichem Fenster
@@ -413,6 +457,7 @@ de:
413
457
  female: "Frau"
414
458
  file: "Datei"
415
459
  file_rename_error: "Datei konnte nicht umbenannt werden."
460
+ filtered_by: "gefiltert nach"
416
461
  from: "von"
417
462
  from_at: "von %{by} am %{at}"
418
463
  height: "Höhe"
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: 3.1.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-30 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.0
19
+ version: 7.0.4
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '8'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 6.0.0
29
+ version: 7.0.4
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8'
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.4.6
133
+ rubygems_version: 3.4.17
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: AlchemyCMS translation files