Hello everyone,
------------------------------------------
Gibberish is internationalization plugin.
http://errtheblog.com/post/4396
------------------------------------------
I want to change the way Gibberish loads the yml files, since the
languages files becomes to big, i want to split them so that every
controller have their own translating file.
This is how language files are located now.
lang/
en.yml
da.yml
I want to be able to do this :)
lang/
en/
navigation.yml
home.yml
user.yml
da/
navigation.yml
home.yml
user.yml
HomeController will use home.yml
UserController will use user.yml
..and there should be opportunity to load other language file if needed
like this :)
class HomeController < ApplicationController
language :files => [:home, :user]
end
My question is how to debug the plugin, I''m not able to use the
logger.info or put in the module, I get errors :(
def language_files
logger.info "what"
puts "test"
@@language_paths.map {|path| Dir[File.join(path, ''lang'',
''*.{yml,yaml}'')]}.flatten
end
Thanks for reading, and thanks for any response :D
//Jamal
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---