Updated comment describing what to do when a site language (translation) is added

This commit is contained in:
pezcurrel 2022-12-28 18:56:29 +01:00
parent e8d588c0f2
commit e7eb303094

View file

@ -23,7 +23,7 @@ for ($i=0; $i<$ndir; $i++)
$prepath.='../';
$path=preg_replace('#/+$#','',$path);
$supplangs=['ca','de','en','es','fr','gl','it','pt_BR','uk'];// when adding a language code here, it is necessary to add it also to "$menu" in this same file, to "$hlmap" in stats.php, to "$hitslang" and "$langs" in ../clitools/mustool.php, to "langs" in ../clitools/updtrans.bash (if missing), to function "langs" in ../clitools/crawler.php; and to run "../clitools/addlang.php <new language code>" locally and on the server
$supplangs=['ca','de','en','es','fr','gl','it','pt_BR','uk'];// when adding a language code here, it is necessary to add it also to "$menu" in this same file, to "$hlmap" in stats.php, to "$hitslang" and "$langs" in ../clitools/mustool.php, to "langs" in ../clitools/updtrans.bash (if missing), to function "getlangid" in ../clitools/getinstinfo.php; and to run "../clitools/addlang.php <new language code>" locally and on the server
$dlang=null;
if (preg_match('#/('.implode('|',$supplangs).')$#',$path,$lang)===1) {
$dlang=$lang[1];