Native and non-native lua scripts translation issues

Asked by Neolo

Unable to use translated lua scripts (cyrillic). All messages are showing up like "____" or just empty.
Saved in ANSI or UTF8 gives same result. Translated motd.txt is displaying fine.

Question information

English Edit question
ADCH++ Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
poy (poy) said :

haven't tested, but try to add the following global function:

function _(str)
 if adchpp.Text_validateUtf8(str) then
  return str
 return adchpp.Text_acpToUtf8(str)

then wrap your translated strings around it, eg _("you must be an op"). eventually this could be used to automate translations from .po files, but that has not been implemented yet.

Can you help with this problem?

Provide an answer of your own, or ask Neolo for more information if necessary.

To post a message you must log in.