PDA

View Full Version : translate user files to Spanish


SpainDreams
09-09-2006, 03:28 PM
As the version 2 does not include any translated files, I want to translate the most import ones to Spanish to show up in my own website.

Therefore I would like to know which files to I need to change (folder templates?).

Also I would need to change the $ sign for charges to Euro.

Thanks for your help

Boby
09-09-2006, 04:58 PM
Language files work only in phpLD 3.0+
You can try to "hardcode" the language in /include/functions.php but I don't guarantee it will work well.

In /include/functions.php you can change following code:
Content visible to registered users only. To this:
Content visible to registered users only. And add a file es.php to the /lang/ folder.

A quick guide how translations work can be found here:
http://www.phplinkdirectory.com/forum/showthread.php?p=11464#post11464 (Post #20)

To change the dollar sign in Euro, edit submit.tpl and detail.tpl

Boby

SpainDreams
09-09-2006, 11:05 PM
I have been able to translate some of the text but I can´t find the file: detail.tpl and in submit.tpl I can´t see where to change the $ to Euro.

Sorry to bother you

Boby
09-09-2006, 11:17 PM
You don't bother me :)

The template files (.tpl) are located in the /templates/ folder.
And sorry, the second file is not detail.tpl, it's payment.tpl :)

For the Euro sign, use following HTML code and not the sign from your keyboard because it needs to be valid:
Content visible to registered users only.
Boby

SpainDreams
09-11-2006, 11:19 AM
Hello,

thanks, but on which line of both mentioned files do I need to change the US Dollar sign to Euro.
Or: what do I need to look for?

Thanks for your time

Boby
09-11-2006, 12:35 PM
payment.tpl

Look for:
Content visible to registered users only.
Change to:
Content visible to registered users only.

submit.tpl

Look for:
Content visible to registered users only.
Change to:
Content visible to registered users only.
Look for:
Content visible to registered users only.
Change to:
Content visible to registered users only.
Look for:
Content visible to registered users only.
Change to:
Content visible to registered users only.