GetText problems with .set_error_message_title

i tried to change the error message title to use with
“error_messages_for” as described at
http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#Translate+the+title%2Fexplanation+on+the+error+message+dialog

but i never ever get the translated strings :frowning:
i just always get the strings within the N_(‘’) function.
but the %{record} inside gets properly translated.

i’m currenlty runnnig my rails app
with ruby 1.8.5 on windows with rails 1.2.2 and gettext 1.9.0
even downgrading gettext to 1.7.0 didn’t help (the page said it’s
supposed to work since version 1.7.0).

this is what i have in my application controller:
ActionView::Helpers::ActiveRecordHelper::L10n.set_error_message_title(
N_(“An error prevented saving this %{record}”), N_(“%{num} errors
prevented saving this %{record}”))

and the excerpt from my .po file for “de_DE”:

#: app/controllers/application.rb:10
msgid “An error prevented saving this %{record}”
msgstr “Ein Fehler verhinderte das Speichern dieser %{record}”

#: app/controllers/application.rb:10
msgid “%{num} errors prevented saving this %{record}”
msgstr “%{num} Fehler verhindern das Speichern dieser %{record}”

i’m totally out of ideas what to do :frowning:
any help would be greatly appreciated!

neongrau __ wrote:

but i never ever get the translated strings :frowning:
i just always get the strings within the N_(’’) function.
but the %{record} inside gets properly translated.

I have the same problem (only one difference Linux instead of Windows).
Can somebody explain what’s going on? And how to fix it. Please.

Thanks a lot.