Ticket #256 (closed patch: fixed)

Opened 1 year ago

Last modified 11 months ago

translation handling in mod/community/invite

Reported by: tuxjoe Assigned to:
Priority: low Milestone: 0.9.1
Component: i18n Version: 0.9.0
Severity: normal Keywords: patch
Cc: Patch Included:
Review Stage:

Description

Hello, in one part of the file you can't get a translation, because there isn't used gettext. I would use the following code:

mod/community/invite (l. 26ff)

$body  = '<h3>' . __gettext("Invite people") . '</h3>';
    $body .= '<p>' . __gettext("Invite people to this community.") . '</p>';
    $body .= '<form action="" method="post">';
    
    $submit_search_label = __gettext("Search");
    
    $invite_search = '<p>' . __gettext("Name or username:") . '<input type="text" name="invite_name"/><br/><input type="submit"name="submit" value="' . __gettext("Search") . '"/></p>';

Attachments

invite_gettext.diff (1.1 kB) - added by renato on 01/16/08 05:11:51.

Change History

01/05/08 14:13:04 changed by tuxjoe

And the following line:

$body .= '<input type="submit" name="Invite" value="' . __gettext("Invite") '"/>';

01/05/08 14:15:01 changed by tuxjoe

sorry - the dot:

$body .= '<input type="submit" name="Invite" value="' . __gettext("Invite") . '"/>';

01/16/08 05:11:51 changed by renato

  • attachment invite_gettext.diff added.

01/16/08 05:13:22 changed by renato

  • keywords set to patch.

01/20/08 00:29:11 changed by ewout

  • status changed from new to closed.
  • resolution set to fixed.

Committed in r1520.