language list fix

svn path=/trunk/boinc/; revision=8771
This commit is contained in:
David Anderson 2005-10-29 04:56:33 +00:00
parent d864447519
commit c2dff598d9
2 changed files with 10 additions and 5 deletions

View File

@ -13428,3 +13428,9 @@ David 28 Oct 2005
user/
create_account_form.php
sample_index.php
David 28 Oct 2005
- don't show languages like 50845_en in language_select page
html/inc/
translation.inc

View File

@ -17,11 +17,10 @@ function getSupportedLanguages(){
if ($dh = opendir($lang_language_dir.$lang_compiled_dir)) { //If dir exists
while (($file = readdir($dh)) !== false) {
//read contents
if ($file==".." or $file=="."){
} else if (substr($file,-7)==".po.inc"){
//only files ending in .po.inc
$list[] = substr($file,0,-7);
}
if (substr($file,-7)!=".po.inc") continue;
if (is_numeric(substr($file, 0, 5))) continue;
$list[] = substr($file,0,-7);
}
}
} else {echo "uh";}