Translation issue

6 replies [Last post]
djoulle
Offline
Joined: 01/14/2010
Status: 
Answered

 Hello,

To use your great module on a multilanguage site I'm using the Translation template extractor module to generate a .po file to translate it to french and german.

I'm facing a little problem with a string that can't be translated, the membership plan description on the registration page (enforced membership) : Niveau 1 - 39.00 francs every 3 Months, these words "every 3 Months" aren't speficied in the .po file.

Maybe its an error from the Translation template extractor, can you send me a blank .po file ?

Best regards

Julien

Leighton Whiting
Offline
Joined: 06/02/2009
Julien, The problem was that

Julien,
The problem was that this text was being dynamically generated, and as such wasn't translated. I changed the way it works now so that it will add the following words to the .po file:

every, Day, Days, Month, Months, Week, Weeks, Year, Years

It will be released with the next version release.

Sincerely,
Leighton Whiting

djoulle
Offline
Joined: 01/14/2010
Thank you Leigthon, There are

Thank you Leigthon,

There are some more words to make translatable (in the Paypal api as well), I can make you a precise list if it can help you.

An other useful thing would be to can change Paypal's "lc" parameter on the admin page (ms_paypal_api.module), to be able to select the default country.

Kind regards

Julien

Leighton Whiting
Offline
Joined: 06/02/2009
Julien, A list would be nice,

Julien,
A list would be nice, and thanks for pointing out the lc setting, I will add a new setting in the admin area for that.

Sincerely,
Leighton Whiting

djoulle
Offline
Joined: 01/14/2010
 Hi Leigthon, Here are some

 Hi Leigthon,

Here are some more text which need to be translatable :

ms_membership.module

799

 

function ms_membership_get_membership_status_text($status) {

  switch ($status) {

    case 0: return 'Inactive';

    case 1: return 'Active';

    case 2: return 'Cancelled';

    case 3: return 'Completed';

  }

}

function ms_membership_get_membership_statuses() {

  $statuses = array(

    '0' => 'Inactive',

    '1' => 'Active',

    '2' => 'Cancelled',

    '3' => 'Completed'

    );

911

 

function ms_membership_txn_type($txn_type) {

  switch ($txn_type) {

    case 'subscr_signup': return "<span style='color:green;'>Signup</span>";

    case 'subscr_payment': return "<span style='color:blue;'>Payment</span>";

    case 'subscr_modify': return "<span style='color:orange;'>Modification</span>";

    case 'subscr_cancel': return "<span style='color:red;'>Cancellation</span>";

    case 'subscr_eot': return "<span>End of Term</span>";

    case 'web_accept': return "<span style='color:green;'>Purchase</span>";

    default: return $txn_type;

  }

}

1049

 

function ms_membership_get_string_time($p1, $t1) {

  switch ($t1) {

    case 'D': {$unit = 'day';break;}

    case 'W': {$unit = 'week';break;}

    case 'M': {$unit = 'month';break;}

    case 'Y': {$unit = 'year';break;}

    default: {$unit = $t1;break;}

  }

 

 

 

ms_paypal_api_class.php

25

$form .= "<input type='submit' value='Click Here'></center></form>";

thanks!

Julien

 

 

Leighton Whiting
Offline
Joined: 06/02/2009
Julien, Thanks for the

Julien,
Thanks for the detailed report, I'll get these fixed and in the next version.

Sincerely,
Leighton Whiting

Leighton Whiting
Offline
Joined: 06/02/2009
Julien, The translation

Julien,
The translation issues have been fixed in the new 5.9 version, and the 'lc' feature will be implemented in Membership Suite 6.0

Sincerely,
Leighton Whiting

Twitter Feed