magic_locales 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 8df4284162c4f82a9c62f7898a892741d57f2cb7
4
- data.tar.gz: ea2757b8008488b3503e4766ff31073df15baea5
3
+ metadata.gz: b7bc2afbaa5ebd3bad1857e3d00bcff0a69b502a
4
+ data.tar.gz: 8bd03b07b52c5b6f02926ad4b5397b4512d55448
5
5
  SHA512:
6
- metadata.gz: fa7b5bf71ba840f1a74da6136ff92c002144fe1f7fc9d6453ea11e41f99a5610a000efff7be203c913363f756d8a6fa389b12eaed401669d66aefd9db0fca265
7
- data.tar.gz: cb3faf4cd0a831427999872452eebec243c022c1d6ca8e609c62851a9e97a5fb6eae532c117eba1baeefa35412b22b0bc40a1df2fe53438858322eaeb11e881f
6
+ metadata.gz: ec7fc3996ba6424a56a9448b151ad690594d5b008d5980aecafc3526a1970a7e0cefac760b439d2c39e8ca2cddeda846873619febe51bb099260caad86f4b750
7
+ data.tar.gz: 7f1120bbd8fd37541a8e101a404de00b61410cc7c13f7c6b8af841ab22e87b8b71d987928c98da9392079d03d10e75cefdcc0360b162027c4940e47db8e4b6ac
@@ -3,6 +3,7 @@ de:
3
3
  available_locales: "Verfügbare Sprachen"
4
4
  available_locales_helper: "Sprachen die als *.yml Datei im System vorliegen, Fragen Sie Ihren Admin für mehr Informationen."
5
5
  main_locale: "Master"
6
+ active_locale: "Aktiv"
6
7
  trigger: "Optionen"
7
8
  available: "Verfügbar"
8
9
  actions: "Aktionen"
@@ -14,6 +15,10 @@ de:
14
15
  release: "Veröffentlichen"
15
16
  deactivate: "Deaktivieren"
16
17
  edit: "bearbeiten"
18
+ state_descriptions:
19
+ live: "Sprache ist Online, das heißt genrell verfügbar und sichtbar. Wenn mehr als eine Sprache Online sind, wird der Sprach-Wechsler sichtbar."
20
+ active: "Sprache ist aktiv, das heißt sie ist nicht sichtbar aber wird im hintergrund schon vom System verwendet. (zur Vorbereitung)"
21
+ incatvie: "Sprache ist Inaktiv, also weder sichtbar noch in verwendung."
17
22
  helpers:
18
23
  label:
19
24
  language:
@@ -1,8 +1,9 @@
1
- de:
1
+ en:
2
2
  magic_locales:
3
3
  available_locales: "Verfügbare Sprachen"
4
4
  available_locales_helper: "Locales that are available as *.yml files in the system, ask your admin for more informations."
5
5
  main_locale: "main"
6
+ active_locale: "active"
6
7
  trigger: "triggers"
7
8
  available: "available"
8
9
  actions: "Actions"
@@ -14,6 +15,10 @@ de:
14
15
  release: "release"
15
16
  deactivate: "deactivate"
16
17
  edit: "edit"
18
+ state_descriptions:
19
+ live: "Language is live, so available. When more then one language is live, the language-selector gets visble."
20
+ active: "Language is active, so not available but allready used by the system (for preparation)."
21
+ incatvie: "Language is inactive, so not available and not in use."
17
22
  helpers:
18
23
  label:
19
24
  language:
@@ -16,14 +16,22 @@
16
16
  </h4>
17
17
  <p><%= t("magic_locales.available_locales_helper") %></p>
18
18
  <div class="clearfix"></div>
19
+ <table class="table table-condensed">
20
+ <% %w(live active inactive).each do |this| %>
21
+ <tr>
22
+ <th><%= t("helpers.label.magic_locales_locale.states.#{this}") %></th>
23
+ <td><%= t("magic_locales.state_descriptions.#{this}") %></td>
24
+ </tr>
25
+ <% end %>
26
+ </table>
19
27
  <hr/>
20
28
  <table class="table table-striped">
21
29
  <thead>
22
30
  <tr>
23
31
 
24
- <th><%= t("helpers.label.magic_locales_language.iso_code") %></th>
25
- <th><%= t("helpers.label.magic_locales_language.name") %></th>
26
- <th><%= t("helpers.label.magic_locales_language.locale_state") %></th>
32
+ <th><%= t("helpers.label.magic_locales_locale.iso_code") %></th>
33
+ <th><%= t("helpers.label.magic_locales_locale.name") %></th>
34
+ <th><%= t("helpers.label.magic_locales_locale.locale_state") %></th>
27
35
  <th><%= t("magic_locales.available") %></th>
28
36
  <th><%= t("magic_locales.trigger") %></th>
29
37
  <th><%= t("magic_locales.actions") %></th>
@@ -50,11 +58,15 @@
50
58
  </td>
51
59
  <td><strong><%= locale.name %></strong></td>
52
60
  <td>
53
- <%= t("helpers.label.magic_locales_language.states.#{locale.locale_state}") %>
61
+ <%= t("helpers.label.magic_locales_locale.states.#{locale.locale_state}") %>
54
62
  <% if I18n.default_locale.to_s == locale.iso_code %>
55
63
  &nbsp;&nbsp;
56
64
  <span class="label label-success"><%= t("magic_locales.main_locale") %></span>
57
65
  <% end %>
66
+ <% if I18n.locale.to_s == locale.iso_code %>
67
+ &nbsp;&nbsp;
68
+ <span class="label label-success"><%= t("magic_locales.active_locale") %></span>
69
+ <% end %>
58
70
  </td>
59
71
  <td>
60
72
  <% if I18n.available_locales.include?(locale.iso_code.to_sym) %>
@@ -1,3 +1,3 @@
1
1
  module MagicLocales
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_locales
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel