r18n-desktop 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -5
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -18,9 +18,9 @@ information.
|
|
18
18
|
pluralization (“1 comment”, “5 comments”) in your translation.
|
19
19
|
|
20
20
|
== How To
|
21
|
-
1. Create translations dir. For example: <tt
|
21
|
+
1. Create translations dir. For example: <tt>./i18n/</tt>.
|
22
22
|
2. Add file with translation in some language. For example
|
23
|
-
<tt
|
23
|
+
<tt>./i18n/en.yml</tt>:
|
24
24
|
|
25
25
|
file:
|
26
26
|
add: Add file
|
@@ -35,16 +35,15 @@ information.
|
|
35
35
|
|
36
36
|
3. Add R18n to your application:
|
37
37
|
|
38
|
-
require 'rubygems'
|
39
38
|
require 'r18n-desktop'
|
40
39
|
|
41
40
|
4. Load I18n object:
|
42
41
|
|
43
|
-
i18n = R18n.from_env '
|
42
|
+
i18n = R18n.from_env 'i18n/'
|
44
43
|
|
45
44
|
Or, if user can optional set locale manually:
|
46
45
|
|
47
|
-
i18n = R18n.from_env '
|
46
|
+
i18n = R18n.from_env 'i18n/', manual_locale
|
48
47
|
|
49
48
|
5. Use translation messages to user. For example:
|
50
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r18n-desktop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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-
|
12
|
+
date: 2009-06-25 00:00:00 +04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.2.
|
23
|
+
version: 0.2.2
|
24
24
|
version:
|
25
25
|
description: A tool to translate your desktop application in several languages. It is just a wrap for R18n core library. It can format numbers and time to the rules of the user locale, has translation for common words, storage translation in YAML format with pluralization and procedures and has special support for countries with two official languages.
|
26
26
|
email: andrey@sitnik.ru
|
@@ -34,8 +34,8 @@ extra_rdoc_files:
|
|
34
34
|
files:
|
35
35
|
- lib/r18n-desktop
|
36
36
|
- lib/r18n-desktop/java.rb
|
37
|
-
- lib/r18n-desktop/posix.rb
|
38
37
|
- lib/r18n-desktop/win32.rb
|
38
|
+
- lib/r18n-desktop/posix.rb
|
39
39
|
- lib/r18n-desktop.rb
|
40
40
|
- LICENSE
|
41
41
|
- README.rdoc
|
@@ -66,5 +66,5 @@ signing_key:
|
|
66
66
|
specification_version: 2
|
67
67
|
summary: A tool to translate your Ruby desktop application.
|
68
68
|
test_files:
|
69
|
-
- spec/r18n-desktop_spec.rb
|
70
69
|
- spec/spec_helper.rb
|
70
|
+
- spec/r18n-desktop_spec.rb
|