gettext_activerecord 2.0.4 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/COPYING CHANGED
@@ -1,5 +1,6 @@
1
- You can redistribute this program and/or modify it under either the terms of
2
- the LGPL (see the file LGPL), or the conditions below:
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the GPL
3
+ version 2 (see the file GPL), or the conditions below:
3
4
 
4
5
  1. You may make and give away verbatim copies of the source form of the
5
6
  software without restriction, provided that you duplicate all of the
@@ -16,22 +17,22 @@ the LGPL (see the file LGPL), or the conditions below:
16
17
  b) use the modified software only within your corporation or
17
18
  organization.
18
19
 
19
- c) rename any non-standard executables so the names do not conflict
20
- with standard executables, which must also be provided.
20
+ c) give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
21
22
 
22
23
  d) make other distribution arrangements with the author.
23
24
 
24
- 3. You may distribute the software in object code or executable
25
- form, provided that you do at least ONE of the following:
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
26
27
 
27
- a) distribute the executables and library files of the software,
28
+ a) distribute the binaries and library files of the software,
28
29
  together with instructions (in the manual page or equivalent)
29
30
  on where to get the original distribution.
30
31
 
31
32
  b) accompany the distribution with the machine-readable source of
32
33
  the software.
33
34
 
34
- c) give non-standard executables non-standard names, with
35
+ c) give non-standard binaries non-standard names, with
35
36
  instructions on where to get the original software distribution.
36
37
 
37
38
  d) make other distribution arrangements with the author.
data/ChangeLog CHANGED
@@ -1,3 +1,12 @@
1
+ = gettext_activerecord-2.0.5 (2009-11-11)
2
+ * make test task visible in "rake -T" [by Vladimir Dobriakov]
3
+ * Update to user column_mapping. [by hallelujah]
4
+ * Add active_record 2.3.4 support [by hallelujah]
5
+ * Update license information (explicit to use Ruby's or LGPL).
6
+ [Pointed out by Masateru Yoshikawa]
7
+ * Update to work with gettext-2.1.0.
8
+ * Fixed bugs [by hallelujah, Vladimir Dobriakov, Masao Mutoh]
9
+
1
10
  = gettext_activerecord-2.0.4 (2009-05-23)
2
11
  * Updated version/dependencies.
3
12
 
data/README.rdoc CHANGED
@@ -25,15 +25,10 @@ using Ruby-GetText-Package.
25
25
  (sudo/su on POSIX system)
26
26
  gem uninstall gettext
27
27
 
28
- #from github (edge/unstable)
28
+ #from rubyforge
29
29
  (sudo/su on POSIX system)
30
30
  gem install locale
31
- gem install mutoh-gettext -s http://gems.github.com/
32
-
33
- #from rubyforge (stable)
34
- (sudo/su on POSIX system)
35
- gem install locale
36
- gem install gettext
31
+ gem install gettext_activerecord
37
32
 
38
33
  == Usage
39
34
  === without Rails
@@ -88,15 +83,17 @@ using Ruby-GetText-Package.
88
83
  See gettext_rails [http://github.com/mutoh/gettext_rails/tree/master]
89
84
 
90
85
  == Support matrix
86
+ * gettext_activerecord-2.1.0 - rails-2.3.2,2.3.3,2.3.4
91
87
  * gettext_activerecord-2.0.2 - rails-2.3.2
92
88
  * gettext_activerecord-2.0.1 - rails-2.3.2
93
89
  * gettext_activerecord-2.0.0 - rails-2.3.2
94
90
 
95
91
  == License
96
- This program is licenced under the same licence as Ruby.
97
- (See the file 'COPYING'.)
92
+ This program is licenced under the same licence as Ruby(See COPYING) or
93
+ LGPL(Lesser General Public License: http://www.gnu.org/licenses/lgpl-3.0.txt).
98
94
 
99
95
  * Copyright (C) 2001-2009 Masao Mutoh <mutoh at highwhay.ne.jp>
96
+
100
97
  == Translators
101
98
  * Bosnian(bs) - Sanjin Sehic <saserr at gmail.com>
102
99
  * Bulgarian(bg) - Sava Chankov <sava.chankov at gmail.com>
@@ -160,7 +157,7 @@ This program is licenced under the same licence as Ruby.
160
157
  * Greek(el) - 2.0.0
161
158
  * Hungarian(hu) - 2.0.0
162
159
  * Italian(it) - 1.6.0 (old)
163
- * Japanese(ja) - 2.0.2
160
+ * Japanese(ja) - 2.1.0
164
161
  * Korean(ko) - 1.9.0 (old)
165
162
  * Latvian(lv) - 2.0.0
166
163
  * Norwegian(nb) - 2.0.0
data/Rakefile CHANGED
@@ -64,7 +64,7 @@ spec = Gem::Specification.new do |s|
64
64
  s.rubyforge_project = "gettext"
65
65
  s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|git/}
66
66
  s.require_path = 'lib'
67
- s.add_dependency('gettext', '>= 2.0.4')
67
+ s.add_dependency('gettext', '>= 2.1.0')
68
68
  s.add_dependency('activerecord', '>= 2.3.2')
69
69
  s.has_rdoc = true
70
70
  s.description = 'Localization support for ActiveRecord by Ruby-GetText-Package.'
@@ -87,7 +87,11 @@ end
87
87
  ############################################################
88
88
 
89
89
  Rake::RDocTask.new { |rdoc|
90
- allison = `allison --path`.chop
90
+ begin
91
+ allison = `allison --path`.chop
92
+ rescue
93
+ allison = ''
94
+ end
91
95
  rdoc.rdoc_dir = 'doc'
92
96
  rdoc.title = "gettext_activerecord API Reference"
93
97
  rdoc.options << '--line-numbers' << '--inline-source'
@@ -110,6 +114,7 @@ task :release => [:makemo, :package ] do
110
114
  end
111
115
 
112
116
  # Run the unit tests
117
+ desc 'Run tests'
113
118
  task :test do
114
119
  cd "test"
115
120
  Dir.glob("test_*.rb").each do |v|
@@ -0,0 +1,34 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{gettext_activerecord}
5
+ s.version = "2.0.4"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Masao Mutoh"]
9
+ s.date = %q{2009-08-20}
10
+ s.description = %q{Localization support for ActiveRecord by Ruby-GetText-Package.}
11
+ s.email = %q{mutomasa at gmail.com}
12
+ s.files = ["ChangeLog", "po/hr/gettext_activerecord.po", "po/cs/gettext_activerecord.po", "po/vi/gettext_activerecord.po", "po/nb/gettext_activerecord.po", "po/nl/gettext_activerecord.po", "po/zh/gettext_activerecord.po", "po/el/gettext_activerecord.po", "po/ko/gettext_activerecord.po", "po/gettext_activerecord.pot", "po/de/gettext_activerecord.po", "po/lv/gettext_activerecord.po", "po/hu/gettext_activerecord.po", "po/ja/gettext_activerecord.po", "po/eo/gettext_activerecord.po", "po/sr/gettext_activerecord.po", "po/es/gettext_activerecord.po", "po/bg/gettext_activerecord.po", "po/ca/gettext_activerecord.po", "po/bs/gettext_activerecord.po", "po/it/gettext_activerecord.po", "po/pt_BR/gettext_activerecord.po", "po/ua/gettext_activerecord.po", "po/ru/gettext_activerecord.po", "po/zh_TW/gettext_activerecord.po", "po/fr/gettext_activerecord.po", "po/et/gettext_activerecord.po", "sample/po/ja/sample_ar.po", "sample/po/sample_ar.pot", "sample/README.rdoc", "sample/Rakefile", "sample/sample.rb", "sample/config/database.yml", "sample/db/schema.rb", "sample/book.rb", "README.rdoc", "COPYING", "Rakefile", "lib/gettext_activerecord.rb", "lib/gettext_activerecord/migration.rb", "lib/gettext_activerecord/i18n.rb", "lib/gettext_activerecord/validations.rb", "lib/gettext_activerecord/schema_definitions.rb", "lib/gettext_activerecord/parser.rb", "lib/gettext_activerecord/version.rb", "lib/gettext_activerecord/base.rb", "lib/gettext_activerecord/tools.rb"]
13
+ s.homepage = %q{http://gettext.rubyforge.org/}
14
+ s.require_paths = ["lib"]
15
+ s.rubyforge_project = %q{gettext}
16
+ s.rubygems_version = %q{1.3.4}
17
+ s.summary = %q{Localization support for ActiveRecord by Ruby-GetText-Package.}
18
+
19
+ if s.respond_to? :specification_version then
20
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
21
+ s.specification_version = 3
22
+
23
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
24
+ s.add_runtime_dependency(%q<gettext>, [">= 2.0.4"])
25
+ s.add_runtime_dependency(%q<activerecord>, [">= 2.3.2"])
26
+ else
27
+ s.add_dependency(%q<gettext>, [">= 2.0.4"])
28
+ s.add_dependency(%q<activerecord>, [">= 2.3.2"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<gettext>, [">= 2.0.4"])
32
+ s.add_dependency(%q<activerecord>, [">= 2.3.2"])
33
+ end
34
+ end
@@ -4,7 +4,7 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
 
9
9
  =end
10
10
 
@@ -17,3 +17,8 @@ require 'gettext_activerecord/base'
17
17
  require 'gettext_activerecord/i18n'
18
18
  require 'gettext_activerecord/version'
19
19
 
20
+ class Class
21
+ def to_s_with_gettext
22
+ to_s
23
+ end
24
+ end
@@ -4,9 +4,7 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
8
-
9
- $Id$
7
+ license terms as Ruby or LGPL.
10
8
  =end
11
9
 
12
10
  module ActiveRecord #:nodoc:
@@ -4,7 +4,7 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
  =end
9
9
 
10
10
  module I18n #:nodoc:
@@ -4,7 +4,7 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
 
9
9
  =end
10
10
 
@@ -4,14 +4,13 @@
4
4
  Copyright (C) 2005-2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
 
9
- $Id$
10
9
  =end
11
10
 
12
11
  require 'gettext'
13
12
  require 'gettext/tools/rgettext'
14
- require 'gettext/parser/ruby'
13
+ require 'gettext/tools/parser/ruby'
15
14
 
16
15
  include GetText
17
16
 
@@ -45,6 +44,7 @@ module GetText
45
44
  :activerecord_classes => ["ActiveRecord::Base"],
46
45
  :untranslate_classes => ["ActiveRecord::Base", "ActiveRecord::SessionStore::Session"],
47
46
  :untranslate_columns => ["id"],
47
+ :untranslate_table_name => false,
48
48
  :use_classname => true,
49
49
  }
50
50
 
@@ -68,6 +68,7 @@ module GetText
68
68
  # * :activerecord_classes - an Array of the superclass of the models. The classes should be String value. Default is ["ActiveRecord::Base"]
69
69
  # * :untranslate_classes - an Array of the modules/class names which is ignored as the msgid.
70
70
  # * :untranslate_columns - an Array of the column names which is ignored as the msgid.
71
+ # * :untranslate_table_name - a Boolean that avoids table name to be translated if it is true ... Generally, we don't have to translate table_name, do we? Maybe it is not true..... but it is a test
71
72
  # * :adapter - the options for ActiveRecord::Base.establish_connection. If this value is set, :db_yml option is ignored.
72
73
  # * :host - ditto
73
74
  # * :username - ditto
@@ -122,15 +123,15 @@ module GetText
122
123
  klass = eval(classname, TOPLEVEL_BINDING)
123
124
  if translatable_class?(klass)
124
125
  puts "processing class #{klass.name}" if $DEBUG
125
- add_target(targets, file, ActiveSupport::Inflector.singularize(klass.table_name.gsub(/_/, " ")))
126
+ add_target(targets, file, ActiveSupport::Inflector.singularize(klass.table_name.gsub(/_/, " "))) unless @config[:untranslate_table_name]
126
127
  unless klass.class_name == classname
127
- add_target(targets, file, ActiveSupport::Inflector.singularize(classname.gsub(/_/, " ").downcase))
128
+ add_target(targets, file, ActiveSupport::Inflector.singularize(klass.to_s_with_gettext.gsub(/_/, " ").downcase))
128
129
  end
129
130
  begin
130
131
  klass.columns.each do |column|
131
132
  if translatable_column?(klass, column.name)
132
133
  if @config[:use_classname]
133
- msgid = classname + "|" + klass.human_attribute_name(column.name)
134
+ msgid = klass.to_s_with_gettext + "|" + klass.human_attribute_name(column.name)
134
135
  else
135
136
  msgid = klass.human_attribute_name(column.name)
136
137
  end
@@ -144,22 +145,16 @@ module GetText
144
145
  end
145
146
  end
146
147
  if RubyParser.target?(file)
147
- targets = RubyParser.parse(file, targets)
148
+ targets += RubyParser.parse(file)
148
149
  end
149
- targets.uniq!
150
150
  targets
151
151
  end
152
152
 
153
153
  def add_target(targets, file, msgid) # :nodoc:
154
- file_lineno = "#{file}:-"
155
- key_existed = targets.assoc(msgid)
156
- if key_existed
157
- unless targets[targets.index(key_existed)].include?(file_lineno)
158
- targets[targets.index(key_existed)] = key_existed << file_lineno
159
- end
160
- else
161
- targets << [msgid, "#{file}:-"]
162
- end
154
+ po = PoMessage.new(:normal)
155
+ po.msgid = msgid
156
+ po.sources << "#{file}:-"
157
+ targets << po
163
158
  targets
164
159
  end
165
160
 
@@ -4,7 +4,7 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
 
9
9
  =end
10
10
 
@@ -4,7 +4,7 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
  =end
9
9
 
10
10
  require 'gettext/tools'
@@ -4,9 +4,7 @@
4
4
  Copyright (C) 2006-2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
8
-
9
- $Id$
7
+ license terms as Ruby or LGPL.
10
8
  =end
11
9
 
12
10
  module ActiveRecord #:nodoc:
@@ -33,7 +31,7 @@ module ActiveRecord #:nodoc:
33
31
  end
34
32
  class << self
35
33
  def human_attribute_name_with_gettext_activerecord(attribute_key_name) #:nodoc:
36
- s_("#{self}|#{attribute_key_name.humanize}")
34
+ s_("#{self.to_s_with_gettext}|#{attribute_key_name.humanize}")
37
35
  end
38
36
  alias_method_chain :human_attribute_name, :gettext_activerecord
39
37
 
@@ -148,7 +146,9 @@ module ActiveRecord #:nodoc:
148
146
  alias_method_chain :full_messages, :gettext_activerecord
149
147
 
150
148
  private
151
- def localize_error_message(attr, obj, append_field) # :nodoc:
149
+ def localize_error_message(attr, object, append_field) # :nodoc:
150
+ obj = object.respond_to?(:message) ? object.message : object
151
+
152
152
  msgid, count, value = obj, 0, ""
153
153
  if obj.kind_of? Hash
154
154
  msgid = obj[:default].select{|v| v.is_a? String}[0]
@@ -4,9 +4,9 @@
4
4
  Copyright (C) 2009 Masao Mutoh
5
5
 
6
6
  You may redistribute it and/or modify it under the same
7
- license terms as Ruby.
7
+ license terms as Ruby or LGPL.
8
8
  =end
9
9
  module GetTextActiveRecord
10
- RAILS_VERSION = "2.3.2"
11
- VERSION = "2.0.4"
10
+ RAILS_VERSION = "2.3.4"
11
+ VERSION = "2.1.0"
12
12
  end
data/test/helper.rb CHANGED
@@ -12,7 +12,7 @@ require 'active_record'
12
12
 
13
13
  # use local gettext or current gettext gem
14
14
  begin
15
- $LOAD_PATH.unshift ENV["GETTEXT_LIB_PATH"] || "../../gettext/lib"
15
+ $LOAD_PATH.unshift ENV["GETTEXT_LIB_PATH"] || "../../gettext/lib:../"
16
16
  require 'gettext'
17
17
  rescue LoadError
18
18
  gem 'gettext', '>=2.0.0'
data/test/models/reply.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'models/topic'
2
2
 
3
- class Reply < Topic
3
+ class Reply < Topic # ActiveRecord::Base
4
4
  N_("Reply|Topic") # Need to define relation table names explicity
5
5
  # if you use it in validations.
6
6
 
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: active_record 1.0.0\n"
10
- "POT-Creation-Date: 2009-02-16 02:51+0900\n"
10
+ "POT-Creation-Date: 2009-10-08 19:08+0200\n"
11
11
  "PO-Revision-Date: 2006-08-09 01:51+0900\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,206 +16,202 @@ msgstr ""
16
16
  "Content-Transfer-Encoding: 8bit\n"
17
17
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
18
 
19
- #: fixtures/developer.rb:-
19
+ #: models/developer.rb:-
20
20
  msgid "developer"
21
21
  msgstr ""
22
22
 
23
- #: fixtures/developer.rb:-
23
+ #: models/developer.rb:-
24
24
  msgid "Developer|Name"
25
25
  msgstr ""
26
26
 
27
- #: fixtures/developer.rb:-
27
+ #: models/developer.rb:-
28
28
  msgid "Developer|Salary"
29
29
  msgstr ""
30
30
 
31
- #: fixtures/developer.rb:-
31
+ #: models/developer.rb:-
32
32
  msgid "Developer|Created at"
33
33
  msgstr ""
34
34
 
35
- #: fixtures/developer.rb:-
35
+ #: models/developer.rb:-
36
36
  msgid "Developer|Updated at"
37
37
  msgstr ""
38
38
 
39
- #: fixtures/developer.rb:2
39
+ #: models/developer.rb:2
40
40
  msgid "Developer|Non existent"
41
41
  msgstr ""
42
42
 
43
- #: fixtures/topic.rb:- fixtures/reply.rb:-
43
+ #: models/topic.rb:- models/reply.rb:-
44
44
  msgid "topic"
45
45
  msgstr ""
46
46
 
47
- #: fixtures/topic.rb:-
47
+ #: models/topic.rb:-
48
48
  msgid "Topic|Title"
49
49
  msgstr ""
50
50
 
51
- #: fixtures/topic.rb:-
51
+ #: models/topic.rb:-
52
52
  msgid "Topic|Author name"
53
53
  msgstr ""
54
54
 
55
- #: fixtures/topic.rb:-
55
+ #: models/topic.rb:-
56
56
  msgid "Topic|Author email address"
57
57
  msgstr ""
58
58
 
59
- #: fixtures/topic.rb:-
59
+ #: models/topic.rb:-
60
60
  msgid "Topic|Written on"
61
61
  msgstr ""
62
62
 
63
- #: fixtures/topic.rb:-
63
+ #: models/topic.rb:-
64
64
  msgid "Topic|Bonus time"
65
65
  msgstr ""
66
66
 
67
- #: fixtures/topic.rb:-
67
+ #: models/topic.rb:-
68
68
  msgid "Topic|Last read"
69
69
  msgstr ""
70
70
 
71
- #: fixtures/topic.rb:-
71
+ #: models/topic.rb:-
72
72
  msgid "Topic|Content"
73
73
  msgstr ""
74
74
 
75
- #: fixtures/topic.rb:-
75
+ #: models/topic.rb:-
76
76
  msgid "Topic|Approved"
77
77
  msgstr ""
78
78
 
79
- #: fixtures/topic.rb:-
79
+ #: models/topic.rb:-
80
80
  msgid "Topic|Replies count"
81
81
  msgstr ""
82
82
 
83
- #: fixtures/topic.rb:-
83
+ #: models/topic.rb:-
84
84
  msgid "Topic|Parent"
85
85
  msgstr ""
86
86
 
87
- #: fixtures/topic.rb:-
87
+ #: models/topic.rb:-
88
88
  msgid "Topic|Type"
89
89
  msgstr ""
90
90
 
91
- #: fixtures/topic.rb:35
91
+ #: models/topic.rb:35
92
92
  msgid "Topic|Terms of service"
93
93
  msgstr ""
94
94
 
95
- #: fixtures/topic.rb:36 test_validations.rb:523
95
+ #: models/topic.rb:36 test_validations.rb:503
96
96
  msgid "must be abided"
97
97
  msgstr ""
98
98
 
99
- #: fixtures/reply.rb:-
99
+ #: models/reply.rb:-
100
100
  msgid "reply"
101
101
  msgstr ""
102
102
 
103
- #: fixtures/reply.rb:-
103
+ #: models/reply.rb:-
104
104
  msgid "Reply|Title"
105
105
  msgstr ""
106
106
 
107
- #: fixtures/reply.rb:-
107
+ #: models/reply.rb:-
108
108
  msgid "Reply|Author name"
109
109
  msgstr ""
110
110
 
111
- #: fixtures/reply.rb:-
111
+ #: models/reply.rb:-
112
112
  msgid "Reply|Author email address"
113
113
  msgstr ""
114
114
 
115
- #: fixtures/reply.rb:-
115
+ #: models/reply.rb:-
116
116
  msgid "Reply|Written on"
117
117
  msgstr ""
118
118
 
119
- #: fixtures/reply.rb:-
119
+ #: models/reply.rb:-
120
120
  msgid "Reply|Bonus time"
121
121
  msgstr ""
122
122
 
123
- #: fixtures/reply.rb:-
123
+ #: models/reply.rb:-
124
124
  msgid "Reply|Last read"
125
125
  msgstr ""
126
126
 
127
- #: fixtures/reply.rb:-
127
+ #: models/reply.rb:-
128
128
  msgid "Reply|Content"
129
129
  msgstr ""
130
130
 
131
- #: fixtures/reply.rb:-
131
+ #: models/reply.rb:-
132
132
  msgid "Reply|Approved"
133
133
  msgstr ""
134
134
 
135
- #: fixtures/reply.rb:-
135
+ #: models/reply.rb:-
136
136
  msgid "Reply|Replies count"
137
137
  msgstr ""
138
138
 
139
- #: fixtures/reply.rb:-
139
+ #: models/reply.rb:-
140
140
  msgid "Reply|Parent"
141
141
  msgstr ""
142
142
 
143
- #: fixtures/reply.rb:-
143
+ #: models/reply.rb:-
144
144
  msgid "Reply|Type"
145
145
  msgstr ""
146
146
 
147
- #: fixtures/reply.rb:-
147
+ #: models/reply.rb:-
148
148
  msgid "sillyreply"
149
149
  msgstr ""
150
150
 
151
- #: fixtures/reply.rb:-
151
+ #: models/reply.rb:-
152
152
  msgid "SillyReply|Title"
153
153
  msgstr ""
154
154
 
155
- #: fixtures/reply.rb:-
155
+ #: models/reply.rb:-
156
156
  msgid "SillyReply|Author name"
157
157
  msgstr ""
158
158
 
159
- #: fixtures/reply.rb:-
159
+ #: models/reply.rb:-
160
160
  msgid "SillyReply|Author email address"
161
161
  msgstr ""
162
162
 
163
- #: fixtures/reply.rb:-
163
+ #: models/reply.rb:-
164
164
  msgid "SillyReply|Written on"
165
165
  msgstr ""
166
166
 
167
- #: fixtures/reply.rb:-
167
+ #: models/reply.rb:-
168
168
  msgid "SillyReply|Bonus time"
169
169
  msgstr ""
170
170
 
171
- #: fixtures/reply.rb:-
171
+ #: models/reply.rb:-
172
172
  msgid "SillyReply|Last read"
173
173
  msgstr ""
174
174
 
175
- #: fixtures/reply.rb:-
175
+ #: models/reply.rb:-
176
176
  msgid "SillyReply|Content"
177
177
  msgstr ""
178
178
 
179
- #: fixtures/reply.rb:-
179
+ #: models/reply.rb:-
180
180
  msgid "SillyReply|Approved"
181
181
  msgstr ""
182
182
 
183
- #: fixtures/reply.rb:-
183
+ #: models/reply.rb:-
184
184
  msgid "SillyReply|Replies count"
185
185
  msgstr ""
186
186
 
187
- #: fixtures/reply.rb:-
187
+ #: models/reply.rb:-
188
188
  msgid "SillyReply|Parent"
189
189
  msgstr ""
190
190
 
191
- #: fixtures/reply.rb:-
191
+ #: models/reply.rb:-
192
192
  msgid "SillyReply|Type"
193
193
  msgstr ""
194
194
 
195
- #: fixtures/reply.rb:4
195
+ #: models/reply.rb:4
196
196
  msgid "Reply|Topic"
197
197
  msgstr ""
198
198
 
199
- #: fixtures/reply.rb:16 fixtures/reply.rb:20
199
+ #: models/reply.rb:16 models/reply.rb:20
200
200
  msgid "Empty"
201
201
  msgstr ""
202
202
 
203
- #: fixtures/reply.rb:25
203
+ #: models/reply.rb:25
204
204
  msgid "is Content Mismatch"
205
205
  msgstr ""
206
206
 
207
- #: fixtures/reply.rb:30
207
+ #: models/reply.rb:30
208
208
  msgid "is Wrong Create"
209
209
  msgstr ""
210
210
 
211
- #: fixtures/reply.rb:34
211
+ #: models/reply.rb:34
212
212
  msgid "is Wrong Update"
213
213
  msgstr ""
214
214
 
215
- #: test_validations.rb:-
216
- msgid "course"
217
- msgstr ""
218
-
219
215
  #: test_validations.rb:-
220
216
  msgid "inept wizard"
221
217
  msgstr ""
@@ -232,6 +228,14 @@ msgstr ""
232
228
  msgid "IneptWizard|Type"
233
229
  msgstr ""
234
230
 
231
+ #: test_validations.rb:-
232
+ msgid "IneptWizard|Created at"
233
+ msgstr ""
234
+
235
+ #: test_validations.rb:-
236
+ msgid "IneptWizard|Updated at"
237
+ msgstr ""
238
+
235
239
  #: test_validations.rb:-
236
240
  msgid "person"
237
241
  msgstr ""
@@ -248,6 +252,14 @@ msgstr ""
248
252
  msgid "ProtectedPerson|Lock version"
249
253
  msgstr ""
250
254
 
255
+ #: test_validations.rb:-
256
+ msgid "ProtectedPerson|Created at"
257
+ msgstr ""
258
+
259
+ #: test_validations.rb:-
260
+ msgid "ProtectedPerson|Updated at"
261
+ msgstr ""
262
+
251
263
  #: test_validations.rb:-
252
264
  msgid "conjurer"
253
265
  msgstr ""
@@ -264,6 +276,14 @@ msgstr ""
264
276
  msgid "Conjurer|Type"
265
277
  msgstr ""
266
278
 
279
+ #: test_validations.rb:-
280
+ msgid "Conjurer|Created at"
281
+ msgstr ""
282
+
283
+ #: test_validations.rb:-
284
+ msgid "Conjurer|Updated at"
285
+ msgstr ""
286
+
267
287
  #: test_validations.rb:-
268
288
  msgid "thaumaturgist"
269
289
  msgstr ""
@@ -280,109 +300,117 @@ msgstr ""
280
300
  msgid "Thaumaturgist|Type"
281
301
  msgstr ""
282
302
 
283
- #: test_validations.rb:409
303
+ #: test_validations.rb:-
304
+ msgid "Thaumaturgist|Created at"
305
+ msgstr ""
306
+
307
+ #: test_validations.rb:-
308
+ msgid "Thaumaturgist|Updated at"
309
+ msgstr ""
310
+
311
+ #: test_validations.rb:389
284
312
  msgid "gotcha"
285
313
  msgstr ""
286
314
 
287
- #: test_validations.rb:501
315
+ #: test_validations.rb:481
288
316
  msgid "%{fn} must be abided"
289
317
  msgstr ""
290
318
 
291
- #: test_validations.rb:719 test_validations.rb:773
319
+ #: test_validations.rb:699 test_validations.rb:753
292
320
  msgid "%{fn} is bad data"
293
321
  msgstr ""
294
322
 
295
- #: test_validations.rb:740 test_validations.rb:825
323
+ #: test_validations.rb:720 test_validations.rb:805
296
324
  msgid "is bad data"
297
325
  msgstr ""
298
326
 
299
- #: test_validations.rb:877
327
+ #: test_validations.rb:857
300
328
  msgid "%{fn} can not be %{val}"
301
329
  msgstr ""
302
330
 
303
- #: test_validations.rb:891
331
+ #: test_validations.rb:871
304
332
  msgid "can not be %{val}"
305
333
  msgstr ""
306
334
 
307
- #: test_validations.rb:939
335
+ #: test_validations.rb:919
308
336
  msgid "%{fn} option %{val} is not in the list"
309
337
  msgstr ""
310
338
 
311
- #: test_validations.rb:961
339
+ #: test_validations.rb:941
312
340
  msgid "option %{val} is not in the list"
313
341
  msgstr ""
314
342
 
315
- #: test_validations.rb:991
343
+ #: test_validations.rb:971
316
344
  msgid "%{fn} option %{val} is restricted"
317
345
  msgstr ""
318
346
 
319
- #: test_validations.rb:1013
347
+ #: test_validations.rb:993
320
348
  msgid "option %{val} is restricted"
321
349
  msgstr ""
322
350
 
323
- #: test_validations.rb:1129 test_validations.rb:1165
351
+ #: test_validations.rb:1109 test_validations.rb:1145
324
352
  msgid "my string(%{fn}) is too short: %d"
325
353
  msgstr ""
326
354
 
327
- #: test_validations.rb:1129 test_validations.rb:1165
355
+ #: test_validations.rb:1109 test_validations.rb:1145
328
356
  msgid "my string(%{fn}) is too long: %d"
329
357
  msgstr ""
330
358
 
331
- #: test_validations.rb:1147 test_validations.rb:1191
359
+ #: test_validations.rb:1127 test_validations.rb:1171
332
360
  msgid "my string is too short: %d"
333
361
  msgstr ""
334
362
 
335
- #: test_validations.rb:1147 test_validations.rb:1191
363
+ #: test_validations.rb:1127 test_validations.rb:1171
336
364
  msgid "my string is too long: %d"
337
365
  msgstr ""
338
366
 
339
- #: test_validations.rb:1250
367
+ #: test_validations.rb:1230
340
368
  msgid "%{fn} %d dayo"
341
369
  msgstr ""
342
370
 
343
- #: test_validations.rb:1267
371
+ #: test_validations.rb:1247
344
372
  msgid "%d dayo"
345
373
  msgstr ""
346
374
 
347
- #: test_validations.rb:1293 test_validations.rb:1327 test_validations.rb:1363
348
- #: test_validations.rb:1398 test_validations.rb:1434 test_validations.rb:2009
349
- #: test_validations.rb:2048 test_validations.rb:2111 test_validations.rb:2151
350
- #: test_validations.rb:2177 test_validations.rb:2235 test_validations.rb:2274
375
+ #: test_validations.rb:1273 test_validations.rb:1307 test_validations.rb:1343
376
+ #: test_validations.rb:1378 test_validations.rb:1414 test_validations.rb:1989
377
+ #: test_validations.rb:2028 test_validations.rb:2091 test_validations.rb:2131
378
+ #: test_validations.rb:2157 test_validations.rb:2215 test_validations.rb:2254
351
379
  msgid "%{fn} hoo %d"
352
380
  msgstr ""
353
381
 
354
- #: test_validations.rb:1310 test_validations.rb:1345 test_validations.rb:1381
355
- #: test_validations.rb:1416 test_validations.rb:1451 test_validations.rb:1468
356
- #: test_validations.rb:1485 test_validations.rb:2029 test_validations.rb:2067
357
- #: test_validations.rb:2092 test_validations.rb:2131 test_validations.rb:2197
358
- #: test_validations.rb:2217 test_validations.rb:2254 test_validations.rb:2294
382
+ #: test_validations.rb:1290 test_validations.rb:1325 test_validations.rb:1361
383
+ #: test_validations.rb:1396 test_validations.rb:1431 test_validations.rb:1448
384
+ #: test_validations.rb:1465 test_validations.rb:2009 test_validations.rb:2047
385
+ #: test_validations.rb:2072 test_validations.rb:2111 test_validations.rb:2177
386
+ #: test_validations.rb:2197 test_validations.rb:2234 test_validations.rb:2274
359
387
  msgid "hoo %d"
360
388
  msgstr ""
361
389
 
362
- #: test_validations.rb:1525
390
+ #: test_validations.rb:1505
363
391
  msgid "%{fn} will never be valid"
364
392
  msgstr ""
365
393
 
366
- #: test_validations.rb:1542
394
+ #: test_validations.rb:1522
367
395
  msgid "will never be valid"
368
396
  msgstr ""
369
397
 
370
- #: test_validations.rb:1566 test_validations.rb:1612 test_validations.rb:1695
371
- #: test_validations.rb:1741 test_validations.rb:1780 test_validations.rb:1818
372
- #: test_validations.rb:1863 test_validations.rb:1899 test_validations.rb:1946
398
+ #: test_validations.rb:1546 test_validations.rb:1592 test_validations.rb:1675
399
+ #: test_validations.rb:1721 test_validations.rb:1760 test_validations.rb:1798
400
+ #: test_validations.rb:1843 test_validations.rb:1879 test_validations.rb:1926
373
401
  msgid "%{fn} contains 'single' and \"double\" quotes"
374
402
  msgstr ""
375
403
 
376
- #: test_validations.rb:1589 test_validations.rb:1637 test_validations.rb:1718
377
- #: test_validations.rb:1764 test_validations.rb:1802 test_validations.rb:1840
378
- #: test_validations.rb:1886 test_validations.rb:1923 test_validations.rb:1977
404
+ #: test_validations.rb:1569 test_validations.rb:1617 test_validations.rb:1698
405
+ #: test_validations.rb:1744 test_validations.rb:1782 test_validations.rb:1820
406
+ #: test_validations.rb:1866 test_validations.rb:1903 test_validations.rb:1957
379
407
  msgid "This string contains 'single' and \"double\" quotes"
380
408
  msgstr ""
381
409
 
382
- #: test_validations.rb:2548
410
+ #: test_validations.rb:2517
383
411
  msgid "smaller than %{count}"
384
412
  msgstr ""
385
413
 
386
- #: test_validations.rb:2555
414
+ #: test_validations.rb:2524
387
415
  msgid "greater than %{count}"
388
416
  msgstr ""