ripl-i18n 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.2.1
2
+ * Add traditional chinese
3
+
1
4
  == 0.2.0
2
5
  * Auto-detect locale using $LANG
3
6
  * More translations
data/README.rdoc CHANGED
@@ -18,10 +18,25 @@ If you want to load and use your own locale:
18
18
  Ripl::I18n.load 'path/to/my_lang.yml'
19
19
  Ripl.config[:i18n_locale] = :my_lang
20
20
 
21
+ Once you've configured a locale, all messages, errors and even help will print in
22
+ that locale's language. For example, ripl's help in german:
23
+
24
+ $ LANG=de ripl -h
25
+ Benutzung: ripl [BEFEHL] [ARGUMENTE] [OPTIONEN]
26
+
27
+ Optionen:
28
+ -f Unterdrücke Laden von ~/.irbrc
29
+ -F Unterdrücke Laden von ~/.riplrc
30
+ -d, --debug Setze $DEBUG auf wahr (wie `ruby -d')
31
+ -I PATH Pfad an den Anfang des $LOAD_PATH hinzufügen. Begrenze mehrfache Pfade mit ':'
32
+ -r, --require FILE Lade Datei mittels "require" (wie `ruby -r')
33
+ -v, --version Gib Version aus
34
+ -h, --help Gib Hilfe aus
35
+
21
36
  == Contribute Your Language
22
37
 
23
38
  As I would like to make ripl available in as many languages as possible,
24
- please do add your own! Here's all you have to do:
39
+ please add your own! Here's all you have to do:
25
40
 
26
41
  * Fork this project.
27
42
  * Create a .yml file under lib/ripl/i18n/locales/ for your language.
@@ -30,7 +45,8 @@ please do add your own! Here's all you have to do:
30
45
  * Be sure to translate all the keys in lib/ripl/i18n/locales/en.yml.
31
46
 
32
47
  == Credits
33
- * janlelis for auto locale + de.yml
48
+ * janlelis for auto locale + german translation
49
+ * godfat for chinese translation
34
50
 
35
51
  == Inspiration
36
52
  http://yugui.jp/articles/863
@@ -0,0 +1,18 @@
1
+ ---
2
+ -f: 不要讀取 ~/.irbrc
3
+ -F: 不要讀取 ~/.riplrc
4
+ -d: 將 $DEBUG 設為 true (等同於 `ruby -d')
5
+ -I: 加至 $LOAD_PATH 前面。一個以上的路徑用 ':' 隔開
6
+ -r: 載入檔案 (等同於 `ruby -r')
7
+ -v: 顯示版本
8
+ -h: 顯示使用說明
9
+ run_command: `%s' 不是一個 %s 命令。
10
+ start: 未使用的引數
11
+ load_rc: 讀取 %s 時發生錯誤
12
+ parse_option: 不正確的選項
13
+ prompt: 產生提示訊息時發生錯誤
14
+ print_result: 顯示結果時發生錯誤
15
+ usage: 用法
16
+ options: 選項
17
+ args: 引數
18
+ command: 命令
@@ -1,5 +1,5 @@
1
1
  module Ripl
2
2
  module I18n
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-i18n
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
4
+ prerelease:
5
+ version: 0.2.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Gabriel Horner
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-05-07 00:00:00 -04:00
13
+ date: 2011-05-09 00:00:00 -04:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 0
32
- - 4
33
- - 1
34
24
  version: 0.4.1
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -42,11 +32,6 @@ dependencies:
42
32
  requirements:
43
33
  - - ">="
44
34
  - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 1
48
- - 1
49
- - 0
50
35
  version: 1.1.0
51
36
  type: :development
52
37
  version_requirements: *id002
@@ -58,9 +43,6 @@ dependencies:
58
43
  requirements:
59
44
  - - ">="
60
45
  - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
46
  version: "0"
65
47
  type: :development
66
48
  version_requirements: *id003
@@ -87,6 +69,7 @@ files:
87
69
  - lib/ripl/i18n/locales/de.yml
88
70
  - lib/ripl/i18n/locales/en.yml
89
71
  - lib/ripl/i18n/locales/es.yml
72
+ - lib/ripl/i18n/locales/zh.yml
90
73
  - test/fixtures/.yml
91
74
  - test/fixtures/invalid_syntax.yml
92
75
  - test/fixtures/rb.yml
@@ -104,25 +87,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
87
  requirements:
105
88
  - - ">="
106
89
  - !ruby/object:Gem::Version
107
- hash: 3
108
- segments:
109
- - 0
110
90
  version: "0"
111
91
  required_rubygems_version: !ruby/object:Gem::Requirement
112
92
  none: false
113
93
  requirements:
114
94
  - - ">="
115
95
  - !ruby/object:Gem::Version
116
- hash: 23
117
- segments:
118
- - 1
119
- - 3
120
- - 6
121
96
  version: 1.3.6
122
97
  requirements: []
123
98
 
124
99
  rubyforge_project: tagaholic
125
- rubygems_version: 1.3.7
100
+ rubygems_version: 1.6.2
126
101
  signing_key:
127
102
  specification_version: 3
128
103
  summary: A ripl plugin que habla ta langue