infopark_fiona7 1.2.0.0.0 → 1.2.0.0.1

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: 5390d8274e0e6c0929da925705786a07b297d912
4
- data.tar.gz: 13969d1b7aa62d32be9679bd08b576bae5cb471a
3
+ metadata.gz: a7d3bb2d10bc2f11b32b9754210ed0ef10341556
4
+ data.tar.gz: fd71316becc16a5f10c1c546ca1c97389cb9afbb
5
5
  SHA512:
6
- metadata.gz: a752b07549ac28002aede720ea199a2d299898e5d6e325365dabee926cca3a58d5a67f2352fcfc367fe19876b154bc9b4ed0add07c2b5e372300a3d8aa1f02b9
7
- data.tar.gz: 6aa69f7e831a3d9fdc9fecb5028bbfbf3b935a29655895f5fa24aed5d8a67b70fed900bdbf2e40246a0ec33f96de671c7034921cd2f6ec03ae09471a56c3f67b
6
+ metadata.gz: 454999faa3d435587f987af8f1af4a636e75b767e50938bf2e2235541e1a35fe3a4cf7133b407f407e31d5ce936fecbcab41b6fb3d43a29ce4585008463f7356
7
+ data.tar.gz: 0271a2e3031ec96cdc812903d97d29bdb445a9efc5c77afe712f081c012ffaba693c61289a74fe2199838897d674371e34033a3d6f5b44217e7b0b2accbde1e3
@@ -1,5 +1,7 @@
1
1
  module Fiona7
2
2
  class ReleaseController < ActionController::Base
3
+ helper_method :current_locale
4
+
3
5
  def release
4
6
  obj_ids = params[:objs]
5
7
  objs = WriteObj.find(obj_ids)
@@ -41,6 +43,10 @@ module Fiona7
41
43
  end
42
44
 
43
45
  protected
46
+ def current_locale
47
+ Scrivito::Configuration.ui_locale || I18n.locale
48
+ end
49
+
44
50
  def in_rtc_workspace(&block)
45
51
  Scrivito::Workspace.find('rtc').as_current(&block)
46
52
  end
@@ -1,9 +1,9 @@
1
1
  <div class="scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_green scrivito_show" style="margin-left: -250px; margin-top: -165px; left: 50%;">
2
2
  <div class="scrivito_modal_header">
3
3
  <i class="scrivito_icon"></i>
4
- <h3 class="scrivito_title">Änderungen an dieser Seite veröffentlichen?</h3>
4
+ <h3 class="scrivito_title"><%= t(:"fiona7.release.config", locale: current_locale) %></h3>
5
5
 
6
- <p class="scrivito_description">Eine Arbeitsversion zu veröffentlichen ist endgültig. Dieser Vorgang kann nicht rückgängig gemacht werden.</p>
6
+ <p class="scrivito_description"><%= t(:"fiona7.release.description", locale: current_locale) %></p>
7
7
 
8
8
  </div>
9
9
  <div class="scrivito_modal_body">
@@ -13,7 +13,7 @@
13
13
 
14
14
  <% if !@images.empty? %>
15
15
  <div class="expanding">
16
- <span><i class="scrivito_icon"></i> Bilder</span>
16
+ <span><i class="scrivito_icon"></i> <%= t(:"fiona7.release.images", locale: current_locale) %></span>
17
17
  </div>
18
18
  <div class="expandable collapsed">
19
19
  <% @images.each do |obj| %>
@@ -24,7 +24,7 @@
24
24
 
25
25
  <% if !@downloads.empty? %>
26
26
  <div class="expanding">
27
- <span><i class="scrivito_icon"></i> Downloads</span>
27
+ <span><i class="scrivito_icon"></i> <%= t(:"fiona7.release.downloads", locale: current_locale) %></span>
28
28
  </div>
29
29
  <div class="expandable collapsed">
30
30
  <% @downloads.each do |obj| %>
@@ -35,7 +35,7 @@
35
35
 
36
36
  <% if !@referenced.empty? %>
37
37
  <div class="expanding">
38
- <span><i class="scrivito_icon"></i> Referenzierte Seiten</span>
38
+ <span><i class="scrivito_icon"></i> <%= t(:"fiona7.release.referenced", locale: current_locale) %></span>
39
39
  </div>
40
40
  <div class="expandable collapsed">
41
41
  <% @referenced.each do |obj| %>
@@ -46,7 +46,7 @@
46
46
 
47
47
  <% if !@linked.empty? %>
48
48
  <div class="expanding">
49
- <span><i class="scrivito_icon"></i> Verlinkte Seiten</span>
49
+ <span><i class="scrivito_icon"></i> <%= t(:"fiona7.release.linked", locale: current_locale) %></span>
50
50
  </div>
51
51
  <div class="expandable collapsed">
52
52
  <% @linked.each do |obj| %>
@@ -56,18 +56,18 @@
56
56
  <% end %>
57
57
 
58
58
  <div class="expanding">
59
- <span><i class="scrivito_icon"></i> Kommentar</span>
59
+ <span><i class="scrivito_icon"></i> <%= t(:"fiona7.release.comment", locale: current_locale) %></span>
60
60
  </div>
61
61
  <div class="expandable collapsed">
62
- <input type="text" id="release-comment" placeholder="Kommentar (optional)">
62
+ <input type="text" id="release-comment" placeholder="<%= t(:"fiona7.release.comment_placeholder", locale: current_locale) %>">
63
63
  </div>
64
64
  </div>
65
65
  <div class="scrivito_modal_footer">
66
66
  <a href="#" class="scrivito_button scrivito_ scrivito_cancel">
67
- Abbrechen
67
+ <%= t(:"fiona7.release.cancel") %>
68
68
  </a>
69
69
  <a href="#" class="scrivito_button scrivito_green scrivito_accept">
70
- Freigeben
70
+ <%= t(:"fiona7.release.accept") %>
71
71
  </a>
72
72
  </div>
73
73
  </div>
@@ -0,0 +1,28 @@
1
+ de:
2
+ fiona7:
3
+ release:
4
+ confirm: Änderungen an dieser Seite veröffentlichen?
5
+ description: Eine Arbeitsversion zu veröffentlichen ist endgültig. Dieser Vorgang kann nicht rückgängig gemacht werden.
6
+ images: Bilder
7
+ downloads: Downloads
8
+ referenced: Referenzierte Seiten
9
+ linked: Verlinkte Seiten
10
+ comment: Kommentar
11
+ comment_placeholder: Kommentar (optional)
12
+ cancel: Abbrechen
13
+ accept: Freigeben
14
+
15
+
16
+ en:
17
+ fiona7:
18
+ release:
19
+ confirm: Release this page?
20
+ description: Releasing an edited page is final. This operation cannot be reverted.
21
+ images: Images
22
+ downloads: Downloads
23
+ referenced: Referenced Pages
24
+ linked: Linked Pages
25
+ comment: Comment
26
+ comment_placeholder: Comment (optional)
27
+ cancel: Cancel
28
+ accept: Release
@@ -1,3 +1,3 @@
1
1
  module Fiona7
2
- VERSION = "1.2.0.0.0"
2
+ VERSION = "1.2.0.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_fiona7
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.0.0
4
+ version: 1.2.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -153,6 +153,7 @@ files:
153
153
  - config/delayed_routes.rb
154
154
  - config/locales/login.yml
155
155
  - config/locales/permissions.yml
156
+ - config/locales/release.yml
156
157
  - config/precedence_routes.rb
157
158
  - infopark_fiona7.gemspec
158
159
  - lib/fiona7/access_permission_check.rb