LuaRT-Studio icon indicating copy to clipboard operation
LuaRT-Studio copied to clipboard

i18n improvements

Open yu-tang opened this issue 1 year ago • 1 comments

in LuaRT Studio 1.8.

1. Missing i18n for "Lua interpreter" page title

./src/editor/gui.lua line 670:

bottomnotebook:AddPage(shellbox, "Lua interpreter", false, bmp)

Make it translatable:

bottomnotebook:AddPage(shellbox, TR("Lua interpreter"), false, bmp)

2. Welcome message in shell box

./src/editor/shellbox.lua line 541:

DisplayShellMsg(TR("Welcome to the interactive Lua 5.4.6 "..console.getvalue("_ARCH").." interpreter").."\n"

It's a tough bananas for translators. a) We translators have to prepare many translated texts depending on various architectures, and b) we'll have to translate again and again every time Lua version updated.

Make it better:

DisplayShellMsg(TR("Welcome to the interactive Lua %s %s interpreter"):format("5.4.6", console.getvalue("_ARCH"))).."\n"

yu-tang avatar Nov 30 '24 16:11 yu-tang

Thank you for this. I will provide better i18n support for LuaRT Studio

samyeyo avatar Dec 01 '24 21:12 samyeyo