alchemy_i18n 2.1.0 → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2895fcc017e9ab9418ae334a4177785bd04a9d6ce16857ea13ba5ee599b24c6
4
- data.tar.gz: 877b9c050b8fc05a981c962db5c1fac1a8da7ac8052e510bdffdda3a5296b5e3
3
+ metadata.gz: e0511304cdb42bb1421be612bddedcdb268134b0a561f70698b509d77c21ca96
4
+ data.tar.gz: efcaad8cdca39141fa0ea5b274e9cab9182592d2277c3dd9959308f38fcfe00a
5
5
  SHA512:
6
- metadata.gz: fae7439ae005a81b68baad5d28e0a70407cfd531258c38a3d8ac49d6c560567576e19992262bbb8294cde70cb4f12fbb1a43f0fd6002cd8e709d3346c3ef7595
7
- data.tar.gz: 4e9ffd4c4b12f24cf8b06d3c0ac47629f40d356ee2cddfa79d1abd66d23e228bd51f3058cf764a9749bb154b3191d64e6fcbd8acc9ac95a1dfe114665ad58b8f
6
+ metadata.gz: 877644b98fd10bb540ae0fa2acdcf06a8a3e611831e78258f17917bf01bfe35754e62b3aea804dac13ede0a58bf2479ee652ede5c83a1a83b9b7a2c15d22538a
7
+ data.tar.gz: 2f8d1179b17608fde74c1af7cc20282bc581d18cf58328dbf1ee47e150a7d7e976c8b7f5b1cdea7e685fa123b572e69b375042a0eeabd7581b2dcccf670b67c7
data/CHANGELOG.md ADDED
@@ -0,0 +1,72 @@
1
+ # Changelog
2
+
3
+ ## [v2.2.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.2.0) (2021-10-26)
4
+
5
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.1.0...v2.2.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - Missing file alchemy.translations [\#32](https://github.com/AlchemyCMS/alchemy_i18n/issues/32)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Alchemy v5 compatibility [\#34](https://github.com/AlchemyCMS/alchemy_i18n/pull/34) ([afdev82](https://github.com/afdev82))
14
+ - Add select2 locales [\#31](https://github.com/AlchemyCMS/alchemy_i18n/pull/31) ([tvdeyen](https://github.com/tvdeyen))
15
+ - Added Dutch translation for menu-functionality. [\#29](https://github.com/AlchemyCMS/alchemy_i18n/pull/29) ([bjornconstructors](https://github.com/bjornconstructors))
16
+ - IT translations for new menus entry [\#26](https://github.com/AlchemyCMS/alchemy_i18n/pull/26) ([juryghidinelli](https://github.com/juryghidinelli))
17
+
18
+ ## [v2.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.1.0) (2020-07-20)
19
+
20
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.0.0...v2.1.0)
21
+
22
+ **Merged pull requests:**
23
+
24
+ - Copy Flatpickr translations in generator [\#28](https://github.com/AlchemyCMS/alchemy_i18n/pull/28) ([mamhoff](https://github.com/mamhoff))
25
+ - Install Generator: Copy JS translations [\#27](https://github.com/AlchemyCMS/alchemy_i18n/pull/27) ([mamhoff](https://github.com/mamhoff))
26
+ - Fix tinymce sprockets include in generator [\#25](https://github.com/AlchemyCMS/alchemy_i18n/pull/25) ([mamhoff](https://github.com/mamhoff))
27
+ - Add translations for menu names [\#24](https://github.com/AlchemyCMS/alchemy_i18n/pull/24) ([mamhoff](https://github.com/mamhoff))
28
+
29
+ ## [v2.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.0.0) (2019-12-29)
30
+
31
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v1.1.0...v2.0.0)
32
+
33
+ **Merged pull requests:**
34
+
35
+ - Add demo content translations from core [\#22](https://github.com/AlchemyCMS/alchemy_i18n/pull/22) ([tvdeyen](https://github.com/tvdeyen))
36
+ - Add a install generator [\#21](https://github.com/AlchemyCMS/alchemy_i18n/pull/21) ([tvdeyen](https://github.com/tvdeyen))
37
+
38
+ ## [v1.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v1.1.0) (2019-12-29)
39
+
40
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v1.0.0...v1.1.0)
41
+
42
+ **Merged pull requests:**
43
+
44
+ - Add German translations for page select [\#19](https://github.com/AlchemyCMS/alchemy_i18n/pull/19) ([tvdeyen](https://github.com/tvdeyen))
45
+ - Add German translations for menus and nodes [\#18](https://github.com/AlchemyCMS/alchemy_i18n/pull/18) ([tvdeyen](https://github.com/tvdeyen))
46
+ - Add add\_nested\_element key [\#16](https://github.com/AlchemyCMS/alchemy_i18n/pull/16) ([tvdeyen](https://github.com/tvdeyen))
47
+ - Prepare release [\#15](https://github.com/AlchemyCMS/alchemy_i18n/pull/15) ([tvdeyen](https://github.com/tvdeyen))
48
+
49
+ ## [v1.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v1.0.0) (2019-04-17)
50
+
51
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/e1a898c9fcdd2865f5a1c0510f8f96f5f03d734c...v1.0.0)
52
+
53
+ **Merged pull requests:**
54
+
55
+ - Remove Gemfile.lock [\#14](https://github.com/AlchemyCMS/alchemy_i18n/pull/14) ([tvdeyen](https://github.com/tvdeyen))
56
+ - Add date column translations [\#13](https://github.com/AlchemyCMS/alchemy_i18n/pull/13) ([tvdeyen](https://github.com/tvdeyen))
57
+ - Add translations for Flatpickr.js [\#12](https://github.com/AlchemyCMS/alchemy_i18n/pull/12) ([mamhoff](https://github.com/mamhoff))
58
+ - Include all necessary files in gemspec [\#11](https://github.com/AlchemyCMS/alchemy_i18n/pull/11) ([tvdeyen](https://github.com/tvdeyen))
59
+ - Fix the localeapp config [\#10](https://github.com/AlchemyCMS/alchemy_i18n/pull/10) ([tvdeyen](https://github.com/tvdeyen))
60
+ - Fix the polish translation file [\#9](https://github.com/AlchemyCMS/alchemy_i18n/pull/9) ([tvdeyen](https://github.com/tvdeyen))
61
+ - Add localeapp config [\#8](https://github.com/AlchemyCMS/alchemy_i18n/pull/8) ([tvdeyen](https://github.com/tvdeyen))
62
+ - Add Alchemy Devise translations [\#7](https://github.com/AlchemyCMS/alchemy_i18n/pull/7) ([tvdeyen](https://github.com/tvdeyen))
63
+ - Add simplified Chinese translation [\#6](https://github.com/AlchemyCMS/alchemy_i18n/pull/6) ([tvdeyen](https://github.com/tvdeyen))
64
+ - Add select2 translation instructions [\#5](https://github.com/AlchemyCMS/alchemy_i18n/pull/5) ([tvdeyen](https://github.com/tvdeyen))
65
+ - Add JS translations [\#4](https://github.com/AlchemyCMS/alchemy_i18n/pull/4) ([tvdeyen](https://github.com/tvdeyen))
66
+ - Add simple form translations [\#3](https://github.com/AlchemyCMS/alchemy_i18n/pull/3) ([tvdeyen](https://github.com/tvdeyen))
67
+ - Move Kaminari pagination translations into alchemy scope [\#2](https://github.com/AlchemyCMS/alchemy_i18n/pull/2) ([tvdeyen](https://github.com/tvdeyen))
68
+ - Typo error [\#1](https://github.com/AlchemyCMS/alchemy_i18n/pull/1) ([juryghidinelli](https://github.com/juryghidinelli))
69
+
70
+
71
+
72
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -1,5 +1,4 @@
1
- //= require alchemy/alchemy.translations
2
-
1
+ Alchemy.translations = Alchemy.translations || {};
3
2
  Alchemy.translations.de = {
4
3
  allowed_chars: 'von %{count} Zeichen',
5
4
  cancel: 'Abbrechen',
@@ -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,3 +1,3 @@
1
1
  module AlchemyI18n
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.0'
3
3
  end
@@ -17,6 +17,8 @@ it:
17
17
  # sidebar_menu: Side bar menu (?)
18
18
  #
19
19
  menu_names:
20
+ main_menu: Menu principale
21
+ footer_menut: Menu footer
20
22
 
21
23
  # == Translations for page_layout names
22
24
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
@@ -336,6 +338,8 @@ it:
336
338
  confirm_to_delete_image: "Vuoi veramente eliminare questa immagine dal server?"
337
339
  confirm_to_delete_image_from_server: "Vuoi veramente eliminare questa immagine dal server?"
338
340
  confirm_to_delete_images_from_server: "Vuoi veramente eliminare queste immagini dal server?"
341
+ confirm_to_delete_menu: "Vuoi veramente eliminare questo menu?"
342
+ confirm_to_delete_node: "Vuoi veramente eliminare questo nodo?"
339
343
  confirm_to_delete_page: "Vuoi eliminare veramente questa pagina? I suoi elementi andranno persi!"
340
344
  content_essence_not_found: "Essenza del contenuto non trovata"
341
345
  content_not_found: "Campo per il contenuto non trovato."
@@ -345,6 +349,8 @@ it:
345
349
  copy_page: "Copia pagina"
346
350
  "Could not delete Pictures": "Impossibile eliminare le Immagini"
347
351
  copy_language_tree_heading: "Copia struttura delle pagine"
352
+ create_menu: "Aggiungi un menu"
353
+ create_node: "Aggiungi un nodo al menu"
348
354
  country_code_placeholder: 'ad es. US (opzionale)'
349
355
  country_code_foot_note: "È necessario configurare un codice nazione solo se vuoi supportare diverse nazioni con la stessa lingua."
350
356
  create: "crea"
@@ -357,6 +363,8 @@ it:
357
363
  delete_file: "Elimina questo file dal server."
358
364
  delete_image: "Elimina quest'immagine"
359
365
  delete_language: "Elimina questa lingua"
366
+ delete_menu: "Cancella il menu"
367
+ delete_node: "Cancella il nodo di menu"
360
368
  delete_page: "Elimina questa pagina"
361
369
  delete_tag: 'Elimina tag'
362
370
  document: "File"
@@ -368,6 +376,8 @@ it:
368
376
  edit_image_properties: "Modifica le proprietà dell'immagine."
369
377
  edit_language: "Modifica lingua"
370
378
  edit_page: "Modifica questa pagina"
379
+ edit_menu: "Modifica il menu"
380
+ edit_node: "Modifica il nodo di menu"
371
381
  edit_page_properties: "Modifica proprietà pagina"
372
382
  edit_tag: 'Modifica tag'
373
383
  edit_selected_pictures: "Modifica le immagini selezionate"
@@ -434,6 +444,7 @@ it:
434
444
  male: "Maschio"
435
445
  me: "Me"
436
446
  medium_thumbnails: "Thumbnail di meda dimensione"
447
+ menu: Menu
437
448
  meta_data: "Meta-Data"
438
449
  meta_description: "Meta-Description"
439
450
  meta_keywords: "Meta-Keywords"
@@ -444,6 +455,7 @@ it:
444
455
  languages: "Lingue"
445
456
  layoutpages: "Pagine Globali"
446
457
  library: "Libreria"
458
+ menus: "Menus"
447
459
  pages: "Pagine"
448
460
  tags: "Tags"
449
461
  sites: "Siti"
@@ -722,6 +734,9 @@ it:
722
734
  alchemy/language:
723
735
  one: "Lingua"
724
736
  other: "Lingue"
737
+ alchemy/node:
738
+ one: "Nodo Menu"
739
+ other: "Nodi Menu"
725
740
  alchemy/page:
726
741
  one: "Pagina"
727
742
  other: "Pagine"
@@ -17,6 +17,8 @@ nl:
17
17
  # sidebar_menu: Side bar menu (?)
18
18
  #
19
19
  menu_names:
20
+ main_menu: Hoofdmenu
21
+ footer_menu: Menu footer
20
22
 
21
23
  # == Translations for page_layout names
22
24
  # Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
@@ -332,6 +334,8 @@ nl:
332
334
  confirm_to_delete_image: "Afbeelding van de server verwijderen?"
333
335
  confirm_to_delete_image_from_server: "Afbeelding van de server verwijderen?"
334
336
  confirm_to_delete_images_from_server: "Afbeeldingen van de server verwijderen?"
337
+ confirm_to_delete_menu: "Menu-item zeker verwijderen?"
338
+ confirm_to_delete_node: "Menu-item zeker verwijderen?"
335
339
  confirm_to_delete_page: "Deze pagina verwijderen? Alle inhoud gaat verloren."
336
340
  content_essence_not_found: "Content essence is niet gevonden"
337
341
  content_not_found: "Veld voor content is niet aanwezig"
@@ -348,6 +352,8 @@ nl:
348
352
  "Create site": "Nieuwe site maken"
349
353
  create_language_tree_heading: "Nieuwe lege boomstructuur voor taal maken"
350
354
  create_page: "Nieuwe subpagina maken"
355
+ create_menu: "Nieuw menu maken"
356
+ create_node: "Nieuw menu-item maken"
351
357
  currently_edited_by: "Deze pagina is vergrendeld door"
352
358
  cut_element: "Element knippen"
353
359
  delete_file: "Bestand van de server verwijderen"
@@ -355,6 +361,8 @@ nl:
355
361
  delete_language: "Deze taal verwijderen"
356
362
  delete_page: "Deze pagina verwijderen"
357
363
  delete_tag: 'Tag wissen'
364
+ delete_menu: "Menu verwijderen"
365
+ delete_node: "Menu-item verwijderen"
358
366
  document: "Bestand"
359
367
  download_csv: "CSV downloaden"
360
368
  download_file: "Bestand '%{filename}' downloaden"
@@ -367,6 +375,8 @@ nl:
367
375
  edit_page_properties: "Eigenschappen van de pagina aanpassen"
368
376
  edit_tag: 'Tag bewerken'
369
377
  edit_selected_pictures: "Geselecteerde afbeeldingen aanpassen"
378
+ edit_menu: "Menu bewerken"
379
+ edit_node: "Menu-item bewerken"
370
380
  element_editor_not_found: "Foutmelding in het element"
371
381
  element_of_type: "Element"
372
382
  element_saved: "Opgeslagen element."
@@ -433,7 +443,9 @@ nl:
433
443
  meta_data: "Meta-Data"
434
444
  meta_description: "Meta-Description"
435
445
  meta_keywords: "Meta-Keywords"
446
+ menu: "Menu"
436
447
  modules:
448
+ menus: "Menus"
437
449
  attachments: "Bestanden"
438
450
  dashboard: "Dashboard"
439
451
  pictures: "Afbeeldingen"
@@ -777,6 +789,9 @@ nl:
777
789
  public: "Publiek"
778
790
  locale: Localization
779
791
  code: ISO Code
792
+ alchemy/node:
793
+ one: "Menu-item"
794
+ other: "Menu-items"
780
795
  alchemy/legacy_page_url:
781
796
  urlname: "URL pad"
782
797
  alchemy/page:
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Select2 German translation
3
+ */
4
+ (function ($) {
5
+ "use strict";
6
+
7
+ $.fn.select2.locales['de'] = {
8
+ formatNoMatches: function () { return "Keine Übereinstimmungen gefunden"; },
9
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeben"; },
10
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Bitte " + n + " Zeichen weniger eingeben"; },
11
+ formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; },
12
+ formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse…"; },
13
+ formatSearching: function () { return "Suche…"; },
14
+ formatMatches: function (matches) { return matches + " Ergebnis " + (matches > 1 ? "se" : "") + " verfügbar, zum Navigieren die Hoch-/Runter-Pfeiltasten verwenden."; }
15
+ };
16
+
17
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['de']);
18
+ })(jQuery);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Select2 Spanish translation
3
+ */
4
+ (function ($) {
5
+ "use strict";
6
+
7
+ $.fn.select2.locales['es'] = {
8
+ formatMatches: function (matches) { if (matches === 1) { return "Un resultado disponible, presione enter para seleccionarlo."; } return matches + " resultados disponibles, use las teclas de dirección para navegar."; },
9
+ formatNoMatches: function () { return "No se encontraron resultados"; },
10
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "ácter" : "acteres"); },
11
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "ácter" : "acteres"); },
12
+ formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
13
+ formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; },
14
+ formatSearching: function () { return "Buscando…"; },
15
+ formatAjaxError: function() { return "La carga falló"; }
16
+ };
17
+
18
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['es']);
19
+ })(jQuery);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Select2 French translation
3
+ */
4
+ (function ($) {
5
+ "use strict";
6
+
7
+ $.fn.select2.locales['fr'] = {
8
+ formatMatches: function (matches) { return matches + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."; },
9
+ formatNoMatches: function () { return "Aucun résultat trouvé"; },
10
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Saisissez " + n + " caractère" + (n == 1? "" : "s") + " supplémentaire" + (n == 1? "" : "s") ; },
11
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Supprimez " + n + " caractère" + (n == 1? "" : "s"); },
12
+ formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); },
13
+ formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires…"; },
14
+ formatSearching: function () { return "Recherche en cours…"; }
15
+ };
16
+
17
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['fr']);
18
+ })(jQuery);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Select2 Italian translation
3
+ */
4
+ (function ($) {
5
+ "use strict";
6
+
7
+ $.fn.select2.locales['it'] = {
8
+ formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
9
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
10
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
11
+ formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); },
12
+ formatLoadMore: function (pageNumber) { return "Caricamento in corso…"; },
13
+ formatSearching: function () { return "Ricerca…"; }
14
+ };
15
+
16
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['it']);
17
+ })(jQuery);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Select2 Dutch translation
3
+ */
4
+ (function ($) {
5
+ "use strict";
6
+
7
+ $.fn.select2.locales['nl'] = {
8
+ formatNoMatches: function () { return "Geen resultaten gevonden"; },
9
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul nog " + n + " karakter" + (n == 1? "" : "s") + " in"; },
10
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Haal " + n + " karakter" + (n == 1? "" : "s") + " weg"; },
11
+ formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; },
12
+ formatLoadMore: function (pageNumber) { return "Meer resultaten laden…"; },
13
+ formatSearching: function () { return "Zoeken…"; }
14
+ };
15
+
16
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['nl']);
17
+ })(jQuery);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Select2 Russian translation.
3
+ *
4
+ * @author Uriy Efremochkin <efremochkin@uriy.me>
5
+ */
6
+ (function ($) {
7
+ "use strict";
8
+
9
+ $.fn.select2.locales['ru'] = {
10
+ formatNoMatches: function () { return "Совпадений не найдено"; },
11
+ formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще хотя бы" + character(min - input.length); },
12
+ formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; },
13
+ formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); },
14
+ formatLoadMore: function (pageNumber) { return "Загрузка данных…"; },
15
+ formatSearching: function () { return "Поиск…"; }
16
+ };
17
+
18
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['ru']);
19
+
20
+ function character (n) {
21
+ return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов");
22
+ }
23
+ })(jQuery);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Select2 Chinese translation
3
+ */
4
+ (function ($) {
5
+ "use strict";
6
+ $.fn.select2.locales['zh-CN'] = {
7
+ formatNoMatches: function () { return "没有找到匹配项"; },
8
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
9
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
10
+ formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
11
+ formatLoadMore: function (pageNumber) { return "加载结果中…"; },
12
+ formatSearching: function () { return "搜索中…"; }
13
+ };
14
+
15
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['zh-CN']);
16
+ })(jQuery);
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.1.0
4
+ version: 2.2.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: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -44,6 +44,20 @@ dependencies:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: github_changelog_generator
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
47
61
  description: Translation files for AlchemyCMS
48
62
  email:
49
63
  - thomas@vondeyen.com
@@ -51,6 +65,7 @@ executables: []
51
65
  extensions: []
52
66
  extra_rdoc_files: []
53
67
  files:
68
+ - CHANGELOG.md
54
69
  - LICENSE
55
70
  - README.md
56
71
  - app/assets/javascripts/alchemy_i18n.js
@@ -88,6 +103,13 @@ files:
88
103
  - vendor/assets/javascripts/flatpickr/pl.js
89
104
  - vendor/assets/javascripts/flatpickr/ru.js
90
105
  - vendor/assets/javascripts/flatpickr/zh.js
106
+ - vendor/assets/javascripts/select2_locale_de.js
107
+ - vendor/assets/javascripts/select2_locale_es.js
108
+ - vendor/assets/javascripts/select2_locale_fr.js
109
+ - vendor/assets/javascripts/select2_locale_it.js
110
+ - vendor/assets/javascripts/select2_locale_nl.js
111
+ - vendor/assets/javascripts/select2_locale_ru.js
112
+ - vendor/assets/javascripts/select2_locale_zh-CN.js
91
113
  homepage: https://alchemy-cms.com
92
114
  licenses:
93
115
  - MIT
@@ -107,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
129
  - !ruby/object:Gem::Version
108
130
  version: '0'
109
131
  requirements: []
110
- rubygems_version: 3.0.3
132
+ rubygems_version: 3.2.26
111
133
  signing_key:
112
134
  specification_version: 4
113
135
  summary: AlchemyCMS translation files