Improve: add missing translate

This commit is contained in:
yichengchen 2019-07-30 14:24:55 +08:00
parent 4838ccaf45
commit b9a576df4d
3 changed files with 14 additions and 2 deletions

View File

@ -146,12 +146,12 @@ class RemoteConfigManager {
static func updateConfig(config: RemoteConfigModel, complete:((String?)->())?=nil) {
getRemoteConfigData(config: config) { data in
guard let newData = data else {
complete?("Download fail")
complete?(NSLocalizedString("Download fail", comment: "") )
return
}
guard let newConfigString = String(data: newData, encoding: .utf8),
verifyConfig(string: newConfigString) else {
complete?("Remote Config Format Error")
complete?(NSLocalizedString("Remote Config Format Error", comment: ""))
return
}
let savePath = kConfigFolderPath.appending(config.name).appending(".yaml")

View File

@ -23,6 +23,9 @@
/* No comment provided by engineer. */
"Direct" = "Direct";
/* No comment provided by engineer. */
"Download fail" = "Download fail";
/* No comment provided by engineer. */
"Global" = "Global";
@ -50,6 +53,9 @@
/* No comment provided by engineer. */
"Reload Config Succeed" = "Reload Config Succeed";
/* No comment provided by engineer. */
"Remote Config Format Error" = "Remote Config Format Error";
/* No comment provided by engineer. */
"Remote Config Update" = "Remote Config Update";

View File

@ -23,6 +23,9 @@
/* No comment provided by engineer. */
"Direct" = "直连";
/* No comment provided by engineer. */
"Download fail" = "下载失败";
/* No comment provided by engineer. */
"Global" = "全局";
@ -50,6 +53,9 @@
/* No comment provided by engineer. */
"Reload Config Succeed" = "重载配置文件成功";
/* No comment provided by engineer. */
"Remote Config Format Error" = "托管配置文件格式不正确";
/* No comment provided by engineer. */
"Remote Config Update" = "更新托管配置文件";