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:
Post
by Maxim » Thu Oct 09, 2014 9:20 am
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.
-
cmb
- Posts: 14225
- Joined: Tue Jun 21, 2011 11:04 am
- Location: Bingen, RLP, DE
-
Contact:
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.
-
Maxim
- Posts: 121
- Joined: Thu Jun 13, 2013 6:52 am
- Location: Запорожье
-
Contact:
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!!!