1
JUMPIK
how to add Japanese lang
  • 2004/5/9 14:02

  • JUMPIK

  • Just popping in

  • Posts: 1

  • Since: 2004/5/9 1


So how to add Japanese lang. I have add all Japanese pack on site, but when cllick on Jp flag i see strange lang??? You can see here
I have add this code in class/module.textsanitizer.php
// MT hack added by hsalazar //
    // multi-lingual hack by chad
    
global $xoopsConfig;

        
// if russian show russian else show nothing
      
$patterns[] = "/[ru](.*)[/ru]/sU"
      if (
$xoopsConfig['language'] == "russian") {
      
$replacements[] = '\1';
      } else { 
      
$replacements[] = "";
      }
    
// if english show english else show nothing
    
patterns[] = "/[en](.*)[/en]/sU";
    if (
$xoopsConfig['language'] == "english") {
    
$replacements[] = '\1';
    } else {
    
$replacements[] = "";
    }
    
// if japanese show japanese else show nothing
    
patterns[] = "/[jp](.*)[/jp]/sU";
    if (
$xoopsConfig['language'] == "japanese") {
    
$replacements[] = '\1';
    } else {
    
$replacements[] = "";
    }

    
// end multi-lingual hack
    // MT hack added by hsalazar //

Help me ???




TopTop



Login

Who's Online

165 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Latest GitHub Commits