Class: Rho::System

Inherits:
Object show all
Defined in:
lib/framework/rholang/localization_simplified.rb

Class Method Summary collapse

Class Method Details

.set_locale(locale_code, country_code = nil) ⇒ Object



79
80
81
82
83
84
85
86
# File 'lib/framework/rholang/localization_simplified.rb', line 79

def self.set_locale(locale_code, country_code = nil)
    LocalizationSimplified::set_cur_locale(locale_code, country_code)

    LocalizationSimplified.requre_loc('rholang/lang_',false)
    LocalizationSimplified.requre_loc(Rho::RhoFSConnector::get_app_path('app') + 'lang/lang_',true)
    LocalizationSimplified.requre_loc('rholang/rhoerror_',false)
    LocalizationSimplified.requre_loc('rholang/rhomsg_',false)    
end