Change: add lang attribute to the main template, to the language files and to the processing scripts
This commit is contained in:
parent
a6daece140
commit
ca31135c36
8 changed files with 13 additions and 5 deletions
|
@ -29,9 +29,10 @@
|
|||
}
|
||||
require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php');
|
||||
|
||||
$c['meta']['robots'] = "noindex, follow";
|
||||
$c['meta']['description'] = htmlspecialchars(strip_tags(str_replace("\n", '', JLOG_DESCRIPTION)), ENT_QUOTES);
|
||||
$c['meta']['title'] = $l['index_topic'];
|
||||
$c['meta']['robots'] = "noindex, follow";
|
||||
$c['meta']['description'] = htmlspecialchars(strip_tags(str_replace("\n", '', JLOG_DESCRIPTION)), ENT_QUOTES);
|
||||
$c['meta']['title'] = $l['index_topic'];
|
||||
$c['meta']['html_language'] = $l['html_language'];
|
||||
|
||||
$c['main'] = "";
|
||||
$cc = array();
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
"err404_message" => "Diese Seite existiert leider nicht. Versuchen Sie sie über die Suchfunktion zu finden.",
|
||||
|
||||
"language" => "de-de",
|
||||
"html_language" => "de",
|
||||
"locale" => array('de_DE.UTF-8', 'de_DE.UTF-8@euro', 'de_DE'),
|
||||
"date_format" => "%d. %B %Y um %H:%M Uhr",
|
||||
"date_format_comment" => "%d.%m.%Y",
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
"err404_message" => "There is no such page. Please try the search engine on this page.",
|
||||
|
||||
"language" => "en-gb",
|
||||
"html_language" => "en",
|
||||
"locale" => array( "en_US", "us", "verUS" ),
|
||||
"date_format" => "%d. %B %Y um %H:%M Uhr",
|
||||
"date_format_comment" => "%d.%m.%Y",
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
"err404_message" => "Non ci sono file riguardanti la ricerca in questa pagina. Perfavore prova a usare il motore di ricerca di questa pagina.",
|
||||
|
||||
"language" => "it-it",
|
||||
"html_language" => "it",
|
||||
"locale" => array( "it_IT", "it" ),
|
||||
"date_format" => "%d. %B %Y alle %H:%M",
|
||||
"date_format_comment" => "%d.%m.%Y",
|
||||
|
|
|
@ -85,6 +85,7 @@
|
|||
"err404_message" => "Nie ma takiej strony. Prosze użyć przeglądarki na tej stronie.",
|
||||
|
||||
"language" => "en-gb",
|
||||
"html_language" => "pl",
|
||||
"locale" => array( "en_US", "us", "verUS" ),
|
||||
"date_format" => "%d. %B %Y um %H:%M Uhr",
|
||||
"date_format_comment" => "%d.%m.%Y",
|
||||
|
|
|
@ -85,7 +85,8 @@
|
|||
"err404_topic" => "Error 404 - Sidan hittades inte",
|
||||
"err404_message" => "Denna sida existerar tyvärr inte. Försök hitta den genom sökfunktionen.",
|
||||
|
||||
"language" => "sv-se",
|
||||
"language" => "sv-se",
|
||||
"html_language" => "sv",
|
||||
"locale" => array('sv_SE', 'sve_sve'),
|
||||
"date_format" => "%Y-%B-%d kl %H:%M",
|
||||
"date_format_comment" => "%Y-%m-%d",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><jlog:title /> - <jlog:website /></title>
|
||||
<jlog:aditional-header />
|
||||
|
@ -33,6 +32,7 @@
|
|||
</dl>
|
||||
<div id="main">
|
||||
<jlog:content />
|
||||
<html lang="<jlog:html-language />">
|
||||
</div>
|
||||
<div id="footer"> </div>
|
||||
</div>
|
||||
|
|
|
@ -54,6 +54,7 @@ if(defined('JLOG_ADMIN')) {
|
|||
|
||||
$_search = array (
|
||||
"<jlog:language />",
|
||||
"<jlog:html-language />",
|
||||
"<jlog:website />",
|
||||
"<jlog:title />",
|
||||
"<jlog:aditional-header />",
|
||||
|
@ -81,6 +82,7 @@ $_search = array (
|
|||
|
||||
$_replace = array (
|
||||
$l['language'],
|
||||
$l['html_language'],
|
||||
htmlspecialchars(JLOG_WEBSITE, ENT_QUOTES),
|
||||
htmlspecialchars($c['meta']['title']),
|
||||
$c['meta']['aditionalheader'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue