Improve locale handling

This commit is contained in:
Pierre Rudloff 2017-05-30 23:30:21 +02:00
parent b4dd0aeb29
commit 0f80cbd333
7 changed files with 118 additions and 16 deletions

View file

@ -1,6 +1,6 @@
{locale path="../i18n" domain="Alltube"}
<!Doctype HTML>
<html lang="{$locale|replace:'_':'-'}">
<html lang="{$locale->getBcp47()}">
<head>
<meta charset="UTF-8" />
<meta name=viewport content="width=device-width, initial-scale=1">
@ -10,6 +10,7 @@
<meta property="og:description" content="{$description|escape}" />
{/if}
<link rel="stylesheet" href="{base_url}/dist/main.css" />
<link rel="stylesheet" href="{base_url}/bower_components/flag-icon-css/css/flag-icon.min.css" />
<title>AllTube Download{if isset($title)} - {$title|escape}{/if}</title>
<link rel="canonical" href="{$canonical}" />
<link rel="icon" href="{base_url}/img/favicon.png" />