Merge pull request #1272 from ArthurHoaro/feature/html-lang

Accessibility: specify the HTML lang attribute
This commit is contained in:
ArthurHoaro 2019-03-02 10:54:30 +01:00 committed by GitHub
commit 90e048594a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 20 additions and 19 deletions

View file

@ -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());
} }

View file

@ -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'));

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head> <head>
{include="includes"} {include="includes"}
</head> </head>