r18n-core 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts ADDED
@@ -0,0 +1,4 @@
1
+ --charset utf-8
2
+ -
3
+ README.rdoc
4
+ ChangeLog
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.4.14 (üç)
2
+ * Fix support for Ruby 1.9.3.
3
+ * Added Turkish locale (by Ahmet Özkaya).
4
+ * Fix Swedish locale (by Pär Wieslander).
5
+
1
6
  == 0.4.13 (Sti)
2
7
  * Fix Pathname to String error in r18n-desktop.
3
8
  * Add Norwegian locale (by Oddmund Strømme).
data/Gemfile.lock CHANGED
@@ -1,29 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- r18n-core (0.4.13)
4
+ r18n-core (0.4.14)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- RedCloth (4.2.7)
10
- diff-lcs (1.1.2)
11
- haml (2.2.24)
12
- hanna (0.1.12)
13
- haml (~> 2.2.8)
14
- rake (~> 0.8.2)
15
- rdoc (~> 2.3.0)
9
+ RedCloth (4.2.9)
10
+ diff-lcs (1.1.3)
16
11
  maruku (0.6.0)
17
12
  syntax (>= 1.0.0)
18
- psych (1.2.0)
19
- rake (0.8.7)
20
- rcov (0.9.9)
21
- rdoc (2.3.0)
22
- rspec-core (2.5.1)
23
- rspec-expectations (2.5.0)
13
+ psych (1.2.2)
14
+ rake (0.9.2.2)
15
+ rspec-core (2.8.0)
16
+ rspec-expectations (2.8.0)
24
17
  diff-lcs (~> 1.1.2)
25
- rspec-mocks (2.5.0)
18
+ rspec-mocks (2.8.0)
26
19
  syntax (1.0.0)
20
+ yard (0.7.4)
27
21
 
28
22
  PLATFORMS
29
23
  ruby
@@ -31,12 +25,11 @@ PLATFORMS
31
25
  DEPENDENCIES
32
26
  RedCloth
33
27
  bundler (>= 1.0.10)
34
- hanna
35
28
  maruku
36
29
  psych
37
30
  r18n-core!
38
31
  rake (>= 0, != 0.9.0)
39
- rcov
40
32
  rspec-core
41
33
  rspec-expectations
42
34
  rspec-mocks
35
+ yard
data/Rakefile CHANGED
@@ -9,12 +9,6 @@ rescue LoadError
9
9
  puts "Bundler not available. Install it with: gem install bundler"
10
10
  end
11
11
 
12
- begin
13
- require 'hanna/rdoctask'
14
- rescue LoadError
15
- require 'rake/rdoctask'
16
- end
17
-
18
12
  PKG_NAME = 'r18n-core'.freeze
19
13
  require File.join(File.dirname(__FILE__), 'lib/r18n-core/version')
20
14
 
@@ -27,24 +21,17 @@ task :spec_syck do
27
21
  sh "#{RUBY} -S rake spec", :verbose => false
28
22
  end
29
23
 
30
- RSpec::Core::RakeTask.new('rcov') do |t|
31
- t.rcov = true
32
- t.ruby_opts = '-w'
33
- t.rcov_opts = ['--text-summary', '--charset UTF-8', '-x gem']
24
+ require 'yard'
25
+ YARD::Rake::YardocTask.new do |yard|
26
+ yard.options << "--title='R18n #{R18n::VERSION}'"
34
27
  end
35
28
 
36
- Rake::RDocTask.new do |rdoc|
37
- rdoc.main = 'README.rdoc'
38
- rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'ChangeLog', 'lib/**/*.rb')
39
- rdoc.title = "R18n #{R18n::VERSION} Documentation"
40
- rdoc.rdoc_dir = 'doc'
41
- rdoc.options << '-c utf-8'
42
- rdoc.options << '--all'
29
+ task :clobber_doc do
30
+ rm_r 'doc' rescue nil
43
31
  end
44
-
45
32
  task :clobber_package do
46
33
  rm_r 'pkg' rescue nil
47
34
  end
48
- task :clobber => [:clobber_package]
35
+ task :clobber => [:clobber_package, :clobber_doc]
49
36
 
50
37
  task :default => :spec
data/base/tr.yml ADDED
@@ -0,0 +1,19 @@
1
+ ok: 'Tamam'
2
+ save: 'Kaydet'
3
+ cancel: 'İptal'
4
+ 'yes': 'Evet'
5
+ 'no': 'Hayır'
6
+ exit: 'Çık'
7
+ delete: 'Sil'
8
+
9
+ human_time:
10
+ after_days: '%1 gün sonra'
11
+ tomorrow: 'yarın'
12
+ after_hours: '%1 saat sonra'
13
+ after_minutes: '%1 dakika sonra'
14
+ now: 'şimdi'
15
+ today: 'bugün'
16
+ minutes_ago: '%1 dakika önce'
17
+ hours_ago: '%1 saat önce'
18
+ yesterday: 'dün'
19
+ days_ago: '%1 gün önce'
@@ -23,8 +23,12 @@ module R18n
23
23
  module Utils
24
24
  # Convert Time to Date. Backport from Ruby 1.9.
25
25
  def self.to_date(time)
26
- jd = Date.send(:civil_to_jd, time.year, time.mon, time.mday, Date::ITALY)
27
- Date.new!(Date.send(:jd_to_ajd, jd, 0, 0), 0, Date::ITALY)
26
+ if '1.8.' == RUBY_VERSION[0..3]
27
+ d = Date.send(:civil_to_jd, time.year, time.mon, time.mday, Date::ITALY)
28
+ Date.new!(Date.send(:jd_to_ajd, d, 0, 0), 0, Date::ITALY)
29
+ else
30
+ time.to_date
31
+ end
28
32
  end
29
33
 
30
34
  HTML_ENTRIES = { '&' => '&amp;', '<' => '&lt;', '>' => '&gt;' }
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module R18n
3
- VERSION = '0.4.13'.freeze unless defined? R18n::VERSION
3
+ VERSION = '0.4.14'.freeze unless defined? R18n::VERSION
4
4
  end
data/locales/sv-se.rb CHANGED
@@ -10,7 +10,7 @@ module R18n
10
10
  :wday_abbrs => %w{sön mån tis ons tor fre lör},
11
11
 
12
12
  :month_names => %w{januari februari mars april maj juni juli augusti
13
- september october november december},
13
+ september oktober november december},
14
14
  :month_abbrs => %w{jan feb mar apr maj jun jul aug okt nov dec},
15
15
 
16
16
  :date_format => '%Y-%m-%d',
data/locales/tr.rb ADDED
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ module R18n
3
+ class Locales::Tr < Locale
4
+ set :title => 'Türkçe',
5
+
6
+ :week_start => :monday,
7
+ :wday_names => %w{Pazar Pazartesi Salı Çarşamba Perşembe Cuma
8
+ Cumartesi},
9
+ :wday_abbrs => %w{Paz Pzt Sal Çar Per Cum Cmt},
10
+
11
+ :month_names => %w{Ocak Şubat Mart Nisan Mayıs Haziran Temmuz
12
+ Ağustos Eylül Ekim Kasım Aralık},
13
+ :month_abbrs => %w{Oca Şub Mar Nis May Haz Tem Ağu Eyl Eki Kas Ara},
14
+
15
+ :date_format => '%d.%m.%Y',
16
+ :full_format => '%B %e.',
17
+ :year_format => '%Y. _',
18
+ :time_format => '%H:%M',
19
+
20
+ :number_decimal => ".",
21
+ :number_group => ","
22
+
23
+
24
+ end
25
+ end
data/r18n-core.gemspec CHANGED
@@ -24,13 +24,12 @@ Gem::Specification.new do |s|
24
24
  s.homepage = 'http://r18n.rubyforge.org/'
25
25
  s.rubyforge_project = 'r18n-core'
26
26
 
27
- s.add_development_dependency "bundler", [">= 1.0.10"]
28
- s.add_development_dependency "hanna", [">= 0"]
29
- s.add_development_dependency "rake", [">= 0", "!= 0.9.0"]
30
- s.add_development_dependency "rspec-core", [">= 0"]
27
+ s.add_development_dependency "bundler", [">= 1.0.10"]
28
+ s.add_development_dependency "yard", [">= 0"]
29
+ s.add_development_dependency "rake", [">= 0", "!= 0.9.0"]
30
+ s.add_development_dependency "rspec-core", [">= 0"]
31
31
  s.add_development_dependency "rspec-expectations", [">= 0"]
32
- s.add_development_dependency "rspec-mocks", [">= 0"]
33
- s.add_development_dependency "rcov", [">= 0"]
34
- s.add_development_dependency "maruku", [">= 0"]
35
- s.add_development_dependency "RedCloth", [">= 0"]
32
+ s.add_development_dependency "rspec-mocks", [">= 0"]
33
+ s.add_development_dependency "maruku", [">= 0"]
34
+ s.add_development_dependency "RedCloth", [">= 0"]
36
35
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 13
10
- version: 0.4.13
9
+ - 14
10
+ version: 0.4.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrey "A.I." Sitnik
@@ -15,12 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-10 00:00:00 Z
18
+ date: 2012-01-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :development
22
22
  name: bundler
23
- prerelease: false
24
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
@@ -32,11 +31,11 @@ dependencies:
32
31
  - 0
33
32
  - 10
34
33
  version: 1.0.10
34
+ prerelease: false
35
35
  requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
37
  type: :development
38
- name: hanna
39
- prerelease: false
38
+ name: yard
40
39
  version_requirements: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
@@ -46,11 +45,11 @@ dependencies:
46
45
  segments:
47
46
  - 0
48
47
  version: "0"
48
+ prerelease: false
49
49
  requirement: *id002
50
50
  - !ruby/object:Gem::Dependency
51
51
  type: :development
52
52
  name: rake
53
- prerelease: false
54
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
55
54
  none: false
56
55
  requirements:
@@ -68,11 +67,11 @@ dependencies:
68
67
  - 9
69
68
  - 0
70
69
  version: 0.9.0
70
+ prerelease: false
71
71
  requirement: *id003
72
72
  - !ruby/object:Gem::Dependency
73
73
  type: :development
74
74
  name: rspec-core
75
- prerelease: false
76
75
  version_requirements: &id004 !ruby/object:Gem::Requirement
77
76
  none: false
78
77
  requirements:
@@ -82,11 +81,11 @@ dependencies:
82
81
  segments:
83
82
  - 0
84
83
  version: "0"
84
+ prerelease: false
85
85
  requirement: *id004
86
86
  - !ruby/object:Gem::Dependency
87
87
  type: :development
88
88
  name: rspec-expectations
89
- prerelease: false
90
89
  version_requirements: &id005 !ruby/object:Gem::Requirement
91
90
  none: false
92
91
  requirements:
@@ -96,11 +95,11 @@ dependencies:
96
95
  segments:
97
96
  - 0
98
97
  version: "0"
98
+ prerelease: false
99
99
  requirement: *id005
100
100
  - !ruby/object:Gem::Dependency
101
101
  type: :development
102
102
  name: rspec-mocks
103
- prerelease: false
104
103
  version_requirements: &id006 !ruby/object:Gem::Requirement
105
104
  none: false
106
105
  requirements:
@@ -110,11 +109,11 @@ dependencies:
110
109
  segments:
111
110
  - 0
112
111
  version: "0"
112
+ prerelease: false
113
113
  requirement: *id006
114
114
  - !ruby/object:Gem::Dependency
115
115
  type: :development
116
- name: rcov
117
- prerelease: false
116
+ name: maruku
118
117
  version_requirements: &id007 !ruby/object:Gem::Requirement
119
118
  none: false
120
119
  requirements:
@@ -124,11 +123,11 @@ dependencies:
124
123
  segments:
125
124
  - 0
126
125
  version: "0"
126
+ prerelease: false
127
127
  requirement: *id007
128
128
  - !ruby/object:Gem::Dependency
129
129
  type: :development
130
- name: maruku
131
- prerelease: false
130
+ name: RedCloth
132
131
  version_requirements: &id008 !ruby/object:Gem::Requirement
133
132
  none: false
134
133
  requirements:
@@ -138,21 +137,8 @@ dependencies:
138
137
  segments:
139
138
  - 0
140
139
  version: "0"
141
- requirement: *id008
142
- - !ruby/object:Gem::Dependency
143
- type: :development
144
- name: RedCloth
145
140
  prerelease: false
146
- version_requirements: &id009 !ruby/object:Gem::Requirement
147
- none: false
148
- requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- hash: 3
152
- segments:
153
- - 0
154
- version: "0"
155
- requirement: *id009
141
+ requirement: *id008
156
142
  description: " R18n is a i18n tool to translate your Ruby application.\n It has nice Ruby-style syntax, filters, flexible locales, custom loaders,\n translation support for any classes, time and number localization, several\n user language support, agnostic core package with out-of-box support for\n Rails, Sinatra, Merb and desktop applications.\n"
157
143
  email: andrey@sitnik.ru
158
144
  executables: []
@@ -165,6 +151,7 @@ extra_rdoc_files:
165
151
  - ChangeLog
166
152
  files:
167
153
  - .rspec
154
+ - .yardopts
168
155
  - ChangeLog
169
156
  - Gemfile
170
157
  - Gemfile.lock
@@ -194,6 +181,7 @@ files:
194
181
  - base/sk.yml
195
182
  - base/sv-se.yml
196
183
  - base/th.yml
184
+ - base/tr.yml
197
185
  - base/uk.yml
198
186
  - base/zh.yml
199
187
  - lib/r18n-core.rb
@@ -236,6 +224,7 @@ files:
236
224
  - locales/sk.rb
237
225
  - locales/sv-se.rb
238
226
  - locales/th.rb
227
+ - locales/tr.rb
239
228
  - locales/uk.rb
240
229
  - locales/zh.rb
241
230
  - r18n-core.gemspec
@@ -301,3 +290,4 @@ specification_version: 3
301
290
  summary: I18n tool to translate your Ruby application.
302
291
  test_files: []
303
292
 
293
+ has_rdoc: