Hi Erik,
Did you install the latest Gem, or the 'edge' version from Git?
Alex
>
> The latest gem, merb_global (0.0.4.2).
>
Did you add dependency 'merb_global' to your Merb init.rb file?
I am presuming you setup the rest of the configuration for the
merb_global configuration as shown in the README - either with a Hash,
or in a plugins.yaml file.
Then the syntax is:
_('Hi! Hello world!')
Alex
>
> Yes, adding: dependency 'merb_global' to init.rb solves the problem.
> Thanks a lot.
> I have just started using merb, so I have still a lot to learn.
>
> Cheers,
>
> Erik.
>
Great! Pleased to hear that helped.
Let us know how it goes!
> (...)
> ========== ./locale/nl/messages.po =========
>
> msgid ""
> msgstr ""
> "Project-Id-Version: PACKAGE VERSION\n"
> "Last-Translator: Automatically generated\n"
> "Language-Team: none\n"
> "MIME-Version: 1.0\n"
> "Content-Type: text/plain; charset=UTF-8\n"
> "Content-Transfer-Encoding: 8bit\n"
> "Plural-Forms: nplurals=2; plural=(n != 1);\n"
>
> msgid "Hello world!"
> msgstr "Hallo wereld!"
>
All scripts (for example to generate mo) will search it
in ./locale/nl.po. However if you don't use them it can be anywhere.
> ========== ./locale/nl/messages.mo =========
>
> # Contains .mo data for messages.po
This file should be in ./locale/nl/LC_MESSAGES. In the same way as in
gettext example.
Regards