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
//Jamal