linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03131
Re: [Question #143354]: Native and non-native lua scripts translation issues
Question #143354 on ADCH++ changed:
https://answers.launchpad.net/adchpp/+question/143354
Status: Open => Answered
poy proposed the following answer:
haven't tested, but try to add the following global function:
function _(str)
if adchpp.Text_validateUtf8(str) then
return str
end
return adchpp.Text_acpToUtf8(str)
end
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.
--
You received this question notification because you are a member of
Dcplusplus-team, which is an answer contact for ADCH++.