Signup module cannot be easily translated, as the .pot file is outdated and the translation functions are incorrectly used (format_plural() function for example, which may not be used laready-translated strings).

Attached archive thus contains updated files based on 4.7.0 version (signup.module, signup_conflicts/signup_conflicts.module, po/signup-module.pot), and a french translation file (almost complete).

Hope this helps.

Comments

dww’s picture

instead of a zip file with modified files (which are now out of date, in fact), can you please attach a patch for the changes to the code you've made? see http://drupal.org/diffandpatch for more info.

you can attach the fr.po file directly to a follow-up comment.

that'll make it a lot easier for me to actually apply these changes.

thanks!
-derek

Uersu’s picture

StatusFileSize
new7.94 KB

I have just started to translate the module into German. I have the impression that the .pot file that you get with the module seems to be outdated. Also there is no pot file for the contributed module signup-conflicts.

I will attach the pot files that I have just created.

Lastly, I get some error messages when I run the extract.php tool. I'll put the messages in here, as you guys are all much more experienced at fixing such things.

I hope that this helps.

C:\My_webdev\htdocs\drupal\sites\ferienpass1\modules\signup>C:\programs\php\php extractor.php
Invalid marker content in signup.module:208
* t('

Current Signups -- '.l(t('view signup schedule'),"user/$user->uid/signups").'

')

Invalid marker content in signup.module:773
* format_plural($event->reminder_days_before,t('day'),t('days'))

Invalid marker content in contrib/signup_conflicts/signup_conflicts.module:31
* format_plural($conflicts['total'],t('conflict exists'),t('conflicts exist'))

Invalid marker content in contrib/signup_conflicts/signup_conflicts.module:156
* format_plural($total_conflicts,t('conflict'),t('conflicts'))

Invalid marker content in contrib/signup_conflicts/signup_conflicts.module:183
* format_plural($total_conflicts,t('conflict'),t('conflicts'))

Invalid marker content in contrib/signup_conflicts/signup_conflicts.module:281
* format_plural($return['total'],t('conflict'),t('conflicts'))

Uersu’s picture

StatusFileSize
new3.23 KB

Since - I think - we can only attach one file per comment, here another pot file.

Uersu’s picture

StatusFileSize
new1.16 KB

And the last pot file

dww’s picture

Assigned: Unassigned » dww
Status: Active » Fixed

i fixed the bugs and ran the (now working cleanly) extractor.php to generate fresh .pot files. ported/committed fixes and new .pot files to HEAD, DRUPAL-5, DRUPAL-4-7 and DRUPAL-4-6.

i'll try to be good about re-generating .pot files whenever i change t() strings from here on out, but feel free to open new issues if you find other problems in this regard.

thanks,
-derek

Anonymous’s picture

Status: Fixed » Closed (fixed)