German language support

Started by dmande

dmande Lv 1

Dear all,

We have the same event for kids coming up this year and I have downloaded the newest version of Foldit.

I wanted to add more translations to the German file "foldit.de.po", because not everything is currently translated.

I did a test adding the following lines to "Foldit/cmp-resources-1FD…etcetera…/reources/locale/foldit.de.po" (somewhere inside the file among other translation, not in a specific place):

msgid "Do you want to know more aout the science behind the background?"
msgstr "XXXXX test XXXXX"

I then restarted foldit, selected German as language, and restarted it again to apply the change.

However, when the popup with the text above appears, it is still in English.

Am I doing something wrong? Or, should I do something else too?

Thanks in advance for your help!

Best,
Davide

rmoretti Staff Lv 1

Theoretically that should work. My one thought is that the translation requires the strings to match exactly. If there's a slight difference, it might not apply properly.

If you're not aware of it already, there's the "log_untranslated" option (https://foldit.fandom.com/wiki/Untranslated_messages) which should result in a log file which will annotate any messages which are encountered which don't have a proper translation. You should be able to copy & paste from that log into the translation file, and that should have the input (msgid) value of the proper form.

dmande Lv 1

Thanks a lot!
That might indeed be the case. I'll follow your suggestion and generate the log file.

dmande Lv 1

Hi All.

I have prepared a "foldit.de.po" file with the German translation that I could share.

How can I share the file?

Best,
Davide

rmoretti Staff Lv 1

On the current Foldit website, we really don't have good facilities for user-supported translation files. (Something we should certainly look into … eventually.)

There may be a way to post the file as an attachment to a forum post, but failing that, I think the best course of action would likely be to host the file on some other file-sharing site, and post a link to it here.

(I don't know if the player-run Foldit Wiki at https://foldit.fandom.com/wiki/Foldit_Wiki might be a good place to post.)