/** * Copyright (C) 2015 Deepin Technology Co., Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. **/ package log import ( "pkg.deepin.io/lib/log" ) var Log = log.NewLogger("service/file-manager-backend")
* Copyright (C) 2015 Deepin Technology Co., Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. **/ package main import ( "pkg.deepin.io/lib/dbus" "pkg.deepin.io/lib/log" ) var logger = log.NewLogger("com.deepin.helper.LanguageSelector") type LanguageSelector struct { } func (*LanguageSelector) Set(lang string) { var locale = lang + ".UTF-8" if !isSupportedLocale(locale) { if !isSupportedLocale(lang) { logger.Warning("Invalid locale:", locale) return } else { locale = lang } }