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 +4 -4
- data/{locales → config/locales}/az.yml +0 -0
- data/config/locales/ca.yml +16 -0
- data/{locales → config/locales}/de.yml +0 -0
- data/{locales → config/locales}/en.yml +0 -0
- data/{locales → config/locales}/es.yml +0 -0
- data/{locales → config/locales}/fi.yml +0 -0
- data/{locales → config/locales}/fr.yml +0 -0
- data/config/locales/hi.yml +16 -0
- data/config/locales/hu.yml +14 -0
- data/config/locales/is.yml +14 -0
- data/{locales → config/locales}/it.yml +0 -0
- data/{locales → config/locales}/ja.yml +0 -0
- data/{locales → config/locales}/ko.yml +0 -0
- data/config/locales/lv.yml +14 -0
- data/config/locales/nb.yml +16 -0
- data/config/locales/nl.yml +16 -0
- data/config/locales/no.yml +14 -0
- data/{locales → config/locales}/pl.yml +0 -0
- data/{locales → config/locales}/pt-BR.yml +0 -0
- data/config/locales/pt-PT.yml +16 -0
- data/{locales → config/locales}/ru.yml +1 -1
- data/{locales → config/locales}/sk.yml +0 -0
- data/config/locales/sv.yml +16 -0
- data/config/locales/tr.yml +14 -0
- data/config/locales/uk.yml +19 -0
- data/{locales/zh.yml → config/locales/zh-CN.yml} +1 -1
- data/lib/kaminari-i18n.rb +1 -1
- data/lib/kaminari-i18n/engine.rb +6 -0
- data/lib/kaminari-i18n/version.rb +1 -1
- data/spec/kaminari-i18n_spec.rb +3 -3
- metadata +30 -18
- data/lib/kaminari-i18n/railtie.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05310224c515d520957559ec8e477aba8ba27a14
|
4
|
+
data.tar.gz: 903edf048f56df79cc2fa039e181b1d8c5446b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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} - %{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: "« Primera"
|
13
|
+
last: "Última »"
|
14
|
+
next: Següent ›
|
15
|
+
previous: "‹ Anterior"
|
16
|
+
truncate: "…"
|
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} - %{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: "अगला ›"
|
15
|
+
previous: "‹ पिछला"
|
16
|
+
truncate: "…"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
hu:
|
2
|
+
helpers:
|
3
|
+
page_entries_info:
|
4
|
+
more_pages:
|
5
|
+
display_entries: "%{entry_name} <b>%{first} - %{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ő ›
|
13
|
+
previous: "‹ Előző"
|
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} - %{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 ›
|
13
|
+
previous: "‹ Iepriekšējais"
|
14
|
+
truncate: "…"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
nb:
|
2
|
+
helpers:
|
3
|
+
page_entries_info:
|
4
|
+
more_pages:
|
5
|
+
display_entries: Viser %{entry_name} <b>%{first} - %{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 %{count}</b> %{entry_name}
|
10
|
+
views:
|
11
|
+
pagination:
|
12
|
+
first:
|
13
|
+
last:
|
14
|
+
next: Neste ›
|
15
|
+
previous: "‹ Forrige"
|
16
|
+
truncate: "…"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
nl:
|
2
|
+
helpers:
|
3
|
+
page_entries_info:
|
4
|
+
more_pages:
|
5
|
+
display_entries: "%{entry_name} <b>%{first} - %{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: "« Eerste"
|
13
|
+
last: Laatste »
|
14
|
+
next: Volgende ›
|
15
|
+
previous: "‹ Vorige"
|
16
|
+
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} - %{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 ›
|
15
|
+
previous: "‹ Anterior"
|
16
|
+
truncate: "…"
|
@@ -6,7 +6,7 @@ ru:
|
|
6
6
|
one_page:
|
7
7
|
display_entries:
|
8
8
|
few: "Показаны <b>%{count}</b> %{entry_name}"
|
9
|
-
many:
|
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 ›
|
15
|
+
previous: "‹ Föregående"
|
16
|
+
truncate: "…"
|
@@ -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 %{count}</b> %{entry_name} gösteriliyor"
|
8
|
+
views:
|
9
|
+
pagination:
|
10
|
+
first:
|
11
|
+
last:
|
12
|
+
next: Sonraki ›
|
13
|
+
previous: "‹ Önceki"
|
14
|
+
truncate: "…"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
uk:
|
2
|
+
helpers:
|
3
|
+
page_entries_info:
|
4
|
+
more_pages:
|
5
|
+
display_entries: "Відображено %{entry_name} <b>%{first} - %{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: "« Перша"
|
16
|
+
last: "Остання »"
|
17
|
+
next: "Наступна ›"
|
18
|
+
previous: "‹ Попередня"
|
19
|
+
truncate: "…"
|
data/lib/kaminari-i18n.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require "kaminari-i18n/version"
|
2
|
-
require "kaminari-i18n/
|
2
|
+
require "kaminari-i18n/engine"
|
data/spec/kaminari-i18n_spec.rb
CHANGED
@@ -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
|
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 {
|
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.
|
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:
|
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/
|
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.
|
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
|