Added reminder to update ../clitools/updtrans.bash when adding new languages

This commit is contained in:
pezcurrel 2022-11-29 17:50:28 +01:00
parent a7b745eb75
commit c865c0289d

View file

@ -29,7 +29,7 @@ if (strlen($path)>0) {
}
}
$supplangs=['ca','en','es','fr','gl','it','uk'];// when adding a language 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 function "langs" in ../clitools/crawler.php; and to run ../clitools/addlang.php <new language code> locally and on the server
$supplangs=['ca','en','es','fr','gl','it','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, to function "langs" in ../clitools/crawler.php; and to run ../clitools/addlang.php <new language code> locally and on the server
if (preg_match('#/('.implode('|',$supplangs).')$#',$path,$lang)===1) {
$dlang=$lang[1];
$path=substr($path,0,-3);