Pārlūkot izejas kodu

Fixing translate system

svalavuo 5 dienas atpakaļ
vecāks
revīzija
8b97cdec6e
3 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 1 1
      admin/users.php
  2. 2 2
      public/index.php
  3. 1 1
      public/publication.php

+ 1 - 1
admin/users.php

@@ -199,7 +199,7 @@ switch ($action) {
 }
 ?>
 <!DOCTYPE html>
-<html lang="<?php echo getCurrentLanguage(); ?>">
+<html lang="<?php echo Translation::getCurrentLang(); ?>">
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">

+ 2 - 2
public/index.php

@@ -37,7 +37,7 @@ $categories = $publication->getCategories();
 $totalPages = ceil($totalPublications / $limit);
 ?>
 <!DOCTYPE html>
-<html lang="<?php echo getCurrentLanguage(); ?>">
+<html lang="<?php echo Translation::getCurrentLang(); ?>">
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -53,7 +53,7 @@ $totalPages = ceil($totalPublications / $limit);
                 <a href="categories.php"><?php echo t('nav_categories'); ?></a>
                 <a href="search.php"><?php echo t('nav_search'); ?></a>
             </nav>
-            <?php echo $translation->getLanguageSwitcher('index.php'); ?>
+            <?php echo Translation::getLanguageSwitcher('index.php'); ?>
         </div>
     </header>
 

+ 1 - 1
public/publication.php

@@ -53,7 +53,7 @@ if ($pub['categories_array']) {
                 <a href="categories.php"><?php echo t('nav_categories'); ?></a>
                 <a href="search.php"><?php echo t('nav_search'); ?></a>
             </nav>
-            <?php echo $translation->getLanguageSwitcher('publication.php?id=' . $id); ?>
+            <?php echo Translation::getLanguageSwitcher('publication.php?id=' . $id); ?>
         </div>
     </header>