Xonotic Forums
[SOLVED] Can't see non-Latin symbols in-match (localization). - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] Can't see non-Latin symbols in-match (localization). (/showthread.php?tid=4268)



Can't see non-Latin symbols in-match (localization). - Harmata - 06-28-2013

So, i've finished Ukrainian translation, but only the menus are shown translated in the game, everything in-match is still in English. The score table, various game messages and counters, everything. I've checked the Russian translation, and it had the same problem. I also can't type in Russian or Ukrainian in console, it displays weird symbols. Any ideas?


RE: Can't see non-Latin symbols in-match. - Mr. Bougo - 06-28-2013

Can I have a screenshot for the typing of weird symbols?

As for the scoreboard etc, you neet to wait until the next map, so that csqc reloads. If you set the language before joining a game, it'll work right away, but if you change the language while ingame it needs a restart (you can also disconnect/reconnect). I tested it with the french translation and it works.

The Russian translation is hardly complete, it says so in the language selection screen. It doesn't have csqc replacement strings for the scoreboard so it displays in english. Feel free to help complete it: translate.xonotic.org, and forum thread.


RE: Can't see non-Latin symbols in-match. - Harmata - 06-28-2013

Symbols in the console when typing in Ukrainian/Russian:
[Image: w8Vn6Pm.jpg]

Quote:The Russian translation is hardly complete, it says so in the language selection screen.
Language selection screen shows wrong data. If you open the Russian menu.dat.po file you'll see that Russian translation is like 99% finished. The lines like "Your teammate got the flag! Protect him!" are translated, but i can't see them in the game. Same for the Ukrainian menu.dat.po file, it's completely translated, but the language selection screen still shows only 21% and i can't see any translated lines during a match. I've tried French translation, and it worked fine too.

Maybe it has something to do with packing and unpacking the menu.dat.po file? I get it from the xonotic-data.pak, and then return it back using the WinRar.


RE: Can't see non-Latin symbols in-match. - Mr. Bougo - 06-28-2013

(06-28-2013, 03:58 AM)Harmata Wrote:
Quote:The Russian translation is hardly complete, it says so in the language selection screen.
Language selection screen shows wrong data. If you open the Russian menu.dat.po file you'll see that Russian translation is like 99% finished. The lines like "Your teammate got the flag! Protect him!" are translated, but i can't see them in the game. Same for the Ukrainian menu.dat.po file, it's completely translated, but the language selection screen still shows only 21% and i can't see any translated lines during a match. I've tried French translation, and it worked fine too.

Maybe it has something to do with packing and unpacking the menu.dat.po file? I get it from the xonotic-data.pak, and then return it back using the WinRar.

NEVER edit the game's original PK3s. There is never, ever a case where this is needed. What you're trying to do can always be done by other means, without touching the original pk3s. You should return to the original PK3s before we continue. I think you can do that using the rsync-updater, look in the 0.7 release thread in the news section.

Also, the russian translation shows as 54% completed here, using a semi-recent git build. It is not complete, there are no strings for the scoreboard.


RE: Can't see non-Latin symbols in-match. - Harmata - 06-28-2013

Quote:What you're trying to do can always be done by other means, without touching the original pk3s.
So how am i suppose to check the quality of translation?
Quote:You should return to the original PK3s before we continue.
The version of the menu.dat.uk.po file that came with the 0.7 version contained strings that should have appeared during a match, but they didn't. I've never seen Ukrainian language in-match.
Quote:It is not complete, there are no strings for the scoreboard.
Well, even the completed strings do not appear for me.


RE: Can't see non-Latin symbols in-match. - Mr. Bougo - 06-28-2013

menu.dat.uk.po contains translated strings for the menu code. If you look inside, you'll notice that all the files being referenced are in qcsrc/menu/. The scoreboard is part of the client code (qcsrc/client/), whose strings are in csprogs.dat.uk.po.

If you want to have the ukrainian menu and client translations without editing the pk3, you can simply override the pk3's by putting them in your personal data directory.

Any file contained in a loaded pk3 can be overridden by placing a file of the exact same path and filename in either:
  • The personal data directory
  • A pk3 in the personal data directory whose filename comes after the original pk3 alphabetically
  • A pk3dir directory (abcdef.pk3dir) in the personal data directory whose filename comes after the original pk3 alphabetically
(and a similar list for the install directory, I don't remember the priority. I don't remember how it behaves for pk3 and pk3dir with the same name).
You can also simulate deletion of a file in the original pk3 by creating an empty file with the same name in one of the locations listed above.

Since menu.dat.uk.po is located at the root of the data pk3, you can simply put menu.dat.uk.po at the root of your personal data directory (that is, the same directory as your config.cfg).


RE: Can't see non-Latin symbols in-match. - Harmata - 06-28-2013

Soooo, am i suppose to translate csprogs.dat.po or what?


RE: Can't see non-Latin symbols in-match. - Mr. Bougo - 06-28-2013

If you're the ukrainian translator, sure. Use translate.xonotic.org (see my first post in this thread).


RE: Can't see non-Latin symbols in-match. - Harmata - 06-29-2013

Oh WOW. Why am i hearing about this file only now? Why menu.dat.po contains the same strings as csprogs.dat.po but they are not displayed?
Gosh darn it diddly doodly. Don't answer, i'll go translate every file in the game including the source code. HOW WOULD YOU LIKE THE SOURCE CODE IN UKRAINIAN HUH? Yeah, yeah, that's what I thought. SOLVED.


RE: Can't see non-Latin symbols in-match. - Mr. Bougo - 06-29-2013

(06-29-2013, 12:23 AM)Harmata Wrote: Oh WOW. Why am i hearing about this file only now? Why menu.dat.po contains the same strings as csprogs.dat.po but they are not displayed?

If they contain the same strings, that's coincidental; that means both menu and client code use the same string. The .po file contains the source file name above the pair of strings, notice how menu.dat.po has all strings from qcsrc/menu/ and client.dat.po from qcsrc/client/.

EDIT: Ah, it actually has some overlap in qcsrc/common/. I don't know what we can do about that. But the strings you're looking for are in csprogs.dat.po only (see msgid "Accuracy stats (average %d%%)" for example, which displays in the scoreboard).