alchemy_i18n 1.1.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +84 -0
  3. data/README.md +9 -42
  4. data/app/assets/javascripts/alchemy_i18n/de.js +1 -2
  5. data/app/assets/javascripts/alchemy_i18n/es.js +1 -2
  6. data/app/assets/javascripts/alchemy_i18n/fr.js +1 -2
  7. data/app/assets/javascripts/alchemy_i18n/it.js +1 -2
  8. data/app/assets/javascripts/alchemy_i18n/nl.js +1 -2
  9. data/app/assets/javascripts/alchemy_i18n/ru.js +1 -2
  10. data/app/assets/javascripts/alchemy_i18n/zh-CN.js +1 -2
  11. data/lib/alchemy_i18n/version.rb +1 -1
  12. data/lib/generators/alchemy_i18n/install/install_generator.rb +87 -0
  13. data/{config/locales → locales}/alchemy.de.yml +32 -0
  14. data/{config/locales → locales}/alchemy.es.yml +32 -0
  15. data/{config/locales → locales}/alchemy.fr.yml +14 -0
  16. data/{config/locales → locales}/alchemy.it.yml +27 -0
  17. data/locales/alchemy.nb-NO.yml +783 -0
  18. data/{config/locales → locales}/alchemy.nl.yml +27 -0
  19. data/{config/locales → locales}/alchemy.pl.yml +12 -0
  20. data/{config/locales → locales}/alchemy.ru.yml +12 -0
  21. data/{config/locales → locales}/alchemy.zh-CN.yml +11 -0
  22. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/de.js +0 -0
  23. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/es.js +0 -0
  24. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/fr.js +0 -0
  25. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/it.js +0 -0
  26. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/nl.js +0 -0
  27. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/ru.js +0 -0
  28. data/{vendor/assets/javascripts/tinymce/langs → locales/tinymce}/zh-CN.js +0 -0
  29. data/vendor/assets/javascripts/select2_locale_de.js +18 -0
  30. data/vendor/assets/javascripts/select2_locale_es.js +19 -0
  31. data/vendor/assets/javascripts/select2_locale_fr.js +18 -0
  32. data/vendor/assets/javascripts/select2_locale_it.js +17 -0
  33. data/vendor/assets/javascripts/select2_locale_nl.js +17 -0
  34. data/vendor/assets/javascripts/select2_locale_ru.js +23 -0
  35. data/vendor/assets/javascripts/select2_locale_zh-CN.js +16 -0
  36. metadata +63 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4eb55ef83d5e7214c8f7872cf29a50d94c0f5b5ce2a7c158470ec09203f184e3
4
- data.tar.gz: 1dade4208be77b03187359698c6d063da9bbbf4fe66bdcbb58256017ee9eb582
3
+ metadata.gz: 0c6ce15c9da984acac94d1d46951cc52c591334074dc4d3c74d86e4141ecc7eb
4
+ data.tar.gz: 010baeb072cd975393dd961a72d0a1a9569cb36ca3b8d394b9a0a26506e119b6
5
5
  SHA512:
6
- metadata.gz: 8f640b6593fb1f9659b00952e434d71f922ada29983de7fa59e2096f6e55cf9c7f8623a2abafb66268207d65289a0f3dafbb0d22c4b824959fc70cd4b7d75c88
7
- data.tar.gz: c264d9e89505ff3515c7b4db255c49fada4c72889a7f8b8d85fb9e346e55e1deb95809700f3449a1445586b8b58256bd8dddf02f93b93327a049b8a7917f089a
6
+ metadata.gz: 7411b715ce442df5c43338d20e672543624e91b755c0c687333d45e7a74e126ebb60c44d3f4a6fc3395adf4aec5f380af12ac2ef9a0470e838d5a23b126f468e
7
+ data.tar.gz: 6317d77318e221114576f8c9485232e46f6167ad826a274909fe90cb570be39014891b70497185b9a80f9f798855e229b68d0c1738cd2caf8fc9aaa3ee223874
data/CHANGELOG.md ADDED
@@ -0,0 +1,84 @@
1
+ # Changelog
2
+
3
+ ## [v2.3.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.3.0) (2021-10-26)
4
+
5
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.2.0...v2.3.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - Norwegian translation added through localeapp [\#30](https://github.com/AlchemyCMS/alchemy_i18n/issues/30)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Add norwegian translation [\#35](https://github.com/AlchemyCMS/alchemy_i18n/pull/35) ([tvdeyen](https://github.com/tvdeyen))
14
+
15
+ ## [v2.2.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.2.0) (2021-10-26)
16
+
17
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.1.0...v2.2.0)
18
+
19
+ **Closed issues:**
20
+
21
+ - Missing file alchemy.translations [\#32](https://github.com/AlchemyCMS/alchemy_i18n/issues/32)
22
+
23
+ **Merged pull requests:**
24
+
25
+ - Alchemy v5 compatibility [\#34](https://github.com/AlchemyCMS/alchemy_i18n/pull/34) ([afdev82](https://github.com/afdev82))
26
+ - Add select2 locales [\#31](https://github.com/AlchemyCMS/alchemy_i18n/pull/31) ([tvdeyen](https://github.com/tvdeyen))
27
+ - Added Dutch translation for menu-functionality. [\#29](https://github.com/AlchemyCMS/alchemy_i18n/pull/29) ([bjornconstructors](https://github.com/bjornconstructors))
28
+ - IT translations for new menus entry [\#26](https://github.com/AlchemyCMS/alchemy_i18n/pull/26) ([juryghidinelli](https://github.com/juryghidinelli))
29
+
30
+ ## [v2.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.1.0) (2020-07-20)
31
+
32
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.0.0...v2.1.0)
33
+
34
+ **Merged pull requests:**
35
+
36
+ - Copy Flatpickr translations in generator [\#28](https://github.com/AlchemyCMS/alchemy_i18n/pull/28) ([mamhoff](https://github.com/mamhoff))
37
+ - Install Generator: Copy JS translations [\#27](https://github.com/AlchemyCMS/alchemy_i18n/pull/27) ([mamhoff](https://github.com/mamhoff))
38
+ - Fix tinymce sprockets include in generator [\#25](https://github.com/AlchemyCMS/alchemy_i18n/pull/25) ([mamhoff](https://github.com/mamhoff))
39
+ - Add translations for menu names [\#24](https://github.com/AlchemyCMS/alchemy_i18n/pull/24) ([mamhoff](https://github.com/mamhoff))
40
+
41
+ ## [v2.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.0.0) (2019-12-29)
42
+
43
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v1.1.0...v2.0.0)
44
+
45
+ **Merged pull requests:**
46
+
47
+ - Add demo content translations from core [\#22](https://github.com/AlchemyCMS/alchemy_i18n/pull/22) ([tvdeyen](https://github.com/tvdeyen))
48
+ - Add a install generator [\#21](https://github.com/AlchemyCMS/alchemy_i18n/pull/21) ([tvdeyen](https://github.com/tvdeyen))
49
+
50
+ ## [v1.1.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v1.1.0) (2019-12-29)
51
+
52
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v1.0.0...v1.1.0)
53
+
54
+ **Merged pull requests:**
55
+
56
+ - Add German translations for page select [\#19](https://github.com/AlchemyCMS/alchemy_i18n/pull/19) ([tvdeyen](https://github.com/tvdeyen))
57
+ - Add German translations for menus and nodes [\#18](https://github.com/AlchemyCMS/alchemy_i18n/pull/18) ([tvdeyen](https://github.com/tvdeyen))
58
+ - Add add\_nested\_element key [\#16](https://github.com/AlchemyCMS/alchemy_i18n/pull/16) ([tvdeyen](https://github.com/tvdeyen))
59
+ - Prepare release [\#15](https://github.com/AlchemyCMS/alchemy_i18n/pull/15) ([tvdeyen](https://github.com/tvdeyen))
60
+
61
+ ## [v1.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v1.0.0) (2019-04-17)
62
+
63
+ [Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/e1a898c9fcdd2865f5a1c0510f8f96f5f03d734c...v1.0.0)
64
+
65
+ **Merged pull requests:**
66
+
67
+ - Remove Gemfile.lock [\#14](https://github.com/AlchemyCMS/alchemy_i18n/pull/14) ([tvdeyen](https://github.com/tvdeyen))
68
+ - Add date column translations [\#13](https://github.com/AlchemyCMS/alchemy_i18n/pull/13) ([tvdeyen](https://github.com/tvdeyen))
69
+ - Add translations for Flatpickr.js [\#12](https://github.com/AlchemyCMS/alchemy_i18n/pull/12) ([mamhoff](https://github.com/mamhoff))
70
+ - Include all necessary files in gemspec [\#11](https://github.com/AlchemyCMS/alchemy_i18n/pull/11) ([tvdeyen](https://github.com/tvdeyen))
71
+ - Fix the localeapp config [\#10](https://github.com/AlchemyCMS/alchemy_i18n/pull/10) ([tvdeyen](https://github.com/tvdeyen))
72
+ - Fix the polish translation file [\#9](https://github.com/AlchemyCMS/alchemy_i18n/pull/9) ([tvdeyen](https://github.com/tvdeyen))
73
+ - Add localeapp config [\#8](https://github.com/AlchemyCMS/alchemy_i18n/pull/8) ([tvdeyen](https://github.com/tvdeyen))
74
+ - Add Alchemy Devise translations [\#7](https://github.com/AlchemyCMS/alchemy_i18n/pull/7) ([tvdeyen](https://github.com/tvdeyen))
75
+ - Add simplified Chinese translation [\#6](https://github.com/AlchemyCMS/alchemy_i18n/pull/6) ([tvdeyen](https://github.com/tvdeyen))
76
+ - Add select2 translation instructions [\#5](https://github.com/AlchemyCMS/alchemy_i18n/pull/5) ([tvdeyen](https://github.com/tvdeyen))
77
+ - Add JS translations [\#4](https://github.com/AlchemyCMS/alchemy_i18n/pull/4) ([tvdeyen](https://github.com/tvdeyen))
78
+ - Add simple form translations [\#3](https://github.com/AlchemyCMS/alchemy_i18n/pull/3) ([tvdeyen](https://github.com/tvdeyen))
79
+ - Move Kaminari pagination translations into alchemy scope [\#2](https://github.com/AlchemyCMS/alchemy_i18n/pull/2) ([tvdeyen](https://github.com/tvdeyen))
80
+ - Typo error [\#1](https://github.com/AlchemyCMS/alchemy_i18n/pull/1) ([juryghidinelli](https://github.com/juryghidinelli))
81
+
82
+
83
+
84
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,54 +1,21 @@
1
- # AlchemyCMS Translation Files
1
+ # AlchemyCMS Translations
2
2
 
3
- Translations files for AlchemyCMS 4.1 and above.
3
+ Translations files for AlchemyCMS 4.4 and above.
4
4
 
5
- ## Usage
5
+ ## Installation
6
6
 
7
- The recommended way of adding Alchemy translations is to [download the translation files](https://github.com/AlchemyCMS/alchemy_i18n/tree/master/config/locales) you need
8
- and save them into your apps `config/locales` folder.
7
+ Add this Gem to your `Gemfile` and run the install generator
9
8
 
10
- Alternatively you could add this gem into your apps `Gemfile`, but then you will add all supported translations into the `I18n.load_path`
11
- which will raise the consumed runtime memory and increase the app start up time.
12
-
13
- ### Backend javascript translations
14
-
15
- [Download the Javascript translation files](https://github.com/AlchemyCMS/alchemy_i18n/tree/master/app/assets/javascripts/alchemy_i18n) you need
16
- and save them into your apps `vendor/assets/javascripts/alchemy_i18n` folder.
17
-
18
- Require each js locale you need to your `vendor/assets/javascripts/alchemy/admin/all.js` file
19
-
20
- ```js
21
- //= require alchemy_i18n/de
22
- //= require alchemy_i18n/fr
23
- //= require select2_locale_de
24
- //= require select2_locale_fr
25
- //= require flatpickr/de
26
- //= require flatpickr/fr
27
9
  ```
28
-
29
- Or require all js translations at once by adding (**not recommended**)
30
-
31
- ```js
32
- //= require alchemy_i18n
10
+ bin/rails g alchemy_i18n:install
33
11
  ```
34
12
 
35
- ### Rails translations
13
+ Pass the locales you want to generate files for with the `--locales` option.
14
+ Seperate multiple locales by space.
36
15
 
37
- This gem only provides translations for Alchemy itself. If you also need translations for ActiveSupport features (like `to_sentence` or `number_with_currency`, etc.)
38
- you should [download the Rails translation files](https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale) and save them into your apps `config/locales` folder.
39
-
40
- Alternatively you could add the `rails-i18n` gem into your apps `Gemfile`, but then you will add all supported translations into the `I18n.load_path`
41
- which will raise the consumed runtime memory and increase the app start up time.
42
-
43
- ### Russian translations
44
-
45
- If you want to use Russian translation and have better i18n support, you should put:
46
-
47
- ```ruby
48
- gem 'russian', '~> 0.6.0'
49
16
  ```
50
-
51
- or a gem with similar functionality into your apps `Gemfile`.
17
+ bin/rails g alchemy_i18n:install --locales=de it es
18
+ ```
52
19
 
53
20
  ---
54
21
 
@@ -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 = '1.1.0'
2
+ VERSION = '2.3.0'
3
3
  end
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails'
4
+ require 'alchemy/i18n'
5
+
6
+ module AlchemyI18n
7
+ module Generators
8
+ class InstallGenerator < ::Rails::Generators::Base
9
+ desc "Installs Alchemy locales into your App."
10
+
11
+ def self.description
12
+ locales = Alchemy::I18n.available_locales.reject { |l| l == :en }.to_sentence
13
+ "Available locales are #{locales}"
14
+ end
15
+
16
+ class_option :locales,
17
+ type: :array,
18
+ default: [],
19
+ desc: "Locales to generate files for. #{description}"
20
+
21
+ source_root AlchemyI18n::Engine.root
22
+
23
+ def copy_locales
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
+ 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)
30
+ end
31
+ end
32
+
33
+ def append_assets
34
+ locales.each do |locale|
35
+ append_file 'vendor/assets/javascripts/alchemy/admin/all.js', <<~ASSETS
36
+ //= require alchemy_i18n/#{locale}
37
+ //= require select2_locale_#{locale}
38
+ //= require flatpickr/#{locale}
39
+ ASSETS
40
+ end
41
+ end
42
+
43
+ def copy_tinymce_locales
44
+ locales.each do |locale|
45
+ copy_file File.join("locales", "tinymce", "#{locale}.js"),
46
+ Rails.root.join('vendor', 'assets', 'javascripts', 'tinymce', 'langs', "#{locale}.js")
47
+ end
48
+ end
49
+
50
+ def append_manifest
51
+ locales.each do |locale|
52
+ append_file 'app/assets/config/manifest.js', <<~MANIFEST
53
+ //= link tinymce/langs/#{locale}.js
54
+ MANIFEST
55
+ end
56
+ end
57
+
58
+ def add_rails_i18n
59
+ environment do
60
+ "config.i18n.available_locales = #{locales.map(&:to_sym).inspect}"
61
+ end
62
+ end
63
+
64
+ def add_russian_gem
65
+ if locales.include?('ru')
66
+ gem 'russian', '~> 0.6'
67
+ end
68
+ end
69
+
70
+ private
71
+
72
+ def locales
73
+ @_locales ||= begin
74
+ options[:locales].presence || ask_locales.split(' ')
75
+ end
76
+ end
77
+
78
+ def ask_locales
79
+ ask <<~LOCALES
80
+ Which locales should we generate files for?
81
+ #{self.class.description}
82
+ (seperate multiple locales with space):
83
+ LOCALES
84
+ end
85
+ end
86
+ end
87
+ 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
  #
@@ -18,6 +32,7 @@ de:
18
32
  # search: Suche
19
33
  #
20
34
  page_layout_names:
35
+ index: Startseite
21
36
 
22
37
  # == Translations for element names
23
38
  # Just use the elements name like defined inside the config/alchemy/elements.yml file and translate it.
@@ -31,6 +46,7 @@ de:
31
46
  # contactform: Kontaktformular
32
47
  #
33
48
  element_names:
49
+ article: Artikel
34
50
 
35
51
  # == Translated names for contents in elements.
36
52
  # Used for the content editor label inside the element editor view (The elements window)
@@ -50,6 +66,9 @@ de:
50
66
  # show_caption: Zeige Bildunterschrift
51
67
  #
52
68
  content_names:
69
+ headline: Überschrift
70
+ text: Text
71
+ picture: Bild
53
72
 
54
73
  # === Translations for content validations
55
74
  # Used when a user did not enter (correct) values to the content field.
@@ -73,10 +92,23 @@ de:
73
92
  invalid: '%{field} hat das falsche Format'
74
93
  taken: '%{field} wurde schon benutzt'
75
94
 
95
+ # Hint texts for contents
96
+ content_hints:
97
+ headline: "Dies ist ein einzeiliger unformatierter Text"
98
+ picture: "Bilder werden in der Bibliothek gespeichert. Ein Bild kann mehrfach einem Element zugewiesen werden. Auch ein Bildauswahlwerkzeug ist in Alchemy integriert."
99
+ text: "Dies ist ein formatierbarer Textblock. Die Einstellungen des Editors können angepasst werden. Siehe http://guides.alchemy-cms.com/stable/customize_tinymce.html"
100
+
101
+ # Default texts for new contents created
76
102
  default_content_texts:
103
+ article_headline: "Willkommen auf Ihrer Alchemy Seite"
104
+ article_text: '<p>Als erstes sollte man sich mit der Struktur von Alchemy vertraut machen. <a class="external" href="http://guides.alchemy-cms.com/stable/alchemy_approach.html" target="_blank" data-link-target="blank">Mehr dazu in den Guidelines</a>.</p><p>Die wichtigsten beiden Dinge die man über Alchemy wissen muss sind Elemente und Seitentypen.</p><p><span style="text-decoration: underline;"><strong>Elemente:</strong></span></p><p>Mit Alchemy kann man eine Seite in Inhaltsbereiche aufteilen, Elemente. Diese Elemente werden aus verschiedenen Grundtypen (Essenzen) zusammengesetzt. Die Essenzen sind:</p><ul><li>EssenceText - <em>Eine Zeile Text</em></li><li>EssenceRichtext - <em>Ein TinyMCE basierter formatierter Textblock</em></li><li>EssencePicture - <em>Ein Verweis auf ein Bild</em></li><li>EssenceHtml - <em>HTML Code</em></li><li>EssenceSelect - <em>Eine Auswahl an Werten</em></li><li>EssenceBoolean - <em>Eine Checkbox</em></li></ul><p>Elemente werden in einer YAML Datei definiert: <strong>config/alchemy/elements.yml</strong></p><p><a class="external" href="http://guides.alchemy-cms.com/stable/elements.html" target="_blank" data-link-target="blank">Mehr über Elemente und wie sie definiert werden, kann in den Guidelines nachgelesen werden.</a></p><p><span style="text-decoration: underline;"><strong>Seitentypen:</strong></span></p><p>Es können verschiedene Seitentypen definiert werden. Diesen können Elemente zugewiesen und ihr Verhalten definiert werden.</p><p>Seitentypen werden ein einer YAML Datei definiert: <strong>config/alchemy/page_layouts.yml</strong></p><p><a class="external" href="http://guides.alchemy-cms.com/stable/page_layouts.html" target="_blank" data-link-target="blank">Mehr über das Erstellen von Seitentypen kann in den Guidelines nachgelesen werden.</a></p>'
77
105
  lorem: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
78
106
  corporate_lorem: "Appropriately enable sustainable growth strategies vis-a-vis holistic materials. Energistically orchestrate open-source e-tailers vis-a-vis plug-and-play best practices. Uniquely plagiarize client-centric opportunities whereas plug-and-play ideas. Distinctively reconceptualize backward-compatible partnerships vis-a-vis reliable total linkage. Interactively fabricate highly efficient networks for clicks-and-mortar content. Collaboratively reconceptualize holistic markets via 2.0 architectures."
79
107
 
108
+ # Hint texts for elements
109
+ element_hints:
110
+ article: "Dies ist ein Hinweistext für das Artikel Element. Dieser Text kann in der `config/locales/alchemy.de.yml` Datei angepasst werden."
111
+
80
112
  essence_pictures:
81
113
  css_classes:
82
114
  left: 'Links vom Text'
@@ -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
  #
@@ -18,6 +32,7 @@ es:
18
32
  # search: Buscar
19
33
  #
20
34
  page_layout_names:
35
+ index: Inicio
21
36
 
22
37
  # == Translations for element names
23
38
  # Just use the elements name like defined inside the config/alchemy/elements.yml file and translate it.
@@ -31,6 +46,7 @@ es:
31
46
  # contactform: Contact form
32
47
  #
33
48
  element_names:
49
+ article: Artículo
34
50
 
35
51
  # == Translated names for contents in elements.
36
52
  # Used for the content editor label inside the element editor view (The elements window)
@@ -50,6 +66,9 @@ es:
50
66
  # show_caption: Subtítulo de programa
51
67
  #
52
68
  content_names:
69
+ headline: Titular
70
+ text: Texto
71
+ picture: Imagen
53
72
 
54
73
  # === Translations for content validations
55
74
  # Used when a user did not enter (correct) values to the content field.
@@ -73,10 +92,23 @@ es:
73
92
  invalid: '%{field} tiene un formato incorrecto '
74
93
  taken: '%{field} ya está en uso'
75
94
 
95
+ # Hint texts for contents
96
+ content_hints:
97
+ headline: "Esta es una sencilla linea de texto sin formato"
98
+ picture: "Las imágenes se almacenan en la librería. Puedes asignar una imagen varias veces en tu sitio. Alchemy tiene una herramienta de recorte de imagen integrada."
99
+ text: "Este es un bloque de texto enriquecido mediante el editor TinyMCE. Puedes cambiar la configuración del editor. Ver http://guides.alchemy-cms.com/stable/customize_tinymce.html"
100
+
101
+ # Default texts for new contents created
76
102
  default_content_texts:
103
+ article_headline: "Bienvenido a tu primera página de Alchemy CMS"
104
+ article_text: '<p><strong>Como empezar.</strong></p><p>Lo primero de todo deberías leer sobre Alchemy y su arquitectura en las <a class="external" href="http://guides.alchemy-cms.com/stable/alchemy_approach.html" target="_blank" data-link-target="blank">guías</a>.</p><p>Las cosas más importantes que debes saber sobre Alchemy son elementos (<i>elements</i>) y disposiciones de página (<i>page layouts</i>).</p><p><span style="text-decoration: underline;"><strong>Elementos:</strong></span></p><p>Con Alchemy puedes dividir las páginas en partes de contenido, elementos. Estos elementos se pueden definir mediante varios tipos de contenido básicos: esencias (<i>essences</i>). Las esencias básicas son:</p><ul><li>EssenceText - <em>Un única línea de texto</em></li><li>EssenceRichtext - <em>Un bloque de texto formateado mediante TinyMCE</em></li><li>EssencePicture - <em>Una referencia a una imagen</em></li><li>EssenceHtml - <em>Código HTML empotrado</em></li><li>EssenceSelect - <em>Una selección de valores</em></li><li>EssenceBoolean - <em>Una casilla de verificación</em></li></ul><p>Los elementos se definen en el fichero YAML <strong>config/alchemy/elements.yml</strong></p><p><a class="external" href="http://guides.alchemy-cms.com/stable/elements.html" target="_blank" data-link-target="blank">Lee más sobre elementos y cómo definirlos en las guías.</a></p><p><span style="text-decoration: underline;"><strong>Tipos de página:</strong></span></p><p>Puedes definir varios tipos de páginas, llamados disposiciones de páginas (<i>page layouts</i>). Puedes asignar elementos a las disposiciones de páginas y controlar cómo se comportan los elementos y una página con una disposición concreta.</p><p>Las disposiciones de páginas se definen en el fichero YAML <strong>config/alchemy/page_layouts.yml</strong></p><p><a class="external" href="http://guides.alchemy-cms.com/stable/page_layouts.html" target="_blank" data-link-target="blank">Lee más sobre definir disposiciones de páginas en las guías.</a></p>'
77
105
  lorem: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
78
106
  corporate_lorem: "Appropriately enable sustainable growth strategies vis-a-vis holistic materials. Energistically orchestrate open-source e-tailers vis-a-vis plug-and-play best practices. Uniquely plagiarize client-centric opportunities whereas plug-and-play ideas. Distinctively reconceptualize backward-compatible partnerships vis-a-vis reliable total linkage. Interactively fabricate highly efficient networks for clicks-and-mortar content. Collaboratively reconceptualize holistic markets via 2.0 architectures."
79
107
 
108
+ # Hint texts for elements
109
+ element_hints:
110
+ article: "Este es el texto de ayuda del elemento artículo. Puedes cambiar este texto en `config/locales/alchemy.en.yml`. Siéntete libre de cambiarlo a tu gusto, es tuyo."
111
+
80
112
  essence_pictures:
81
113
  css_classes:
82
114
  left: 'A la izquierda'
@@ -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,20 @@ 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
+ main_menu: Menu principale
21
+ footer_menut: Menu footer
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
  #
@@ -324,6 +338,8 @@ it:
324
338
  confirm_to_delete_image: "Vuoi veramente eliminare questa immagine dal server?"
325
339
  confirm_to_delete_image_from_server: "Vuoi veramente eliminare questa immagine dal server?"
326
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?"
327
343
  confirm_to_delete_page: "Vuoi eliminare veramente questa pagina? I suoi elementi andranno persi!"
328
344
  content_essence_not_found: "Essenza del contenuto non trovata"
329
345
  content_not_found: "Campo per il contenuto non trovato."
@@ -333,6 +349,8 @@ it:
333
349
  copy_page: "Copia pagina"
334
350
  "Could not delete Pictures": "Impossibile eliminare le Immagini"
335
351
  copy_language_tree_heading: "Copia struttura delle pagine"
352
+ create_menu: "Aggiungi un menu"
353
+ create_node: "Aggiungi un nodo al menu"
336
354
  country_code_placeholder: 'ad es. US (opzionale)'
337
355
  country_code_foot_note: "È necessario configurare un codice nazione solo se vuoi supportare diverse nazioni con la stessa lingua."
338
356
  create: "crea"
@@ -345,6 +363,8 @@ it:
345
363
  delete_file: "Elimina questo file dal server."
346
364
  delete_image: "Elimina quest'immagine"
347
365
  delete_language: "Elimina questa lingua"
366
+ delete_menu: "Cancella il menu"
367
+ delete_node: "Cancella il nodo di menu"
348
368
  delete_page: "Elimina questa pagina"
349
369
  delete_tag: 'Elimina tag'
350
370
  document: "File"
@@ -356,6 +376,8 @@ it:
356
376
  edit_image_properties: "Modifica le proprietà dell'immagine."
357
377
  edit_language: "Modifica lingua"
358
378
  edit_page: "Modifica questa pagina"
379
+ edit_menu: "Modifica il menu"
380
+ edit_node: "Modifica il nodo di menu"
359
381
  edit_page_properties: "Modifica proprietà pagina"
360
382
  edit_tag: 'Modifica tag'
361
383
  edit_selected_pictures: "Modifica le immagini selezionate"
@@ -422,6 +444,7 @@ it:
422
444
  male: "Maschio"
423
445
  me: "Me"
424
446
  medium_thumbnails: "Thumbnail di meda dimensione"
447
+ menu: Menu
425
448
  meta_data: "Meta-Data"
426
449
  meta_description: "Meta-Description"
427
450
  meta_keywords: "Meta-Keywords"
@@ -432,6 +455,7 @@ it:
432
455
  languages: "Lingue"
433
456
  layoutpages: "Pagine Globali"
434
457
  library: "Libreria"
458
+ menus: "Menus"
435
459
  pages: "Pagine"
436
460
  tags: "Tags"
437
461
  sites: "Siti"
@@ -710,6 +734,9 @@ it:
710
734
  alchemy/language:
711
735
  one: "Lingua"
712
736
  other: "Lingue"
737
+ alchemy/node:
738
+ one: "Nodo Menu"
739
+ other: "Nodi Menu"
713
740
  alchemy/page:
714
741
  one: "Pagina"
715
742
  other: "Pagine"