Amount translation

Post your questions about our modules (for example: SimplePayPal) here.

Amount translation

Postby theant on 25 Jun 2009, 12:47



Hi
is it possible to translate the "amount" word without to hack the files?
Best regards


theant
 
Posts: 5
Joined: 25 Jun 2009, 12:45

Re: Amount translation

Postby fabrizio on 25 Jun 2009, 23:47

Yes, you can edit the translation file. It's in the "lang" folder. Pick the one that has the same locale as your Joomla install.

Best regards
Fabrizio
fabrizio
 
Posts: 1282
Joined: 31 Jan 2009, 12:23
Location: Lugano, Switzerland

Re: Amount translation

Postby theant on 27 Jun 2009, 09:05

Thanks a lot. It is correct (the Italian one) but it display "Amount" instead of "Importo":
http://www.vorrei.org/index.php
Module "Un contributo per la rivista" on the right
theant
 
Posts: 5
Joined: 25 Jun 2009, 12:45

Re: Amount translation

Postby fabrizio on 27 Jun 2009, 09:27

Humm.... very strange!
Image

I'll attach an updated version of the file, try unzipping it and copying this file in your /languages/it-IT/ folder and overwrite the existing file.
Maybe a folder premission issue?

Fabrizio
You do not have the required permissions to view the files attached to this post.
fabrizio
 
Posts: 1282
Joined: 31 Jan 2009, 12:23
Location: Lugano, Switzerland

Re: Amount translation

Postby theant on 27 Jun 2009, 09:46

Permissions are ok and it show Amount again :(
theant
 
Posts: 5
Joined: 25 Jun 2009, 12:45

Re: Amount translation

Postby fabrizio on 27 Jun 2009, 13:52

What is your Joomla language (frontend)? You can check it out by bgoing to Extensions -> Language Administration. It's the one with the "star".
Image

EDIT: Just noticed that almost all strings are italian... Can you confirm the it-IT.mod_simplepaypal.ini file is in languages/it-IT? Never had issues with the translation, and on my site it works fine (see here for example, this is a live site: http://www.gal.ch/index.php?option=com_ ... &Itemid=34)

Fabrizio
fabrizio
 
Posts: 1282
Joined: 31 Jan 2009, 12:23
Location: Lugano, Switzerland

Re: Amount translation

Postby theant on 28 Jun 2009, 10:25

It's italian and all the language items are correctly translated. The file is into Italian directory and it has 644 permission.
It is very weird.
theant
 
Posts: 5
Joined: 25 Jun 2009, 12:45

Re: Amount translation

Postby fabrizio on 28 Jun 2009, 13:06

Very weird indeed. Without having access to the site it will be very difficult for me to debug.
I assume you have already tried to reinstall the software. I'll attach a current ZIP file to this post, you can try with this one. Please notice that in Joomla!, uninstalling a module deletes all data associated to it.

Another option is to manually edit the /modules/mod_simplepaypal/tmpl/default.php file and on line 44 change
Code: Select all
$amountLine .= JText::_('Amount').':&nbsp;<input type="text" name="amount" size="4" maxlength="10" value="'.$params->get('amount').'" style="text-align:right;" />'."\n"

to
Code: Select all
$amountLine .= JText::_('Importo').':&nbsp;<input type="text" name="amount" size="4" maxlength="10" value="'.$params->get('amount').'" style="text-align:right;" />'."\n"

I'd use this as a last resort, if all else fails, it is neither elegant nor the correct way to proceed, but it surely will translate "Amount"... :roll:

Fabrizio
You do not have the required permissions to view the files attached to this post.
fabrizio
 
Posts: 1282
Joined: 31 Jan 2009, 12:23
Location: Lugano, Switzerland

Re: Amount translation

Postby theant on 29 Jun 2009, 13:03

Ok, I did it manually.
Thanks a lot
theant
 
Posts: 5
Joined: 25 Jun 2009, 12:45

Re: Amount translation

Postby fabrizio on 29 Jun 2009, 13:22

You're welcome ;)
fabrizio
 
Posts: 1282
Joined: 31 Jan 2009, 12:23
Location: Lugano, Switzerland

Re: Amount translation

Postby aortis on 17 Jan 2010, 14:06

I tried it also, thanks a lot!...
aortis
 
Posts: 2
Joined: 11 Jan 2010, 03:18


Return to Modules

Who is online

Users browsing this forum: No registered users and 1 guest