pettanr_creative_commons_v30_licenses 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  <div>
2
- <h2>digest credit</h2>
2
+ <h2><%= t('pettanr_creative_commons_v30_licenses.digest_credit') -%></h2>
3
3
  <%= render @resource_picture.credit_template, :picture => @resource_picture %>
4
4
  </div>
5
5
  <div>
6
- <h2>full credit</h2>
6
+ <h2><%= t('pettanr_creative_commons_v30_licenses.full_credit') -%></h2>
7
7
  <%= render @resource_picture.full_credit_template, :picture => @resource_picture %>
8
8
  </div>
@@ -19,37 +19,37 @@
19
19
 
20
20
  <table class="no-border">
21
21
  <tr>
22
- <td>License Group</td>
23
- <td><%= h @license_group.caption -%></td>
24
- <td>selected</td>
22
+ <td><%= t_m 'LicenseGroup' -%></td>
23
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute' -%></td>
24
+ <td><%= t('pettanr_creative_commons_v30_licenses.selected') -%></td>
25
25
  </tr>
26
26
  <tr>
27
- <td>License</td>
27
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.license_id' -%></td>
28
28
  <td><%= collection_select :creative_commons_license, :license_id, @license_group.licenses.map {|l| [l.caption, l.id] }, :last, :first -%></td>
29
- <td>+</td>
29
+ <td><%= t('pettanr_creative_commons_v30_licenses.no_blank') -%></td>
30
30
  </tr>
31
31
  <tr>
32
- <td>Artist Name</td>
32
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.artist_name' -%></td>
33
33
  <td><%= text_field_tag 'creative_commons_license[artist_name]', @creative_commons_license.artist_name -%></td>
34
- <td>+</td>
34
+ <td><%= t('pettanr_creative_commons_v30_licenses.no_blank') -%></td>
35
35
  </tr>
36
36
  <tr>
37
- <td>Caption</td>
37
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.caption' -%></td>
38
38
  <td><%= text_field_tag 'creative_commons_license[caption]', @creative_commons_license.caption -%></td>
39
39
  <td></td>
40
40
  </tr>
41
41
  <tr>
42
- <td>your web site's url</td>
42
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.artist_url' -%></td>
43
43
  <td><%= text_field_tag 'creative_commons_license[artist_url]', @creative_commons_license.artist_url -%></td>
44
44
  <td></td>
45
45
  </tr>
46
46
  <tr>
47
- <td>source picture's urls</td>
47
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.source_url' -%></td>
48
48
  <td><%= text_field_tag 'creative_commons_license[source_url]', @creative_commons_license.source_url -%></td>
49
49
  <td></td>
50
50
  </tr>
51
51
  <tr>
52
- <td>more permission url</td>
52
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.more_permission_url' -%></td>
53
53
  <td><%= text_field_tag 'creative_commons_license[more_permission_url]', @creative_commons_license.more_permission_url -%></td>
54
54
  <td></td>
55
55
  </tr>
@@ -60,6 +60,6 @@
60
60
  <%= hidden_field_tag 'original_picture_license_group[license_group_id]', @original_picture_license_group.license_group_id %>
61
61
 
62
62
  <div class="actions">
63
- <%= submit_tag 'Next' %>
63
+ <%= submit_tag t('pettanr_creative_commons_v30_licenses.next') %>
64
64
  </div>
65
65
  <% end %>
@@ -13,27 +13,27 @@
13
13
  </td>
14
14
  </tr>
15
15
  <tr>
16
- <td>Artist Name</td>
17
- <td><%= h(picture.artist_name) -%></td>
16
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.artist_name' -%></td>
17
+ <td><%= link_to_if picture.credit_data['artist_url'], h(picture.artist_name), picture.credit_data['artist_url'] -%></td>
18
18
  </tr>
19
19
  <tr>
20
- <td>License Group</td>
20
+ <td><%= t_m 'LicenseGroup' -%></td>
21
21
  <td><%= link_to(h(picture.license.license_group.caption), picture.license.license_group.url) -%></td>
22
22
  </tr>
23
23
  <tr>
24
- <td>License</td>
24
+ <td><%= t_m 'License' -%></td>
25
25
  <td><%= link_to(h(picture.license.caption), picture.license.url) -%></td>
26
26
  </tr>
27
27
  <tr>
28
- <td>Caption</td>
28
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.caption' -%></td>
29
29
  <td><%= h picture.credit_data['caption'] -%></td>
30
30
  </tr>
31
31
  <tr>
32
- <td>source picture's url</td>
32
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.source_url' -%></td>
33
33
  <td><%= link_to(h(picture.credit_data['source_url']), picture.credit_data['source_url']) -%></td>
34
34
  </tr>
35
35
  <tr>
36
- <td>more permission url</td>
36
+ <td><%= t_m 'PettanrCreativeCommonsV30Licenses::Attribute.more_permission_url' -%></td>
37
37
  <td><%= link_to(h(picture.credit_data['more_permission_url']), picture.credit_data['more_permission_url']) -%></td>
38
38
  </tr>
39
39
  </table>
@@ -1,2 +1,2 @@
1
- <h1>Select license (and more info)</h1>
2
- <img src="<%= @original_picture.url -%>">
1
+ <%= tag(:img, @original_picture.opt_img_tag) -%>
2
+
@@ -1,2 +1,3 @@
1
+ <h1><%= t('pettanr_creative_commons_v30_licenses.title') %></h1>
1
2
  <%= render 'pettanr_creative_commons_v30_licenses/attributes/note' %>
2
3
  <%= render 'pettanr_creative_commons_v30_licenses/attributes/form' %>
@@ -0,0 +1,35 @@
1
+ ja:
2
+ activerecord:
3
+ models:
4
+ pettanr_creative_commons_v30_licenses/attribute: クリエイティブコモンズ3.0
5
+ attributes:
6
+ pettanr_creative_commons_v30_licenses/attribute:
7
+ license_id: ライセンス
8
+ artist_name: 著作者名
9
+ caption: 作品のタイトル
10
+ artist_url: 著作者のサイト
11
+ source_url: 元作品のurl
12
+ more_permission_url: 追加的ライセンスのurl
13
+ select_items:
14
+ comic:
15
+ visible:
16
+ private: 非公開
17
+ public: 公開
18
+ panel:
19
+ visible:
20
+ private: 非公開
21
+ public: 公開
22
+ ground_pictures:
23
+ repeat:
24
+ all: 全体
25
+ x: 横方向
26
+ y: 縦方向
27
+ no: なし
28
+ pettanr_creative_commons_v30_licenses:
29
+ title: 画像の公開(ライセンスの選択)
30
+ selected: 選択されています
31
+ no_blank: 必須項目
32
+ next: 次へ
33
+ digest_credit: クレジット
34
+ full_credit: クレジット完全版
35
+
@@ -1,3 +1,3 @@
1
1
  module PettanrCreativeCommonsV30Licenses
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pettanr_creative_commons_v30_licenses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2012-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &25022376 !ruby/object:Gem::Requirement
16
+ requirement: &23561892 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *25022376
24
+ version_requirements: *23561892
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &25021644 !ruby/object:Gem::Requirement
27
+ requirement: &23561376 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *25021644
35
+ version_requirements: *23561376
36
36
  description: This software is a license plugin for PettanR
37
37
  email:
38
38
  - yasusiito@gmail.com
@@ -57,6 +57,7 @@ files:
57
57
  - app/views/pettanr_creative_commons_v30_licenses/attributes/_form.html.erb
58
58
  - app/views/pettanr_creative_commons_v30_licenses/attributes/_full_credit.html.erb
59
59
  - app/views/pettanr_creative_commons_v30_licenses/attributes/_note.html.erb
60
+ - config/locales/pettanr_creative_commons_v30_licenses.ja.yml
60
61
  - config/routes.rb
61
62
  - db/b1.png
62
63
  - db/b2.png