MailingList


Locale.get_base_language

View: New views
1 Messages — Rating Filter:   Alert me  

Locale.get_base_language

by Echo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I need to get the base language code back from Globalize in order to  
tell which application language codes are NOT the base language. (A  
plugin I'm writing needs this information to strip the language  
postfix _XX for the base language when using Globalize's internal  
storage.)

However, I don't see how to get the code. Am I missing something here?

Locale.set_base_language('de-CH')
Locale.base_language => 'German'

It seems something like Locale.base_language_code is missing, this  
could be a nice method to add. What do you think?

Cheers, -sven