I needed a Swedish translation of Gallery 1.5.7 in UTF-8 so I had to make my own .po and .mo files. I thought I should run update_po_files.sh before I made the .mo files, to make my .po files up to date with the new version, but when I compared the .po files with the .pot files that ships with 1.5.7 before and after running update_po_files.sh I noticed that update_po_files.sh removed all the plurals from the .po files. If added them and ran update_po_files.sh again then they were removed again.
This:
#: ../lib/content.php:320
#, php-format
msgid "1 view"
msgid_plural "%d views"
msgstr[0] "1 visning"
msgstr[1] "%d visningar"
is changed by update_po_files.sh to this:
#: ../lib/content.php:320
msgid "1 view"
msgstr "1 visning"
There's not a lot of documentation on update_po_files.sh. I thought update_po_files.sh was there to make sure the .po files (from an older translation) is up to date with the latest .pot filesb before translation, but maybe I've misunderstood it?
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.7
Apache version: 1.3.37 (Unix)
PHP version (don't just say PHP 4, please): 5.2.3
Graphics Toolkit: NetPBM
Operating system: Linux
Web browser/version (if applicable):