Upload of .po translation file not working

Started by LociOiling

LociOiling Lv 1

Here's my .po file.

Use the "Browse" and "Attach" buttons in the "File Attachments" box below to add your own in a new reply.

You'll also need to add ".txt" to the file name for the attachment to work.

LociOiling Lv 1

Just for completeness, I tried renaming my file to match existing names like "foldit.fr.po".

I tried uploading "foldit.lo.po", but got the same error.

I also noticed this message in the upload area toward the bottom of the add client translation page:

For security reasons, your upload has been renamed to foldit.lo_.po.

I also changed the "lo" to a real country code, "pr", but this produced the same errors and messages.

LociOiling Lv 1

Another great thought: "msgfmt" is a utility program, part of the "gettext" package.

I'm thinking the "msgfmt not found error" means exactly what it says, the system can't find the program.

So maybe something needs to be installed, or a path needs to be adjusted.

LociOiling Lv 1

I renamed the attached file to pt_BR.po, and opened it in Poedit.

Everything looks good, and it even appears to be a complete translation.

As mentioned elsewhere in the feedback, it's possible that the "msgfmt" program is not installed on the Foldit server. Foldit moved to a new server last year, and it's possible msgfmt and some related items were overlooked.

Somebody said "puxa cara, aprenda mais uma idioma" over on intro puzzles page on the wiki a few years back. Now we are so close to having the game translated, maybe only a tarball or RPM or whatever away.

socramdm Lv 1

Yes. But.. Who it's responsible for the Foldit server (sysadmin)? How to contact him to explain the error?

jeff101 Lv 1

The Foldit Team often reads these Feedbacks.
Perhaps one (like agcohn821) will respond
directly. They have green and white Foldit
icons by their user names.

LociOiling Lv 1

Yes to what jeff101 says, and I've also notified the Foldit developers directly.

Meanwhile, the good news is that users can install this translation file on their own.

The first step is to download pt_BR.po_.txt from the reply above: https://fold.it/portal/node/2009392#comment-40916

Rename the file to foldit.pt.po

Copy the file to this directory:

C:\Foldit\cmp-resources-1e8bcb69156e40a1336e1f920fdaa0a0\resources\locale

Change C:\Foldit to the correct location on your system.

This is the current resource directory. The resource directory is sometimes replaced when Foldit installs an update. Be sure to save a copy of foldit.pt.po in a separate spot.

Now when you start Foldit, go to "Set language" on the login screen. You'll see "[pt] Português" as one of the languages. Double-click on it, or single click and click "Apply Language". Foldit then restarts with the language pack installed.

While this isn't quite as good as having the translation already installed, it's better than nothing. Hopefully, the team will get the upload process fixed before too long.