hey there!
store your translation file(s) in Unicode UTF-8. get code to handle strings encoded with it
here.
to place strings to screen use text objects with custom fonts: you need setTextExtendedFontImage() command and some function to map Unicode chars to ASCII ones, like this:
function strReplaceCyrillicWithASCIIExtendedLatin(t as string)
// license: MIT
// copyright (c) 2016, Simon Grim
// tip me via bitcoin:1C5NZCMkjJTf8v7t41QwW9EeCjJcLEbf5s or https://paypal.me/harder
t = replaceString(t, 'А', chr(192), -1)
t = replaceString(t, 'Б', chr(193), -1)
t = replaceString(t, 'В', chr(194), -1)
t = replaceString(t, 'Г', chr(195), -1)
t = replaceString(t, 'Д', chr(196), -1)
t = replaceString(t, 'Е', chr(197), -1)
t = replaceString(t, 'Ё', chr(168), -1)
t = replaceString(t, 'Ж', chr(198), -1)
t = replaceString(t, 'З', chr(199), -1)
t = replaceString(t, 'И', chr(200), -1)
t = replaceString(t, 'Й', chr(201), -1)
t = replaceString(t, 'К', chr(202), -1)
t = replaceString(t, 'Л', chr(203), -1)
t = replaceString(t, 'М', chr(204), -1)
t = replaceString(t, 'Н', chr(205), -1)
t = replaceString(t, 'О', chr(206), -1)
t = replaceString(t, 'П', chr(207), -1)
t = replaceString(t, 'Р', chr(208), -1)
t = replaceString(t, 'С', chr(209), -1)
t = replaceString(t, 'Т', chr(210), -1)
t = replaceString(t, 'У', chr(211), -1)
t = replaceString(t, 'Ф', chr(212), -1)
t = replaceString(t, 'Х', chr(213), -1)
t = replaceString(t, 'Ц', chr(214), -1)
t = replaceString(t, 'Ч', chr(215), -1)
t = replaceString(t, 'Ш', chr(216), -1)
t = replaceString(t, 'Щ', chr(217), -1)
t = replaceString(t, 'Ъ', chr(218), -1)
t = replaceString(t, 'Ы', chr(219), -1)
t = replaceString(t, 'Ь', chr(220), -1)
t = replaceString(t, 'Э', chr(221), -1)
t = replaceString(t, 'Ю', chr(222), -1)
t = replaceString(t, 'Я', chr(223), -1)
t = replaceString(t, 'а', chr(224), -1)
t = replaceString(t, 'б', chr(225), -1)
t = replaceString(t, 'в', chr(226), -1)
t = replaceString(t, 'г', chr(227), -1)
t = replaceString(t, 'д', chr(228), -1)
t = replaceString(t, 'е', chr(229), -1)
t = replaceString(t, 'ё', chr(184), -1)
t = replaceString(t, 'ж', chr(230), -1)
t = replaceString(t, 'з', chr(231), -1)
t = replaceString(t, 'и', chr(232), -1)
t = replaceString(t, 'й', chr(233), -1)
t = replaceString(t, 'к', chr(234), -1)
t = replaceString(t, 'л', chr(235), -1)
t = replaceString(t, 'м', chr(236), -1)
t = replaceString(t, 'н', chr(237), -1)
t = replaceString(t, 'о', chr(238), -1)
t = replaceString(t, 'п', chr(239), -1)
t = replaceString(t, 'р', chr(240), -1)
t = replaceString(t, 'с', chr(241), -1)
t = replaceString(t, 'т', chr(242), -1)
t = replaceString(t, 'у', chr(243), -1)
t = replaceString(t, 'ф', chr(244), -1)
t = replaceString(t, 'х', chr(245), -1)
t = replaceString(t, 'ц', chr(246), -1)
t = replaceString(t, 'ч', chr(247), -1)
t = replaceString(t, 'ш', chr(248), -1)
t = replaceString(t, 'щ', chr(249), -1)
t = replaceString(t, 'ъ', chr(250), -1)
t = replaceString(t, 'ы', chr(251), -1)
t = replaceString(t, 'ь', chr(252), -1)
t = replaceString(t, 'э', chr(253), -1)
t = replaceString(t, 'ю', chr(254), -1)
t = replaceString(t, 'я', chr(255), -1)
t = replaceString(t, '»', chr(187), -1)
t = replaceString(t, '«', chr(171), -1)
t = replaceString(t, '—', chr(151), -1)
t = replaceString(t, '№', chr(185), -1)
endfunction t
UPD
nah, try
this instead.
error #1:
'too many stars, too many stares. disembody.'
Unicode yours