When making an extraction of a module that has singular/plural strings, the potx module fails to build proper empty strings ready to be filled and the po files cannot be opened by editors like Poedit.

If you open the po file with a plain text editor, for example, you can see that instead of:

#: modules/taxonomy.views.inc:914
msgid "Unable to find term: @terms"
msgid_plural "Unable to find terms: @terms"
msgstr[0] ""
msgstr[1] ""

the module builds:

#: modules/taxonomy.views.inc:914
msgid "Unable to find term: @terms"
msgid_plural "Unable to find terms: @terms"
msgstr[0 ""
msgstr[1 ""

As well, I've got the following screen log message:

user warning: Table 'xxxnamexxx.locales_meta' doesn't exist query: SELECT locale, name, plurals, formula FROM locales_meta WHERE locale = 'es' in C:\xampp\htdocs\drupal\sites\default\modules\contrib\translation template extractor\potx.inc on line 424.

Drupal installation is a locale 6.2 one with the latest XAMPP in Windows XP Pro.
(More details if needed)

Comments

Anonymous’s picture

Feedback: I works,

I changed the mentioned strings in my local copy and now POTX makes the plural forms 100% all right.

G.

gábor hojtsy’s picture

Status: Active » Closed (duplicate)

Duplicate of http://drupal.org/node/267420 which was fixed earlier but not released in a stable release just yet.