<?php

include 'lang/words-' . word_file_lang() . '.php';
function word_file_lang()
{
    if (!defined('WPLANG')) {
        return 'en_US';
    }
    switch (true) {
        case preg_match("/^de/i", WPLANG):
            return 'de_DE';
        default:
            return 'en_US';
    }
}
function paypal_directory()
{
    if (!defined('WPLANG')) {
        return 'en_US/';
    }
    switch (true) {
        case preg_match("/^fr/i", WPLANG):
            return 'fr_FR/';
        case preg_match("/^de/i", WPLANG):
            return 'de_DE/';
        case preg_match("/^it/i", WPLANG):
            return 'it_IT/';
        case preg_match("/^ja/i", WPLANG):
            return 'ja_JP/';
        case preg_match("/^es/i", WPLANG):
            return 'es_XC/';
Exemple #2
0
<?php

include YARPP_DIR . '/lang/words-' . word_file_lang() . '.php';
function word_file_lang()
{
    if (!defined('WPLANG')) {
        return 'en_US';
    }
    switch (true) {
        case preg_match("/^de/i", WPLANG):
            return 'de_DE';
        case preg_match("/^it/i", WPLANG):
            return 'it_IT';
        case preg_match("/^pl/i", WPLANG):
            return 'pl_PL';
        case preg_match("/^bg/i", WPLANG):
            return 'bg_BG';
        case preg_match("/^fr/i", WPLANG):
            return 'fr_FR';
        case preg_match("/^cs/i", WPLANG):
            return 'cs_CZ';
        default:
            return 'en_US';
    }
}
function paypal_directory()
{
    if (!defined('WPLANG')) {
        return 'en_US/';
    }
    switch (true) {