Attached you find the Dutch translation of the forward module.

After translation I found that in the string "email this %type" the word "%type" not is translated. So the effect in Dutch can be very strange !

CommentFileSizeAuthor
#2 forward.module_1.patch1.27 KBjaydub
nl_8.po12.76 KBpromes

Comments

promes’s picture

Title: Dutch translation and I found an error by translating string "email this %type" » Solution for translating string "email this %type"

In module "forward.module" in: function forward_link($type, $node=0, $main=0)
Change these lines as given:

line 637 + 638:
if ($type == 'comment') {
old:
$forward_link_type = 'comment';
new:
$forward_link_type = t('comment');

line 642 thru 644:
old:
$forward_link_type = $node->type;
}
else $forward_link_type = 'page';
new:
$forward_link_type = t($node->type);
}
else $forward_link_type = t('page');

Thanks for a perfect module.

Joep

jaydub’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

I wrote a patch to make this change. Also, I added in code to extra the content type's 'pretty' name. I am working with CCK types and the content names are not very user friendly ie content_directory_listing...so the attached patch also shows the content type label in the 'Forward this ... X' part of the links array.

john.oltman’s picture

Status: Needs review » Closed (won't fix)

4.x version no longer supported.