Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - dunee

Pages: [1]
Translations Team Discussion / Re: How to submit new Hungarian translation?
« on: September 21, 2017, 03:56:39 PM »
Hadn't thought of that. Thanks!

Translations Team Discussion / How to submit new Hungarian translation?
« on: September 21, 2017, 10:10:34 AM »
I've been chipping away at a Hungarian translation for around two years now. Started at Launchpad and then realized how out of date that was, so since then I've been translating experimentals offline.

I feel the Hungarian translation has now reached a point where it's good enough to into the experimentals. I've grabbed the latest cataclysm-dda.pot from Github and matched my translation to the strings in there.

My question is this - how do I get my partial Hungarian translation into the experimentals? Create a Github account, put in a pull request for hu.po into lang/po, and that's  it? Or is there a different process?


Necroing the post again, as I've finally figured out what went wrong.

(click to show/hide)

Apparently a long while ago I've changed the word order, so instead of "You hit the %s for %d" the Hungarian localization went "For %d damage you hit the %s" (more logical word order).

So that crashed to the desktop on Windows and even caused a segfault on my Ubuntu machine. Had to learn how to debug a segfault, but found it! Changed the word order back as it should be and killed my first bug (that I've caused in the first place).

Nothing to do with accented characters, in the end. The game displays a different string when you hit someone with a ranged weapon, something else when you melee. The errors thrown by gettext conversion don't seem to be relevant either.

In conclusion, if you're working on a localization, don't assume that changing the order of variables in a string is an bulletproof thing to do.

Resurrecting this old threat, because zombies and also because I still can't figure out what's wrong.

So I'm still getting a crash, currently on a fresh install of build 6228 on Windows (0.c-21120-g65e976fea). The crash is with the Hungarian MO that I've converted from a partly translated English PO, itself obtained from the CDDA github. The translated PO is also available on request. Converting from the PO to the MO using msgfmt yields the following messages, but looking at the PO I see nothing out of place:

Code: [Select]
dunee@DUNEE-WIN10:/mnt/c/Users/Dunee/Desktop/hu-HU$ msgfmt cataclysm-dda.po -o
cataclysm-dda.po:94806: 'msgid' and 'msgstr' entries do not both end with '\n'
cataclysm-dda.po:96626: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:96654: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:96679: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:96702: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:96735: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:96787: 'msgid' and 'msgstr' entries do not both end with '\n'
cataclysm-dda.po:96829: 'msgid' and 'msgstr' entries do not both end with '\n'
cataclysm-dda.po:96871: 'msgid' and 'msgstr' entries do not both end with '\n'
cataclysm-dda.po:96911: 'msgid' and 'msgstr' entries do not both end with '\n'
cataclysm-dda.po:96969: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:118251: 'msgid' and 'msgstr' entries do not both begin with '\n'
cataclysm-dda.po:125672: 'msgid' and 'msgstr' entries do not both end with '\n'
msgfmt: found 16 fatal errors

To reproduce the crash, use the MO from, copy it to lang\mo\fr\LC_MESSAGES, start the game, set language to French and restart the game. Spawn any ranged weapon and hit any creature nearby. The game crashes. Other than that, the Hungarian text shows up fine, especially with the new Unicode font.

I don't even know where to start looking, debug.log has nothing. Its last line is:
Code: [Select]
21:24:36.22 INFO : Added requirement: inline_vehins_base_xlhalfboard_vertical
I have figured out since my initial post that the garbage characters have nothing to do with the crash. First, I've replaced all hit related text with non-accented characters. Second, the garbage characters still show up fine on a melee attack, so the issue is presumably related to some string being called when ranged weapons are fired.

I'm at a complete loss, please help!

So I'm working on the Hungarian localization and have hit a game breaking bug.

(click to show/hide)

Up until a few days ago, if the hit log notification contained an accented character, it just displayed some garbage character, as seen above. Since a few days ago, the game straight out crashes.

However, this only happens when a ranged weapon hits. I'm still getting garbage characters with melee hits, but the game does not crash.

Is it possible to replace the terminal font used to display these messages with a Unicode font as well? I'm already using Cousine-Bold.ttf as a replacement font for the other typeface.

I'm using the latest experimental, build 5463, Windows x86 tiles (0.C-18110-g368db5e). If I change Cata's language settings to English I do not get a crash.

The MO I'm using is at


Pages: [1]