r18n-core 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,44 @@
1
+ == 0.3.1 (Yield)
2
+ * Add Chinese locale (by Ilia Zayats).
3
+ * Add Spanish locale (by Andre O Moura).
4
+ * Add Brazilian Portuguese locale (by Andre O Moura).
5
+ * Remove rubygems requires.
6
+
7
+ == 0.3 (Vladivostok)
8
+ * Translated mixin to add i18n support to model or any other class.
9
+ * New cool time formatters.
10
+ * Filters for translations.
11
+ * Add filters to escape HTML, Markdown and Textile syntax.
12
+ * Pluralization and variables is now as filters and can be replaced.
13
+ * I18n#locales now contain all detected locales, used to load translations,
14
+ instead of just received from user.
15
+ * Bugfix in locale code case.
16
+ * Add Czech locale (by Josef Pospíšil).
17
+
18
+ == 0.2.3 (Shanghai eclipse)
19
+ * R18n will return path string if translation isn’t exists.
20
+ * Add UnsupportedLocale class for localew without information file.
21
+ * Load absent locale information from default locale.
22
+ * Add Polish locale (by Tymon Tobolski).
23
+
24
+ == 0.2.2 (Clone Wars)
25
+ * Localize numbers in pluralization.
26
+ * Bugfix in translation variables.
27
+
28
+ == 0.2.1 (Neun)
29
+ * Ruby 1.9 compatibility.
30
+ * Add German locale (by Benjamin Meichsner).
31
+
32
+ == 0.2 (Freedom of language)
33
+ * Locale class can be extended for special language (for example, Indian locale
34
+ may has another digits grouping).
35
+ * Load translations from several dirs.
36
+ * Add French locale.
37
+ * Add Kazakh locale.
38
+
39
+ == 0.1.1 (Saluto)
40
+ * Loading i18n object without translations.
41
+ * Add output for standalone month name.
42
+ * Dont’t call procedures from translations of it isn’t secure.
43
+ * Add Esperanto locale.
44
+ * English locale now contain UK date standards.
@@ -5,3 +5,27 @@ yes: Jes
5
5
  no: Ne
6
6
  exit: Eliro
7
7
  delete: Forviŝi
8
+
9
+ human_time:
10
+ after_days: !!pl
11
+ 1: post %1 tago
12
+ n: post %1 tagoj
13
+ tomorrow: morgaŭ
14
+ after_hours: !!pl
15
+ 1: post %1 horo
16
+ n: post %1 horoj
17
+ after_minutes: !!pl
18
+ 1: post %1 minuto
19
+ n: post %1 minutoj
20
+ now: nun
21
+ today: hodiaŭ
22
+ minutes_ago: !!pl
23
+ 1: %1 minuto antaŭ
24
+ n: %1 minutoj antaŭ
25
+ hours_ago: !!pl
26
+ 1: %1 horo antaŭ
27
+ n: %1 horo antaŭ
28
+ yesterday: hieraŭ
29
+ days_ago: !!pl
30
+ 1: %1 tago antaŭ
31
+ n: %1 tago antaŭ
@@ -0,0 +1,31 @@
1
+ ok: OK
2
+ save: Guardar
3
+ cancel: Cancelar
4
+ yes: Sí
5
+ no: No
6
+ exit: Salir
7
+ delete: Suprimir
8
+
9
+ human_time:
10
+ after_days: !!pl
11
+ 1: después %1 día
12
+ n: después %1 días
13
+ tomorrow: mañana
14
+ after_hours: !!pl
15
+ 1: después %1 hora
16
+ n: después %1 horas
17
+ after_minutes: !!pl
18
+ 1: después %1 minuto
19
+ n: después %1 minutos
20
+ now: ahora
21
+ today: hoy
22
+ minutes_ago: !!pl
23
+ 1: %1 minuto atrás
24
+ n: %1 minutos atrás
25
+ hours_ago: !!pl
26
+ 1: %1 hora atrás
27
+ n: %1 horas atrás
28
+ yesterday: ayer
29
+ days_ago: !!pl
30
+ 1: %1 día atrás
31
+ n: %1 días atrás
@@ -0,0 +1,31 @@
1
+ ok: OK
2
+ save: Salvar
3
+ cancel: Cancelar
4
+ yes: Sim
5
+ no: Não
6
+ exit: Sair
7
+ delete: Apagar
8
+
9
+ human_time:
10
+ after_days: !!pl
11
+ 1: após %1 dia
12
+ n: após %1 dias
13
+ tomorrow: amanhã
14
+ after_hours: !!pl
15
+ 1: após %1 hora
16
+ n: após %1 horas
17
+ after_minutes: !!pl
18
+ 1: após %1 minuto
19
+ n: após %1 minutos
20
+ now: agora
21
+ today: hoje
22
+ minutes_ago: !!pl
23
+ 1: %1 minuto atrás
24
+ n: %1 minutos atrás
25
+ hours_ago: !!pl
26
+ 1: %1 hora atrás
27
+ n: %1 horas atrás
28
+ yesterday: ontem
29
+ days_ago: !!pl
30
+ 1: %1 dia atrás
31
+ n: %1 dias atrás
@@ -0,0 +1,19 @@
1
+ ok: OK
2
+ save: 保存
3
+ cancel: 取消
4
+ yes: 是
5
+ no: 否
6
+ exit: 退出
7
+ delete: 删除
8
+
9
+ human_time:
10
+ after_days: 过%1天
11
+ tomorrow: 明天
12
+ after_hours: 过%1小时
13
+ after_minutes: 过%1分钟
14
+ now: 现在
15
+ today: 今天
16
+ minutes_ago: 前%1分钟
17
+ hours_ago: 前%1小时
18
+ yesterday: 昨天
19
+ days_ago: 前%1天
@@ -18,7 +18,7 @@ You should have received a copy of the GNU Lesser General Public License
18
18
  along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  =end
20
20
 
21
- require 'rubygems'
21
+ require 'ostruct'
22
22
 
23
23
  module R18n
24
24
  # Filter is a way, to process translations: escape HTML entries, convert from
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module R18n
3
- VERSION = '0.3' unless defined? R18n::VERSION
3
+ VERSION = '0.3.1' unless defined? R18n::VERSION
4
4
  end
@@ -0,0 +1,26 @@
1
+ title: Español
2
+ code: es
3
+ sublocales: [en]
4
+ direction: ltr
5
+
6
+ week:
7
+ start: monday
8
+ days: [domingo, lunes, martes, miércoles, jueves, viernes, sábado]
9
+ abbrs: [dom, lun, mar, mie, jue, mie, sab]
10
+
11
+ months:
12
+ names: [Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre ]
13
+ abbrs: [ene, feb, mar, abr, may, jun, jul, ago, sep, oct, nov, dic]
14
+ standalone: [Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre]
15
+
16
+ time:
17
+ am: AM
18
+ pm: PM
19
+ time: " %H:%M"
20
+ date: "%d/%m/%Y"
21
+ full: "%d de %B"
22
+ year: "_ de %Y"
23
+
24
+ numbers:
25
+ decimal_separator: ","
26
+ group_delimiter: "."
@@ -0,0 +1,26 @@
1
+ title: Português brasileiro
2
+ code: pt-BR
3
+ sublocales: [en]
4
+ direction: ltr
5
+
6
+ week:
7
+ start: monday
8
+ days: [domingo, segunda-feira, terça-feira, quarta-feira, quinta-feira, sexta-feira, sábado]
9
+ abbrs: [dom, seg, ter, qua, qui, sex, sab]
10
+
11
+ months:
12
+ names: [janeiro, fevereiro, março, abril, maio, junho, julho, agosto, setembro, outubro, novembro, dezembro ]
13
+ abbrs: [jan, fev, mar, abr, mai, jun, jul, ago, set, out, nov, dez]
14
+ standalone: [Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro ]
15
+
16
+ time:
17
+ am: Hs
18
+ pm: Hs
19
+ time: " %H:%M:%S"
20
+ date: "%d/%m/%Y"
21
+ full: "%d de %B"
22
+ year: "_ de %Y"
23
+
24
+ numbers:
25
+ decimal_separator: ","
26
+ group_delimiter: "."
@@ -0,0 +1,26 @@
1
+ title: 中文
2
+ code: zh
3
+ sublocales: [en]
4
+ direction: ltr
5
+
6
+ week:
7
+ start: monday
8
+ days: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
9
+ abbrs: [ 周日, 周一, 周二, 周三, 周四, 周五, 周六 ]
10
+
11
+ months:
12
+ names: [ 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
13
+ abbrs: [ 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
14
+ standalone: [ 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
15
+
16
+ time:
17
+ am: AM
18
+ pm: PM
19
+ time: " %H:%M"
20
+ date: "%Y年%m月%d日"
21
+ full: "%m月%d日"
22
+ year: "%Y年_"
23
+
24
+ numbers:
25
+ decimal_separator: "."
26
+ group_delimiter: " "
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ require 'rubygems'
2
3
  require 'pp'
3
4
 
4
5
  require File.join(File.dirname(__FILE__), '../lib/r18n-core')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-core
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "A.I." Sitnik
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-26 00:00:00 +04:00
12
+ date: 2009-10-10 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -22,15 +22,19 @@ extensions: []
22
22
  extra_rdoc_files:
23
23
  - README.rdoc
24
24
  - LICENSE
25
+ - ChangeLog
25
26
  files:
27
+ - base/pt_br.yml
26
28
  - base/ru.yml
27
29
  - base/kk.yml
28
30
  - base/fr.yml
31
+ - base/es.yml
29
32
  - base/en.yml
30
33
  - base/pl.yml
31
34
  - base/de.yml
32
35
  - base/cs.yml
33
36
  - base/eo.yml
37
+ - base/zh.yml
34
38
  - lib/r18n-core
35
39
  - lib/r18n-core/untranslated.rb
36
40
  - lib/r18n-core/translated.rb
@@ -46,8 +50,10 @@ files:
46
50
  - locales/ru.rb
47
51
  - locales/ru.yml
48
52
  - locales/en.rb
53
+ - locales/pt-br.yml
49
54
  - locales/kk.yml
50
55
  - locales/fr.yml
56
+ - locales/es.yml
51
57
  - locales/en.yml
52
58
  - locales/pl.yml
53
59
  - locales/de.yml
@@ -56,9 +62,11 @@ files:
56
62
  - locales/cs.rb
57
63
  - locales/eo.yml
58
64
  - locales/en-us.rb
65
+ - locales/zh.yml
59
66
  - locales/en-us.yml
60
67
  - locales/pl.rb
61
68
  - LICENSE
69
+ - ChangeLog
62
70
  - README.rdoc
63
71
  has_rdoc: true
64
72
  homepage: http://r18n.rubyforge.org/