1
Mamba
Problems with Language files
  • 2004/6/2 13:29

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I am having problems with language files in wfchannels module (1.0.5).

My understanding was that I create a subdirectory under /language, e.g. /language/spanish, then copy the files from /english subdirectory, translate the appropriate text, and when I switch the language, it will read the correct text. At least that's the way it seems to work with several other modules.

However, I did it for wfchannels, but I am getting weird effect:

In English it reads correctly the value of: _MD_SENDERNAME, i.e. "Sender's name" but when I switch to Spanish, it shows me "_MD_SENDERNAME".

What do I have to do to ensure that it takes the Spanish translation from the /language/spanish/main.php?

I've tried to add in the index.php something like this:

include_once XOOPS_ROOT_PATH."/modules/wfchannel/language/".$xoopsConfig['language']."/main.php";

but this didn't have any effect.

You can see:

http://cincylatino.com/test/modules/wfchannel/index.php?op=refer

Please switch between the UK and Spanish flags to see the issue.

Thanks for any help...

2
Herko
Re: Problems with Language files
  • 2004/6/2 13:35

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Make sure the translation isn't broken and has the correct formatting: define(_MD_SENDERNAME,"Translation");. Make sure the Translation doesn't have any "or 's.

Herko

3
Mamba
Re: Problems with Language files
  • 2004/6/2 13:47

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:

Make sure the translation isn't broken and has the correct formatting: define(_MD_SENDERNAME,"Translation");. Make sure the Translation doesn't have any "or 's.
Herko


I've copied the English original files into /spanish, and then translated them, so:

define("_MD_SENDERNAME", "Sender's name");

became:

define("_MD_SENDERNAME", "Nombre del remitente");

but it doesn't work.


4
Mamba
Re: Problems with Language files
  • 2004/6/3 5:41

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Problem fixed. One of the quotations marks was in a wrong place

Login

Who's Online

227 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 227


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits