I have been using the potx module to translate some contributed modues (Drupal 5.1 local installation for test and learning purposes). So far, so good as it is easier for me to use than the extractor.php with 4.x.

However, I have noticed it skips or seems to skip some strings when exporting the texts. Example:

With pathauto.module (pathauto.module,v 1.44.2.5 2007/01/20 23:26:24) installed, I go to the "Extract strings" tab in localization page of my site and I ask it to extract the strings.

No error message, it generates a text and I copy-paste it into a plain text doc (Windows 2K), then I change the extension to .po and I open it with poedit. After adding the needed data (plural, language code etc...), I proceed to translate it.

But there are strings that refuse to be translated and, when searched with poedit, are no present inside the po file.

One example is the "Pathauto node settings (second fold inside the pathauto page). After doing some research, I see it seems to ignore the strings inside the pathauto_node.inc file (that are inside the pathauto module directory).

This is one example. If anybody is interested, I could try to provide more feedback.

Thank you :)

Comments

gábor hojtsy’s picture

Status: Active » Postponed (maintainer needs more info)

Just comitted a few performance and bug fixes to potx.module and potx.inc. Tested pathauto module with the latest version, and it seems to be working really nicely, although I doubt I have comitted any fixes which would have to deal with what might have gone wrong for you (but I have comitted a whole lot of changes). Please download a new development snapshot of potx.module later and try that, then get back to this report and tell me whether it works.

Thanks for reporting!

Anonymous’s picture

Gábor,

I downloaded the new development snapshot of potx.module and, after using it I saw that instead of extracting just 82 strings (as the old version did), this extracts 131.

I have translated it whole and imported the new translation and everything seems ok. No untranslated messages.

I'll try with other modules (cck, i18n and views mainly) and I'll report back only if I find sometning odd.

Thanks a lot indeed :)

gábor hojtsy’s picture

Status: Postponed (maintainer needs more info) » Fixed

OK, marking this fixed then.

Anonymous’s picture

Status: Fixed » Closed (fixed)