Merge pull request #1272 from ArthurHoaro/feature/html-lang
Accessibility: specify the HTML lang attribute
This commit is contained in:
commit
90e048594a
20 changed files with 20 additions and 19 deletions
|
@ -123,6 +123,8 @@ private function initialize()
|
||||||
$this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false));
|
$this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false));
|
||||||
$this->tpl->assign('token', $this->token);
|
$this->tpl->assign('token', $this->token);
|
||||||
|
|
||||||
|
$this->tpl->assign('language', $this->conf->get('translation.language'));
|
||||||
|
|
||||||
if ($this->linkDB !== null) {
|
if ($this->linkDB !== null) {
|
||||||
$this->tpl->assign('tags', $this->linkDB->linksCountPerTag());
|
$this->tpl->assign('tags', $this->linkDB->linksCountPerTag());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1064,7 +1064,6 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
|
||||||
$PAGE->assign('api_enabled', $conf->get('api.enabled', true));
|
$PAGE->assign('api_enabled', $conf->get('api.enabled', true));
|
||||||
$PAGE->assign('api_secret', $conf->get('api.secret'));
|
$PAGE->assign('api_secret', $conf->get('api.secret'));
|
||||||
$PAGE->assign('languages', Languages::getAvailableLanguages());
|
$PAGE->assign('languages', Languages::getAvailableLanguages());
|
||||||
$PAGE->assign('language', $conf->get('translation.language'));
|
|
||||||
$PAGE->assign('gd_enabled', extension_loaded('gd'));
|
$PAGE->assign('gd_enabled', extension_loaded('gd'));
|
||||||
$PAGE->assign('thumbnails_mode', $conf->get('thumbnails.mode', Thumbnailer::MODE_NONE));
|
$PAGE->assign('thumbnails_mode', $conf->get('thumbnails.mode', Thumbnailer::MODE_NONE));
|
||||||
$PAGE->assign('pagetitle', t('Configure') .' - '. $conf->get('general.title', 'Shaarli'));
|
$PAGE->assign('pagetitle', t('Configure') .' - '. $conf->get('general.title', 'Shaarli'));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue