I had several issues generating the POT file

Line 41: '#title' => 'Watermark',
Should be: '#title' => t('Watermark'),

Line 101: '#title' => 'Apply watermark to the following images',
Should be: '#title' => t('Apply watermark to the following images'),

Line 172: drupal_set_message(t('Watermark applied to image: ') . $row->filename);
Should be: drupal_set_message(t('Watermark applied to image: %file', array( '%file' => $row->filename ) ) );

Line 266: drupal_set_message(t("Image file $file not found."), 'error');
Should be: drupal_set_message(t('Image file %file not found.', array( '%file' => $file ) ), 'error');

Line 287: drupal_set_message(t("Image file $file is an unsupported format type=$type."), 'error');
Should be: drupal_set_message(t('Image file %file is an unsupported format type=%type.', array( '%file' => $file, '%type' => $type ) ), 'error');

Line 295: drupal_set_message(t("Failed to create handle for image file $file via function $function."), 'error');
Should be: drupal_set_message(t('Failed to create handle for image file %file via function %function.', array( '%file' => $file, '%function' => $function )), 'error');

Attached is an pu to date "fr.po" with the above mentionned fixes.

CommentFileSizeAuthor
#2 watermark.patch.txt2.22 KBJérôme
fr_46.po3.75 KBJérôme

Comments

kbahey’s picture

Please submit those fixes as a patch.

Check here for details on how to create one http://drupal.org/patch

Jérôme’s picture

Status: Active » Needs review
StatusFileSize
new2.22 KB

For "t" fixes I tought it wouldn't worth it.

Anyway, here it is :D

kbahey’s picture

Status: Needs review » Fixed

Thanks.

If it is one line, I will not ask for a patch, for more than that, it it far easier to apply and review as a patch.

Applied to HEAD and 4.7.

Anonymous’s picture

Status: Fixed » Closed (fixed)