patched version (4.7)

Admin interface

Administrative Options, Use Node Type in Link, check or uncheck: no effect

and

Default is checked. I can't save unchecked status.

Frontend

With the following texts a translation is not indicated:

"email this page"
"Message Body"

I save a translation, but am shown the english text.

Regards
quiptime

CommentFileSizeAuthor
#6 forward_0.module12.67 KBquiptime
#5 forward.module12.68 KBquiptime

Comments

seanr’s picture

Status: Active » Postponed

The 4.7 version needs to be completely rewritten due to the new features in the 4.6 version. I'll work in that in a coupe of weeks once I have time to get drupal 4.7 set up somewhere. ;) There's also a lot of work yet to be done to the 4.6 version as well.

quiptime’s picture

Status: Postponed » Fixed

Here is the fixed code for one bug:

file forward.module

line 116

old code
'#title' => 'Message Body',
new code
'#title' => t('Message Body'),

I found still another translation bug. FORWARD_TITLE is without function in the function forward_link(). After I changed the following lines, functions indicate the translated text.

line 228

old code
$links[] = l(t('email this %type', array('%type' => $forward_link_type)), "forward/$node->nid&cid=$node->cid", array('title' => FORWARD_TITLE), NULL);
new code
$links[] = l(t('email this %type', array('%type' => $forward_link_type)), "forward/$node->nid&cid=$node->cid", array('title' => t('Forward this page to a friend')), NULL);

line 237

old code
$links[] = l(t('email this %type', array('%type' => $forward_link_type)), "forward/$node->nid", array('title' => FORWARD_TITLE), NULL);
new code
$links[] = l(t('email this %type', array('%type' => $forward_link_type)), "forward/$node->nid", array('title' => t('Forward this page to a friend')), NULL);

line 242

old code
$links[] = l(t('email this %type', array('%type' => $forward_link_type)), "forward/$node->nid", array('title' => FORWARD_TITLE), NULL);
new code
$links[] = l(t('email this %type', array('%type' => $forward_link_type)), "forward/$node->nid", array('title' => t('Forward this page to a friend')), NULL);

Regards
quiptime

seanr’s picture

Status: Fixed » Closed (won't fix)

As I said, the 4.7 version of this module is out of date. Most of these should already be fixed in the 4.6 version. Please test that version ONLY until I am able to update the 4.7 version. If you can find bugs in the 4.6 version, I'd really apreciate that.

quiptime’s picture

Status: Closed (won't fix) » Active

I work with Drupal 4.7 and forward.module (patched cvs version). Is forward.module version 4.6 compatibly with Drupal 4.7?

quiptime’s picture

Status: Active » Fixed
StatusFileSize
new12.68 KB

Ok, here is the version (cvs with 4.7 patch) with that fixed all errors.

Version 4.6 has more functions. But this version is 4.7 compatibly and works well with most node types.

The file with the complete code is attached.

Regards
quiptime

quiptime’s picture

StatusFileSize
new12.67 KB

Sorry,

I forgot to remove debug code. Use please attachment of this post.

quiptime

Tobias Maier’s picture

you posted a patch which got not commited so it becomes the status "code needs review".
it is fixed when it got commited to cvs/head

btw. why do you make yourself so much work and write a patch for what which the module autor "postponed"
He told you to wait because he wants to port the 4.6-version to 4.7.
It would be much better if you MAYBE could help him to do this (ask him if he needs help)

please read how to make patches
because it is not a good practice to provide the whole module

and my last sentence to you:
welcome at drupal!

Tobias Maier’s picture

Status: Fixed » Needs review
quiptime’s picture

Status: Needs review » Fixed

I found still another bug. Hopefully it is the latter.

It is an error in the backend. administer -> settings -> forward -> Administrative Options -> Flood Control Error
Can't save changes in the text area.

Here is the fix:

look for the following line (304)
'#default_value' => variable_get('forward_flood_error_msg', t("In order to prevent spamming, we limit the number of messages you can send in a one hour period. Please retry later.")),

the new code of this line
'#default_value' => variable_get('forward_flood_error', t('In order to prevent spamming, we limit the number of messages you can send in a one hour period. Please retry later.')),

Regards quiptime

Tobias Maier’s picture

Status: Fixed » Needs review
seanr’s picture

Status: Needs review » Fixed

Housekeeping - all of this should be fixed in the current CVS.

Anonymous’s picture

Status: Fixed » Closed (fixed)