]> git.mxchange.org Git - friendica.git/commitdiff
Set the page language
authorMichael <heluecht@pirati.ca>
Thu, 13 Feb 2025 06:47:19 +0000 (06:47 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 13 Feb 2025 06:47:19 +0000 (06:47 +0000)
view/php/minimal.php
view/theme/frio/php/default.php
view/theme/frio/php/minimal.php
view/theme/frio/php/standard.php
view/theme/smoothly/php/default.php

index 22f9bbeeaf413d50df912de14d92ad33ae9a4916..fec1d677167918f44d7391ac9f5e3c9cdb8d137e 100644 (file)
@@ -13,7 +13,7 @@
 ?>
 
 <!DOCTYPE html>
-<html>
+<html lang="<?php echo Friendica\DI::l10n()->getCurrentLang(); ?>">
 <head>
   <title><?php if(!empty($page['title'])) echo $page['title'] ?></title>
   <script>var baseurl="<?php echo Friendica\DI::baseUrl() ?>";</script>
index bfceee0f66b4f2e3a264d7e5638b22ae1a425dc2..d569b190ed2771c3fb507d81226cd141a57abf4f 100644 (file)
@@ -30,7 +30,7 @@ $view_mode_class     = (DI::mode()->isMobile() || DI::mode()->isMobile()) ? 'mob
 $is_singleuser       = DI::config()->get('system', 'singleuser');
 $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
 ?>
-<html>
+<html lang="<?php echo DI::l10n()->getCurrentLang(); ?>">
        <head>
                <title><?php if (!empty($page['title'])) {
                        echo $page['title'];
index f75c6a6ac78d7f8098d5070be05815d29d72189d..06c64d66d3626eda316afce2b99918f768fb98e8 100644 (file)
@@ -10,7 +10,7 @@ use Friendica\DI;
 
 ?>
 <!DOCTYPE html>
-<html>
+<html lang="<?php echo DI::l10n()->getCurrentLang(); ?>">
 <head>
        <title><?php if(!empty($page['title'])) {
                echo $page['title'];
index b8e6a125e30926726930bbfcdeacd004c2212251..bb9a0a4c7a163bab9926eb4139eaecc32bd93d02 100644 (file)
@@ -14,7 +14,7 @@ $frio = 'view/theme/frio';
 
 ?>
 <!DOCTYPE html>
-<html>
+<html lang="<?php echo DI::l10n()->getCurrentLang(); ?>">
 <head>
        <title><?php if(!empty($page['title'])) {
                echo $page['title'];
index a496b8b19a9f907954026454cc51c94576dc636b..9b0f39c50e608ac01ebd3d18762a98ba315041d7 100644 (file)
@@ -7,7 +7,7 @@
  */
 ?>
 <!DOCTYPE html>
-<html>
+<html lang="<?php echo Friendica\DI::l10n()->getCurrentLang(); ?>">
 <head>
   <title><?php if(!empty($page['title'])) echo $page['title'] ?></title>
   <script>var baseurl="<?php echo Friendica\DI::baseUrl() ?>";</script>