Commit e2d57dc3 authored by David Anderson's avatar David Anderson

web: make team types translatable; fix warning in team import

parent e49f3af6
......@@ -19,18 +19,18 @@
global $team_types;
$team_types = array(
"",
"None",
"Company",
"Primary school",
"Secondary school",
"Junior college",
"University or department",
"Government agency",
"Non-profit organization",
"National",
"Local/regional",
"Computer type",
"Social/political/religious"
tra("None"),
tra("Company"),
tra("Primary school"),
tra("Secondary school"),
tra("Junior college"),
tra("University or department"),
tra("Government agency"),
tra("Non-profit organization"),
tra("National"),
tra("Local/regional"),
tra("Computer type"),
tra("Social/political/religious")
);
function team_type_name($num) {
......
......@@ -51,6 +51,7 @@ function decode($x) {
}
function parse_team($f) {
$t = new stdClass();
while ($s = fgets($f)) {
if (strstr($s, '</team>')) {
$t->name = decode($t->name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment