1
liorel
change the lang. and everything around it...
  • 2004/2/24 16:59

  • liorel

  • Just popping in

  • Posts: 7

  • Since: 2004/2/23


Hello everyone..
i just found out this amazing XOOPS thing,
and i'm in my first stpes here... by now,
everything here look just cool..

my problem is , i'm right to left writing (hebrew),
so i need to change all the search, the login and
everything to my language.

how can i do that? i saw allready sites that made
this change, but i can't find the place to do that.

hope some one can help me with that.
anyway, thanks alot for everyone here,

Lior.

2
Mithrandir
Re: change the lang. and everything around it...


3
liorel
Re: change the lang. and everything around it...
  • 2004/2/24 17:57

  • liorel

  • Just popping in

  • Posts: 7

  • Since: 2004/2/23


Hi again...
thanks alot, as you said, its work, now everything
is from the right to the left...

i have another question, i hope you could help me
with that too...

i want to change the 'Username:' 'Password:'
and all those words to my lang. how can i do that?

thanks alot!!!

4
Vargr
Re: change the lang. and everything around it...
  • 2004/2/24 19:00

  • Vargr

  • Not too shy to talk

  • Posts: 130

  • Since: 2003/6/19


XOOPS uses variables instead of actual words. It then looks up the word it needs in an ACSII file (actually a .php file).

This way it is possible to tell XOOPS that it should "speak" French, Danish, Japanese or in your case Hebrew, as long as you provide XOOPS with the necessary language files.

Each module has a language directory in which will be directories of as a minimum english and in my case Danish and Japanese. In these directories you place your translated files.

Look these places to get an idea of what I talk about:

XOOPS-ROOT/language/english/
This is for the English language-files for the system

XOOPS-ROOT/modules/newbb/language/
This is for the English language-files for the newbb (or Forum) module.


A file might look like this:

// $Id: blocks.php,v 1.5 2003/02/12 11:37:27 okazu Exp $
// Blocks
define("_MB_NEWBB_FORUM","Forum");
define("_MB_NEWBB_TOPIC","Topic");
define("_MB_NEWBB_RPLS","Replies");
define("_MB_NEWBB_VIEWS","Views");
define("_MB_NEWBB_LPOST","Last Post");
define("_MB_NEWBB_VSTFRMS"," Visit Forums");
define("_MB_NEWBB_DISPLAY","Display %s posts");
define("_MB_NEWBB_DISPLAYF","Display in full size");
?>


Take the entire English direcory and copy it over, renaming it hebrew or what-ever (notice there is no capital letters in the name).

Now rename Forum to what-ever it would be in Hebrew.

Do this for all language files used on your site.'


Go to XOOPS-ROOT/language/hebrew/

and find the file [b]global.php[/b} and go to bottom.


//%%%%% LANGUAGE SPECIFIC SETTINGS %%%%%
define('_CHARSET', 'ISO-8859-1');
define('_LANGCODE', 'en');

// change 0 to 1 if this language is a multi-bytes language
define("XOOPS_USE_MULTIBYTES", "0");
?>


Change the settings to what-ever is appropriate (I know nothing of Hebrew).

Finally, go to the XOOPS administration side and select the default language. Hebrew shoul show up if you did the above .


But! Before you start this work, spend some time to see if others already did translate the XOOPS languagefiles into Hebrew.

But at least you should know the basics and the principle now.



Take a look at DJVF to see a multilinguel site. Be forwarned, however, that XOOPS does not -yet - support multilinguality (switching between different languages on the run), så a site such as DJVF requires a lot of work and hacking, but it is possible.



Good Luck!

Login

Who's Online

284 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 284


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