Не поручается добавить украинский язык

Questions about how to install and problems installing - please read the documentation first!
Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Polyglott_XH

Post by Maxim » Thu Oct 09, 2014 9:20 am

Code: Select all

<?php echo $sn?>
THANK YOU
Maxim wrote:"Polyglott_XH" не учитывает ".html" и "?", можете исправить плагин?
cmb wrote:I'll have a look at it.
[ external image ] Не получилось?
Может быть подскажите, где подправить? Если не получается универсально.

[ external image ] Did not work?
Maybe you will tell me where to fix? If not versatile.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 13274
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Polyglott_XH

Post by cmb » Thu Oct 09, 2014 11:13 am

Maxim wrote:
Maxim wrote:"Polyglott_XH" не учитывает ".html" и "?", можете исправить плагин?
cmb wrote:I'll have a look at it.
[ external image ] Did not work?
Maybe you will tell me where to fix? If not versatile.
Thanks for the reminder. :)

Please try the following change in plugins/polyglott/classes/Model.php line 235ff:

Code: Select all

        if (isset($this->tags[$tag][$language])) {
            $res .= $this->tags[$tag][$language];
        } 
If that works, I will add a respective configuration option for the next version.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

html

Post by Maxim » Fri Oct 10, 2014 4:01 am

Code: Select all

public function languageURL($language, $tag)
{
    $res = $this->getInstallationUrl();
    if ($language != $this->defaultLanguage) {
        $res .= $language . '/';
    }
    if (isset($this->tags[$tag][$language])) {
        $res .= $this->tags[$tag][$language]. '.html';
    }
    return $res;
}
. '.html'
THANK YOU!!!
Simple Hosting
Бедная, бросаемая бурею, безутешная!

Post Reply