Language selection combobox in options and accepted languages.
Added language selection combobox in options dialog. Selecting language here will overwrite language code gathered from system. Added AcceptedLanguages map to Translator, which holds readable names and lang-country codes with avaailable languages. Filled it with languages in which URTrator already translated. Francais coming :)
This commit is contained in:
@@ -116,16 +116,16 @@ func (ctx *Context) initializeTimer() {
|
||||
}
|
||||
|
||||
func (ctx *Context) initializeTranslator() {
|
||||
ctx.Translator = translator.New()
|
||||
ctx.Translator = translator.New(ctx.Cfg)
|
||||
ctx.Translator.Initialize()
|
||||
}
|
||||
|
||||
func (ctx *Context) Initialize() {
|
||||
fmt.Println("Initializing application context...")
|
||||
ctx.initializeTranslator()
|
||||
ctx.initializeColorizer()
|
||||
ctx.initializeConfig()
|
||||
ctx.initializeDatabase()
|
||||
ctx.initializeTranslator()
|
||||
ctx.initializeEventer()
|
||||
ctx.initializeCache()
|
||||
ctx.initializeLauncher()
|
||||
|
Reference in New Issue
Block a user