Problems getting the Yaml provider to work

0 views
Skip to first unread message

Abdul-Rahman Advany

unread,
Aug 9, 2008, 7:22:28 PM8/9/08
to merb_global
Hi guys,

I was trying to get merb_global to work (used the examples included).
I can get the gettest version to work but the yaml version somehow
doesn't display the pl.yaml version. I tried to add:

?language=pl to the url

language do
'pl'
end

to the controller

but none of these work. I also tried hacking and checking the code...
but I can't figure out why I don't see the polish (or even the en.yaml
after I edit the text in it).

Any ideas?

Abdul-Rahman Advany

unread,
Aug 10, 2008, 9:12:35 AM8/10/08
to merb_global
Well, I figured out that config isn't working, it isn't picking up
anything... when I changed the source to pick up yaml by default it
started working. Still trying to figure out a connection between
plugins.yml and merb_global... can't find how it works...

Maciej Piechotka

unread,
Aug 10, 2008, 1:51:49 PM8/10/08
to merb_...@googlegroups.com
On Sun, 2008-08-10 at 06:12 -0700, Abdul-Rahman Advany wrote:
> Well, I figured out that config isn't working, it isn't picking up
> anything... when I changed the source to pick up yaml by default it
> started working. Still trying to figure out a connection between
> plugins.yml and merb_global... can't find how it works...

Thank you for your message. I confirm that something is broken by using
example.

I'll try to check it out today. It will be fixed in 0.5.1.

Regards

signature.asc

Maciej Piechotka

unread,
Aug 10, 2008, 5:14:35 PM8/10/08
to merb_...@googlegroups.com

I terrible sorry but the documentation was out-of-date. In git is now
updated.

I hope it will be helpful.

PS. I'm not sure of ?language=pl is supported.
PPS. Sorry for late responses but I was out for a weekend.

signature.asc

Pavel Kunc

unread,
Aug 11, 2008, 5:27:57 AM8/11/08
to merb_global
?language=pl should work. At least my 0.4.x works this way. It should
works also with region language codes so cs and cs_CZ will load czech
translations. I use gettext provider but this should work
independently on the provider.

Pavel
>  signature.asc
> < 1KViewDownload

Abdul-Rahman Advany

unread,
Aug 11, 2008, 12:37:46 PM8/11/08
to merb_global
Jup, after updates on the docs everything seems to work fine :) didn't
know about the change...
Reply all
Reply to author
Forward
0 new messages