The function userpoints_translation() dies not really work with multi-language sites!

This is because the actual name (Points, or whatever) never gets translated!

i would suppose the following function body:

  if (!isset($trans)) {
    $trans = array(
      '!Points' => t(variable_get(USERPOINTS_TRANS_UCPOINTS, 'Points')),
      '!points' => t(variable_get(USERPOINTS_TRANS_LCPOINTS, 'points')),
      '!Point'  => t(variable_get(USERPOINTS_TRANS_UCPOINT, 'Point')),
      '!point'  => t(variable_get(USERPOINTS_TRANS_LCPOINT, 'point')),
      '!Uncategorized'  => variable_get(USERPOINTS_TRANS_UNCAT, 'Uncategorized'),
      );
  }

Comments

Bilmar’s picture

subscribing

zet’s picture

subscribing

hejazee’s picture

Component: Code: userpoints_basic » Code: userpoints
Status: Active » Needs review
StatusFileSize
new1.08 KB

+1

This patch will solve the problem

Status: Needs review » Needs work

The last submitted patch, userpoints-multilangual-branded-points-791734-3.patch, failed testing.

hejazee’s picture

I hope this one will be applicable!

hejazee’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, userpoints-multilangual-branded-points-791734-5.patch, failed testing.

manuel.adan’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.