Commit 9697ba24f181b0691adf736708e87a35b6f5ad00
1 parent
5c3c255b
Exists in
master
and in
29 other branches
Don't mark strings from Ruby-Gettext to translate
Showing
1 changed file
with
14 additions
and
14 deletions
Show diff stats
lib/noosfero/i18n.rb
... | ... | @@ -8,18 +8,18 @@ end |
8 | 8 | |
9 | 9 | class ActiveRecord::Errors |
10 | 10 | default_error_messages.update( |
11 | - :inclusion => N_("%{fn} is not included in the list"), | |
12 | - :exclusion => N_("%{fn} is reserved"), | |
13 | - :invalid => N_("%{fn} is invalid"), | |
14 | - :confirmation => N_("%{fn} doesn't match confirmation"), | |
15 | - :accepted => N_("%{fn} must be accepted"), | |
16 | - :empty => N_("%{fn} can't be empty"), | |
17 | - :blank => N_("%{fn} can't be blank"), | |
18 | - :too_long => N_("%{fn} is too long (maximum is %d characters)"), | |
19 | - :too_short => N_("%{fn} is too short (minimum is %d characters)"), | |
20 | - :wrong_length => N_("%{fn} is the wrong length (should be %d characters)"), | |
21 | - :taken => N_("%{fn} has already been taken"), | |
22 | - :not_a_number => N_("%{fn} is not a number") | |
11 | + :inclusion => "%{fn} is not included in the list", | |
12 | + :exclusion => "%{fn} is reserved", | |
13 | + :invalid => "%{fn} is invalid", | |
14 | + :confirmation => "%{fn} doesn't match confirmation", | |
15 | + :accepted => "%{fn} must be accepted", | |
16 | + :empty => "%{fn} can't be empty", | |
17 | + :blank => "%{fn} can't be blank", | |
18 | + :too_long => "%{fn} is too long (maximum is %d characters)", | |
19 | + :too_short => "%{fn} is too short (minimum is %d characters)", | |
20 | + :wrong_length => "%{fn} is the wrong length (should be %d characters)", | |
21 | + :taken => "%{fn} has already been taken", | |
22 | + :not_a_number => "%{fn} is not a number" | |
23 | 23 | ) |
24 | 24 | |
25 | 25 | def localize_error_messages |
... | ... | @@ -55,8 +55,8 @@ end |
55 | 55 | |
56 | 56 | module ActionView::Helpers::ActiveRecordHelper |
57 | 57 | module L10n |
58 | - @error_message_title = Nn_("%{num} error prohibited this %{record} from being saved", "%{num} errors prohibited this %{record} from being saved").flatten | |
59 | - @error_message_explanation = Nn_("There was a problem with the following field:", "There were problems with the following fields:").flatten | |
58 | + @error_message_title = ["%{num} error prohibited this %{record} from being saved", "%{num} errors prohibited this %{record} from being saved"] | |
59 | + @error_message_explanation = ["There was a problem with the following field:", "There were problems with the following fields:"] | |
60 | 60 | module_function |
61 | 61 | def error_messages_for(instance, objects, object_names, count, options) |
62 | 62 | record = _(options[:object_name] || object_names[0].to_s) | ... | ... |