Skip to content

i18n improvements #27

@yu-tang

Description

@yu-tang

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions