add a new language?

Discussion in 'Templates customization' started by supercain, Dec 11, 2008.

  1. supercain

    supercain New Member

    Joined:
    Dec 10, 2008
    Messages:
    9
    hi,

    i just got aMember and i was wondering how to add a new language such as Japanese. In the mean time i used Dutch nl.php and nl-def.php files to use them as Japanese, but doing so makes that the nl string be used instead of the jp that would be much more suitable. How can i add the jp string or whatever for other languages to be recognized?

    Thank you.
  2. supercain

    supercain New Member

    Joined:
    Dec 10, 2008
    Messages:
    9
    Any answer?
  3. supercain

    supercain New Member

    Joined:
    Dec 10, 2008
    Messages:
    9
    Hey! nobody knows or what??
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Make a copy the nl-def.php and nl files, renaming them to jp-, then in jp-def.php change the

    $GLOBALS['_LANG']['nl'] = array(
    'title' => 'Nederlands',
    'self_title' => 'Nederlands',
    'encoding' => 'ISO-8859-1',
    'locale' => 'nl_NL.ISO8859-1',
    'email_encoding' => 'ISO-8859-1',
    );

    to
    $GLOBALS['_LANG']['jp'] = array(

    and
    'encoding' => 'ISO-2022-JP',

    or you can try UTF-8, shift=jis
    etc..

    David
  5. supercain

    supercain New Member

    Joined:
    Dec 10, 2008
    Messages:
    9
    hi,

    thanks, man. Thats exactly what i hade already done. But i got an error when i try to load the language. I retried that method but now i cant see the option for that language in the admin panel. However i appreciate you have confirmed that what i was doing was right. As it didnt work at the beginning i though that maybe i needed to do something else. So as right after you upload the jp.php and jp-def.php files these should appear automatically for selection in the admin panel? because they dont....

    Thank you.

Share This Page