Skip to content
daniel-flassig edited this page May 10, 2020 · 12 revisions

Mark a string as translatable / fetch the translated string. Please read this tutorial to understand the workings of the translation mechanism.

pyloc "This string can be translated"
pyloc(This string can be translated as well")

Note that the parameter of pyloc must be a literal string. So the following would NOT work in practice

function test()
   return "This string cannot be translated!"
end
pyloc(test())

because the string will NOT appear in the translation base file. You should instead write:

function test()
   return pyloc("This string can be translated!")
end
test()

Clone this wiki locally