diff options
-rw-r--r-- | locale/en-us/script.lua | 8 | ||||
-rw-r--r-- | locale/pt-br/meta.lua | 24 | ||||
-rw-r--r-- | locale/pt-br/script.lua | 26 | ||||
-rw-r--r-- | locale/zh-cn/meta.lua | 24 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 26 | ||||
-rw-r--r-- | locale/zh-tw/script.lua | 2 | ||||
-rw-r--r-- | tools/locale.lua | 22 |
7 files changed, 62 insertions, 70 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index d7e883ae..a166cf47 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -315,8 +315,8 @@ HOVER_TABLE_TIME_UP = 'Partial type inference has been disabled for performance reasons.' HOVER_WS_LOADING = 'Workspace loading: {} / {}' -HOVER_AWAIT_TOOLTIP = -- TODO: need translate! -'正在调用异步函数,可能会让出当前协程' +HOVER_AWAIT_TOOLTIP = +'Calling async function, current thread may be yielded.' ACTION_DISABLE_DIAG = 'Disable diagnostics in the workspace ({}).' @@ -432,9 +432,7 @@ WINDOW_PROCESSING_SEMANTIC_FULL = 'Processing full semantic tokens...' WINDOW_PROCESSING_SEMANTIC_RANGE = 'Processing incremental semantic tokens...' -WINDOW_PROCESSING_HINT = -- TODO: need translate! -'正在处理内联提示...' -WINDOW_PROCESSING_TYPE_HINT = +WINDOW_PROCESSING_HINT = 'Processing inline hint...' WINDOW_INCREASE_UPPER_LIMIT = 'Increase upper limit' diff --git a/locale/pt-br/meta.lua b/locale/pt-br/meta.lua index aa530354..36b08c70 100644 --- a/locale/pt-br/meta.lua +++ b/locale/pt-br/meta.lua @@ -333,19 +333,19 @@ infowhat.n = '`name` e `namewhat`' infowhat.S = '`source`, `short_src`, `linedefined`, `lastlinedefined` e `what`' -infowhat.l = -- TODO: need translate! +infowhat.l = '`currentline`' -infowhat.t = -- TODO: need translate! +infowhat.t = '`istailcall`' -infowhat.u['<5.1'] = -- TODO: need translate! +infowhat.u['<5.1'] = '`nups`' infowhat.u['>5.2'] = '`nups`, `nparams` e `isvararg`' -infowhat.f = -- TODO: need translate! +infowhat.f = '`func`' infowhat.r = '`ftransfer` e `ntransfer`' -infowhat.L = -- TODO: need translate! +infowhat.L = '`activelines`' hookmask.c = @@ -361,7 +361,7 @@ file[':close'] = 'Fecha o arquivo `file`.' file[':flush'] = 'Salva qualquer dado de entrada no arquivo `file`.' -file[':lines'] = -- TODO: need translate! +file[':lines'] = [[ ------ ```lua @@ -416,7 +416,7 @@ io.flush = 'Salva todos os dados gravados no arquivo de saída padrão.' io.input = 'Define o arquivo de entrada padrão.' -io.lines = -- TODO: need translate! +io.lines = [[ ------ ```lua @@ -593,15 +593,15 @@ os.tmpname = osdate.year = 'Quatro dígitos.' -osdate.month = -- TODO: need translate! +osdate.month = '1-12' -osdate.day = -- TODO: need translate! +osdate.day = '1-31' -osdate.hour = -- TODO: need translate! +osdate.hour = '0-23' -osdate.min = -- TODO: need translate! +osdate.min = '0-59' -osdate.sec = -- TODO: need translate! +osdate.sec = '0-61' osdate.wday = 'Dia da semana, 1–7, Domingo é 1' diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index 47df6210..4076c223 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -277,25 +277,25 @@ SYMBOL_ANONYMOUS = -- TODO: need translate! HOVER_VIEW_DOCUMENTS = 'Visualizar documentos' -HOVER_DOCUMENT_LUA51 = -- TODO: need translate! +HOVER_DOCUMENT_LUA51 = 'http://www.lua.org/manual/5.1/manual.html#{}' -HOVER_DOCUMENT_LUA52 = -- TODO: need translate! +HOVER_DOCUMENT_LUA52 = 'http://www.lua.org/manual/5.2/manual.html#{}' -HOVER_DOCUMENT_LUA53 = -- TODO: need translate! +HOVER_DOCUMENT_LUA53 = 'http://www.lua.org/manual/5.3/manual.html#{}' -HOVER_DOCUMENT_LUA54 = -- TODO: need translate! +HOVER_DOCUMENT_LUA54 = 'http://www.lua.org/manual/5.4/manual.html#{}' -HOVER_DOCUMENT_LUAJIT = -- TODO: need translate! +HOVER_DOCUMENT_LUAJIT = 'http://www.lua.org/manual/5.1/manual.html#{}' -HOVER_NATIVE_DOCUMENT_LUA51 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA51 = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA52 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA52 = 'command:extension.lua.doc?["en-us/52/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA53 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA53 = 'command:extension.lua.doc?["en-us/53/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA54 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA54 = 'command:extension.lua.doc?["en-us/54/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUAJIT = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUAJIT = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]' HOVER_MULTI_PROTOTYPE = '({} protótipos)' @@ -316,7 +316,7 @@ HOVER_TABLE_TIME_UP = HOVER_WS_LOADING = 'Carregando espaço de trabalho: {} / {}' HOVER_AWAIT_TOOLTIP = -- TODO: need translate! -'正在调用异步函数,可能会让出当前协程' +'Calling async function, current thread may be yielded.' ACTION_DISABLE_DIAG = 'Desativar diagnósticos no espaço de trabalho ({}).' @@ -432,9 +432,7 @@ WINDOW_PROCESSING_SEMANTIC_FULL = 'Processando tokens semânticas completos...' WINDOW_PROCESSING_SEMANTIC_RANGE = 'Processando tokens semânticas incrementais...' -WINDOW_PROCESSING_HINT = -- TODO: need translate! -'正在处理内联提示...' -WINDOW_PROCESSING_TYPE_HINT = +WINDOW_PROCESSING_HINT = 'Processando dicas de lina...' WINDOW_INCREASE_UPPER_LIMIT = 'Aumente o limite superior' diff --git a/locale/zh-cn/meta.lua b/locale/zh-cn/meta.lua index c00aaf85..a192ff72 100644 --- a/locale/zh-cn/meta.lua +++ b/locale/zh-cn/meta.lua @@ -311,19 +311,19 @@ infowhat.n = '`name` 和 `namewhat`' infowhat.S = '`source`,`short_src`,`linedefined`,`lalinedefined`,和 `what`' -infowhat.l = -- TODO: need translate! +infowhat.l = '`currentline`' -infowhat.t = -- TODO: need translate! +infowhat.t = '`istailcall`' -infowhat.u['<5.1'] = -- TODO: need translate! +infowhat.u['<5.1'] = '`nups`' infowhat.u['>5.2'] = '`nups`、`nparams` 和 `isvararg`' -infowhat.f = -- TODO: need translate! +infowhat.f = '`func`' infowhat.r = '`ftransfer` 和 `ntransfer`' -infowhat.L = -- TODO: need translate! +infowhat.L = '`activelines`' hookmask.c = @@ -339,7 +339,7 @@ file[':close'] = '关闭 `file`。' file[':flush'] = '将写入的数据保存到 `file` 中。' -file[':lines'] = -- TODO: need translate! +file[':lines'] = [[ ------ ```lua @@ -394,7 +394,7 @@ io.flush = '将写入的数据保存到默认输出文件中。' io.input = '设置 `file` 为默认输入文件。' -io.lines = -- TODO: need translate! +io.lines = [[ ------ ```lua @@ -571,15 +571,15 @@ os.tmpname = osdate.year = '四位数字' -osdate.month = -- TODO: need translate! +osdate.month = '1-12' -osdate.day = -- TODO: need translate! +osdate.day = '1-31' -osdate.hour = -- TODO: need translate! +osdate.hour = '0-23' -osdate.min = -- TODO: need translate! +osdate.min = '0-59' -osdate.sec = -- TODO: need translate! +osdate.sec = '0-61' osdate.wday = '星期几,1-7,星期天为 1' diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index d99b788e..9c5b5ec7 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -277,25 +277,25 @@ SYMBOL_ANONYMOUS = HOVER_VIEW_DOCUMENTS = '查看文档' -HOVER_DOCUMENT_LUA51 = -- TODO: need translate! +HOVER_DOCUMENT_LUA51 = 'http://www.lua.org/manual/5.1/manual.html#{}' -HOVER_DOCUMENT_LUA52 = -- TODO: need translate! +HOVER_DOCUMENT_LUA52 = 'http://www.lua.org/manual/5.2/manual.html#{}' HOVER_DOCUMENT_LUA53 = 'http://cloudwu.github.io/lua53doc/manual.html#{}' -HOVER_DOCUMENT_LUA54 = -- TODO: need translate! +HOVER_DOCUMENT_LUA54 = 'http://www.lua.org/manual/5.4/manual.html#{}' -HOVER_DOCUMENT_LUAJIT = -- TODO: need translate! +HOVER_DOCUMENT_LUAJIT = 'http://www.lua.org/manual/5.1/manual.html#{}' -HOVER_NATIVE_DOCUMENT_LUA51 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA51 = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA52 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA52 = 'command:extension.lua.doc?["en-us/52/manual.html/{}"]' HOVER_NATIVE_DOCUMENT_LUA53 = 'command:extension.lua.doc?["zh-cn/53/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA54 = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUA54 = 'command:extension.lua.doc?["en-us/54/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUAJIT = -- TODO: need translate! +HOVER_NATIVE_DOCUMENT_LUAJIT = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]' HOVER_MULTI_PROTOTYPE = '({} 个原型)' @@ -434,8 +434,6 @@ WINDOW_PROCESSING_SEMANTIC_RANGE = '正在处理差量语义着色...' WINDOW_PROCESSING_HINT = '正在处理内联提示...' -WINDOW_PROCESSING_TYPE_HINT = -- TODO: need translate! -'Processing inline hint...' WINDOW_INCREASE_UPPER_LIMIT = '增加上限' WINDOW_CLOSE = @@ -461,10 +459,10 @@ WINDOW_LUA_STATUS_TIP = 不是狗也不是狐狸! ↓↓↓ ]] -WINDOW_LUA_STATUS_DIAGNOSIS_TITLE= -- TODO: need translate! -'Perform workspace diagnosis' -WINDOW_LUA_STATUS_DIAGNOSIS_MSG = -- TODO: need translate! -'Do you want to perform workspace diagnosis?' +WINDOW_LUA_STATUS_DIAGNOSIS_TITLE= +'进行工作区诊断' +WINDOW_LUA_STATUS_DIAGNOSIS_MSG = +'是否进行工作区诊断?' WINDOW_APPLY_SETTING = '应用设置' WINDOW_CHECK_SEMANTIC = diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index b6c83bb6..5cbc2b26 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -434,8 +434,6 @@ WINDOW_PROCESSING_SEMANTIC_RANGE = '正在處理差量語義著色...' WINDOW_PROCESSING_HINT = '正在處理內嵌提示...' -WINDOW_PROCESSING_TYPE_HINT = -- TODO: need translate! -'Processing inline hint...' WINDOW_INCREASE_UPPER_LIMIT = '增加上限' WINDOW_CLOSE = diff --git a/tools/locale.lua b/tools/locale.lua index bd56aa21..dcb71e03 100644 --- a/tools/locale.lua +++ b/tools/locale.lua @@ -145,17 +145,17 @@ local function buildLocaleFile(localeName, allKeys, localeMap, fileName) needTranslate = true end else - if #data.content > 1 or #data.content[1] > 2 then - local enContent = localeMap['en-us'].map[key] and localeMap['en-us'].map[key].content - if enContent then - needTranslate = #data.content == #enContent - for i, line in ipairs(data.content) do - if line ~= enContent[i] then - needTranslate = false - end - end - end - end + --if #data.content > 1 or #data.content[1] > 2 then + -- local enContent = localeMap['en-us'].map[key] and localeMap['en-us'].map[key].content + -- if enContent then + -- needTranslate = #data.content == #enContent + -- for i, line in ipairs(data.content) do + -- if line ~= enContent[i] then + -- needTranslate = false + -- end + -- end + -- end + --end end if needTranslate then comment = ' -- TODO: need translate!' |