MastodonHelp/web/lib/supplangs.php

21 lines
1.1 KiB
PHP
Raw Normal View History

2023-12-26 11:16:24 +01:00
<?php
// when adding a language code here, it is necessary to add it to the "localemap" function in localemap.php, and to add it to "langs" variable in "../../clitools/updtrans.bash" (if missing), and to run "../../clitools/addlang.php <new language code>" locally and on the server --- it is *no longer necessary* to modify "$menu" variable in "../index.php", "$hlmap" variable in "../stats.php", "$hitslang" and "$langs" variables in "../../clitools/mustool.php" and "getlangid" function in "../../clitools/getinstinfo.php"
2023-12-26 11:16:24 +01:00
$supplangs=[
/* 'ca'=>['orname'=>'Català','trname'=>_('Catalan')],
'de'=>['orname'=>'Deutsch','trname'=>_('German')],*/
'en'=>['orname'=>'English','trname'=>_('English')],
/* 'es'=>['orname'=>'Español','trname'=>_('Spanish')],
'fr'=>['orname'=>'Français','trname'=>_('French')],
'gl'=>['orname'=>'Galego','trname'=>_('Galician')],*/
'it'=>['orname'=>'Italiano','trname'=>_('Italian')],
/* 'pt'=>['orname'=>'Português','trname'=>_('Portuguese')],
'pt_BR'=>['orname'=>'Português (BR)','trname'=>_('Portuguese (BR)')],
2023-12-26 11:16:24 +01:00
'uk'=>['orname'=>'Українська','trname'=>_('Ukrainian')]*/
];
$supplangscodes=array_keys($supplangs);
?>