kaminari-i18n 0.2.0 → 0.3.0

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: 6055c493b409757fe88dcb57ee4ac03f5a45b899
4
- data.tar.gz: 34f79f3ce374c2ea86af9c8e95f016f67e10d722
3
+ metadata.gz: 05310224c515d520957559ec8e477aba8ba27a14
4
+ data.tar.gz: 903edf048f56df79cc2fa039e181b1d8c5446b13
5
5
  SHA512:
6
- metadata.gz: f23977f6c69630d9f8e2050bcc5dab69c49db5099436e35e14987269b10a5fdd46ca2c82d917eea6b8044b877fa06103b187dad0fe2d4c78e7dc28c849712d79
7
- data.tar.gz: 01ef8ae8d8b69dbd3cb01c25257163ead44a2dc9d3f36a35f93c8cb614a145c234319b5a2e3bb6161c3d576dcb48afd25d65585fef8de31b5eca3a9b6d40a3e5
6
+ metadata.gz: 3a4b0a3f7b628e50f9925332feff66acbda0b77cf8e8a7140bf2f98706ff2f434536f84c8c937607f59481fbeafd8f97c340dde19b8eeee0b896b5d903af3c89
7
+ data.tar.gz: 938238e5d730f3355db5adc610f4caf183e57b3daea10dda3f4f5000f96cf0ffcb0e5747f071570ae8a825c3a3d307b5a511cd4dc6811ae67cb38d6d4cff3ed2
File without changes
@@ -0,0 +1,16 @@
1
+ ca:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: Mostrant %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> de<b>%{total}</b> en total
6
+ one_page:
7
+ display_entries:
8
+ one: Mostrant <b>%{count}</b> %{entry_name}
9
+ other: Mostrant <b>un total de %{count}</b> %{entry_name}
10
+ views:
11
+ pagination:
12
+ first: "&laquo; Primera"
13
+ last: "Última &raquo;"
14
+ next: Següent &rsaquo;
15
+ previous: "&lsaquo; Anterior"
16
+ truncate: "&hellip;"
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,16 @@
1
+ hi:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: "कुल <b>%{total} में से %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> प्रदर्शित"
6
+ one_page:
7
+ display_entries:
8
+ one: "दर्शित <b>%{count}</b> %{entry_name}"
9
+ other: "प्रदर्शित <b>%{count}</b> %{entry_name}"
10
+ views:
11
+ pagination:
12
+ first:
13
+ last:
14
+ next: "अगला &rsaquo;"
15
+ previous: "&lsaquo; पिछला"
16
+ truncate: "&hellip;"
@@ -0,0 +1,14 @@
1
+ hu:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: "%{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> megjelenítve (összesen <b>%{total}</b>)"
6
+ one_page:
7
+ display_entries: "<b>Mind a %{count}</b> %{entry_name} megjelenítve"
8
+ views:
9
+ pagination:
10
+ first:
11
+ last:
12
+ next: Következő &rsaquo;
13
+ previous: "&lsaquo; Előző"
14
+ truncate: "&hellip;"
@@ -0,0 +1,14 @@
1
+ is:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries:
6
+ one_page:
7
+ display_entries:
8
+ views:
9
+ pagination:
10
+ first:
11
+ last:
12
+ next:
13
+ previous:
14
+ truncate:
File without changes
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ lv:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: Parāda %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> no <b>%{total}</b> kopumā
6
+ one_page:
7
+ display_entries:
8
+ views:
9
+ pagination:
10
+ first:
11
+ last:
12
+ next: Nākošais &rsaquo;
13
+ previous: "&lsaquo; Iepriekšējais"
14
+ truncate: "&hellip;"
@@ -0,0 +1,16 @@
1
+ nb:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: Viser %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> av <b>%{total}</b> totalt
6
+ one_page:
7
+ display_entries:
8
+ one: Viser <b>%{count}</b> %{entry_name}
9
+ other: Viser <b>alle&nbsp;%{count}</b> %{entry_name}
10
+ views:
11
+ pagination:
12
+ first:
13
+ last:
14
+ next: Neste &rsaquo;
15
+ previous: "&lsaquo; Forrige"
16
+ truncate: "&hellip;"
@@ -0,0 +1,16 @@
1
+ nl:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: "%{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> van de <b>%{total}</b> getoond"
6
+ one_page:
7
+ display_entries:
8
+ one: "<b>%{count}</b> %{entry_name} getoond"
9
+ other: Alle <b>%{count}</b> %{entry_name} getoond
10
+ views:
11
+ pagination:
12
+ first: "&laquo; Eerste"
13
+ last: Laatste &raquo;
14
+ next: Volgende &rsaquo;
15
+ previous: "&lsaquo; Vorige"
16
+ truncate: "&hellip;"
@@ -0,0 +1,14 @@
1
+ 'no':
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries:
6
+ one_page:
7
+ display_entries:
8
+ views:
9
+ pagination:
10
+ first:
11
+ last:
12
+ next:
13
+ previous:
14
+ truncate:
File without changes
File without changes
@@ -0,0 +1,16 @@
1
+ pt-PT:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: A apresentar %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> de <b>%{total}</b> no total
6
+ one_page:
7
+ display_entries:
8
+ one: A apresentar <b>1</b> %{entry_name}
9
+ other: A apresentar <b>all %{count}</b> %{entry_name}
10
+ views:
11
+ pagination:
12
+ first:
13
+ last:
14
+ next: Próximo &rsaquo;
15
+ previous: "&lsaquo; Anterior"
16
+ truncate: "&hellip;"
@@ -6,7 +6,7 @@ ru:
6
6
  one_page:
7
7
  display_entries:
8
8
  few: "Показаны <b>%{count}</b> %{entry_name}"
9
- many: '"Показаны <b>%{count}</b> %{entry_name}"'
9
+ many: "Показаны <b>%{count}</b> %{entry_name}"
10
10
  one: "Показано <b>%{count}</b> %{entry_name}"
11
11
  other: Показаны <b>все %{count}</b> %{entry_name}"
12
12
  views:
File without changes
@@ -0,0 +1,16 @@
1
+ sv:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: Visar %{entry_name} <b>%{first} - %{last}</b> av <b>%{total}</b> totalt
6
+ one_page:
7
+ display_entries:
8
+ one: Visar <b>%{count}<b> %{entry_name}
9
+ other: Visar <b>alla ,%{count}</b> %{entry_name}
10
+ views:
11
+ pagination:
12
+ first:
13
+ last:
14
+ next: Nästa &rsaquo;
15
+ previous: "&lsaquo; Föregående"
16
+ truncate: "&hellip;"
@@ -0,0 +1,14 @@
1
+ tr:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries:
6
+ one_page:
7
+ display_entries: "<b>all&nbsp;%{count}</b> %{entry_name} gösteriliyor"
8
+ views:
9
+ pagination:
10
+ first:
11
+ last:
12
+ next: Sonraki &rsaquo;
13
+ previous: "&lsaquo; Önceki"
14
+ truncate: "&hellip;"
@@ -0,0 +1,19 @@
1
+ uk:
2
+ helpers:
3
+ page_entries_info:
4
+ more_pages:
5
+ display_entries: "Відображено %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> із <b>%{total}</b>"
6
+ one_page:
7
+ display_entries:
8
+ few: "Відображені <b>%{count}</b> %{entry_name}"
9
+ many: "Відображені <b>%{count}</b> %{entry_name}"
10
+ one: "Відображено <b>%{count}</b> %{entry_name}"
11
+ other: "Відображені <b>всі %{count}</b> %{entry_name}"
12
+ zero: "Жодного %{entry_name}"
13
+ views:
14
+ pagination:
15
+ first: "&laquo; Перша"
16
+ last: "Остання &raquo;"
17
+ next: "Наступна &rsaquo;"
18
+ previous: "&lsaquo; Попередня"
19
+ truncate: "&hellip;"
@@ -1,4 +1,4 @@
1
- zh:
1
+ zh-CN:
2
2
  helpers:
3
3
  page_entries_info:
4
4
  more_pages:
data/lib/kaminari-i18n.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  require "kaminari-i18n/version"
2
- require "kaminari-i18n/railtie"
2
+ require "kaminari-i18n/engine"
@@ -0,0 +1,6 @@
1
+ require 'rails'
2
+
3
+ module KaminariI18n
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module KaminariI18n
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- Dir.glob('locales/*.yml').each do |locale_file|
4
- describe "a kaminari-i18n #{locale_file} locale file" do
3
+ Dir.glob('config/locales/*.yml').each do |locale_file|
4
+ describe locale_file do
5
5
  it_behaves_like 'a valid locale file', locale_file
6
- it { locale_file.should be_a_subset_of 'locales/en.yml' }
6
+ it { is_expected.to be_a_subset_of 'config/locales/en.yml' }
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaminari-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Dell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -121,24 +121,36 @@ files:
121
121
  - LICENSE.txt
122
122
  - README.md
123
123
  - Rakefile
124
+ - config/locales/az.yml
125
+ - config/locales/ca.yml
126
+ - config/locales/de.yml
127
+ - config/locales/en.yml
128
+ - config/locales/es.yml
129
+ - config/locales/fi.yml
130
+ - config/locales/fr.yml
131
+ - config/locales/hi.yml
132
+ - config/locales/hu.yml
133
+ - config/locales/is.yml
134
+ - config/locales/it.yml
135
+ - config/locales/ja.yml
136
+ - config/locales/ko.yml
137
+ - config/locales/lv.yml
138
+ - config/locales/nb.yml
139
+ - config/locales/nl.yml
140
+ - config/locales/no.yml
141
+ - config/locales/pl.yml
142
+ - config/locales/pt-BR.yml
143
+ - config/locales/pt-PT.yml
144
+ - config/locales/ru.yml
145
+ - config/locales/sk.yml
146
+ - config/locales/sv.yml
147
+ - config/locales/tr.yml
148
+ - config/locales/uk.yml
149
+ - config/locales/zh-CN.yml
124
150
  - kaminari-i18n.gemspec
125
151
  - lib/kaminari-i18n.rb
126
- - lib/kaminari-i18n/railtie.rb
152
+ - lib/kaminari-i18n/engine.rb
127
153
  - lib/kaminari-i18n/version.rb
128
- - locales/az.yml
129
- - locales/de.yml
130
- - locales/en.yml
131
- - locales/es.yml
132
- - locales/fi.yml
133
- - locales/fr.yml
134
- - locales/it.yml
135
- - locales/ja.yml
136
- - locales/ko.yml
137
- - locales/pl.yml
138
- - locales/pt-BR.yml
139
- - locales/ru.yml
140
- - locales/sk.yml
141
- - locales/zh.yml
142
154
  - spec/kaminari-i18n_spec.rb
143
155
  - spec/spec_helper.rb
144
156
  homepage: ''
@@ -161,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
173
  version: '0'
162
174
  requirements: []
163
175
  rubyforge_project:
164
- rubygems_version: 2.2.2
176
+ rubygems_version: 2.4.6
165
177
  signing_key:
166
178
  specification_version: 4
167
179
  summary: Translations for the kaminari gem
@@ -1,24 +0,0 @@
1
- require 'rails'
2
-
3
- module KaminariI18n
4
- class Engine < ::Rails::Engine
5
- end
6
-
7
- class Railtie < ::Rails::Railtie #:nodoc:
8
- initializer 'kaminari-i18n' do |app|
9
- KaminariI18n::Railtie.instance_eval do
10
- pattern = pattern_from app.config.i18n.available_locales
11
-
12
- files = Dir[File.join(File.dirname(__FILE__), '../../locales', "#{pattern}.yml")]
13
- I18n.load_path.concat(files)
14
- end
15
- end
16
-
17
- protected
18
-
19
- def self.pattern_from(args)
20
- array = Array(args || [])
21
- array.blank? ? '*' : "{#{array.join ','}}"
22
- end
23
- end
24
- end