samyeyo / LuaRT-Studio

Lua 5.4 IDE for Windows with debugger and script to executable compiler
Other
79 stars 12 forks source link

i18n improvements #27

Open yu-tang opened 2 days ago

yu-tang commented 2 days ago

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"
samyeyo commented 1 day ago

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