Changeset 1056 in svn


Ignore:
Timestamp:
2012-07-27T09:40:43+02:00 (3 years ago)
Author:
Xuefer
Message:

htdocs: updated language

Location:
trunk/htdocs/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/common/common-zh-simplified.lang.php

    r1054 r1056  
    11<?php
    22
    3 $strings = array();
     3$strings = array(
     4        'Cacher'
     5        => '缓存器',
     6        'Coverager'
     7        => '代码覆盖查看器',
     8        ''
     9        => '',
     10        );
    411
  • trunk/htdocs/common/common-zh-traditional.lang.php

    r1054 r1056  
    11<?php
    22
    3 $strings = array();
     3$strings = array(
     4        'Cacher'
     5        => '快取器',
     6        'Coverager'
     7        => '代码覆盖查看器',
     8        ''
     9        => '',
     10        );
    411
  • trunk/htdocs/common/common.php

    r1053 r1056  
    6767function xcache_validateFileName($name)
    6868{
     69    if (!preg_match('!^[a-zA-Z0-9._-]+$!', $name)) {
     70        var_dump($name);
     71    }
    6972    return preg_match('!^[a-zA-Z0-9._-]+$!', $name);
    7073}
     
    8184        $lang = $langMap[$lang];
    8285    }
     86    else if (!xcache_validateFileName($lang)) {
     87        return null;
     88    }
     89
    8390    $file = "$name-$lang.lang.php";
    84     if (xcache_validateFileName($file) && file_exists($file)) {
     91    if (file_exists($file)) {
    8592        return $file;
    8693    }
     
    236243}
    237244
    238 include(get_language_file("common"));
     245include(get_language_file("../common/common"));
    239246
    240247$modules = array();
Note: See TracChangeset for help on using the changeset viewer.