tPanel 1.0 is here: imports without SSH, dedicated IPs, Team Manager and more.See what’s in it

Translations

Interface languages and how to add one.

Interface text is written in English in the templates and passed through t(). Catalogs in panel/lang/<code>.json map the English text to the translation; anything missing is shown in English.

  • php bin/i18n.php extract lists every translatable text in lang/strings.json.
  • php bin/i18n.php status shows how complete each language is.
  • php bin/i18n.php prune removes translations of text that no longer exists.
  • python3 lang/check.py <code> checks one catalog (all strings present, :placeholders kept).
  • python3 bin/i18n-wrap.py <templates> wraps plain text in new templates with t().

Text with values uses placeholders: t('Certificate expired :date', ['date' => $d]). Keep product names, paths and commands in English.

To add a language, add its code and name to TivroPanel\Core\I18n::LANGUAGES and create lang/<code>.json.