Plugin extension?

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 :slight_smile:

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 :slight_smile:

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 :frowning:

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 :smiley:

//Jamal