OK thanks Blair, will go and check your suggestions!

On Dec 19, 12:15 am, Blair McKenzie <[email protected]> wrote:
> Sorry I've taken so long to reply to this, it's been a while since I
> refactored rb. There are a couple of points:
>
>    - Resource bundles work the same way as every other part of FarCry, i.e.
>    you can put your own resources in a plugin or the project and those will be
>    picked up. If a resource bundle in a plugin contains they same key as core,
>    the plugin value will override the core value. And as always, the project
>    can override everything else.
>    - Resources are loaded once on application initialisation. If you make a
>    change to the resource bundles, you will need to either updateapp or use 
> the
>    Resource bundle option in webtop application reloader.
>    - Resources need to be escaped, but I assume you saw that while you were
>    working in the core resource bundles.
>    - It's important that the resource bundle filename corresponds to the
>    language code.
>    - The language code for a given user is set in their profile (for logged
>    in users). Anonymous users default to what is set in the Config (I think,
>    probably, maybe).
>    - The locales option in farcryConstructor is used to restrict what
>    options are available when someone goes to *change* their locale. It is
>    possible that the installer ignores it and always sets the default to en_AU
>    or something. See previous point about changing the default / profile
>    locales.
>    - Resources are cached in the application scope. To check to see if your
>    resources are loaded look at application.rb.aSets[...][locale].bundle.
>    You'll have to poke around aSets to find the one you've edited.
>    - And it's entirely possible that there's a bug in the RB code. Not many
>    developers take advantage of the functionality, so it doesn't get tested as
>    thoroughly as other parts of FarCry. If you do find that your problem is
>    caused by a bug please let me know.
>
> Hope this helps.
>
> Cheers
> Blair
>
> On Mon, Dec 14, 2009 at 12:26 PM, Marco van den Oever <
>
> [email protected]> wrote:
> > In my translation files in core i added some stuff, farcryconstructor
> > is on dutch language:
>
> > webtop.footer.desby = Design door
> > webtop.footer.devhostby = Ontwikkeling en hosting door
> > webtop.footer.desdevhostby = Design, ontwikkeling, en hosting door
>
> > then placed this variable:
>
> > #application.rb.getResource("webtop.footer.desdevhos...@label","Design
> > by")#
>
> > The translation isn't showed... Only "Design by".
>
> > --
> > You received this message cos you are subscribed to "farcry-dev" Google
> > group.
> > To post, email: [email protected]
> > To unsubscribe, email: 
> > [email protected]<farcry-dev%[email protected]>
> > For more options:http://groups.google.com/group/farcry-dev
> > --------------------------------
> > Follow us on Twitter:http://twitter.com/farcry

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to