Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

dashboard

user666 edited this page Nov 26, 2022 · 2 revisions

how to add new translation on dashboard?

translations are located at dashboard/incl/lang
image

  • Copy original/main lang (EN) and raname it
  • locale"LANGCODE".php
  • translate the values in it

It works as follows:

  1. scan lang folder
  2. cuts out ".php" and "locale" from file names
    result is $Lang
  3. create link "$Lang" to lang/switchLang.php?lang='.$Lang.'
    <a class="dropdown-item" href="lang/switchLang.php?lang='.$Lang.'">'.$Lang.'</a>
  4. print list
    image

Clone this wiki locally