From: Samual Lenks Date: Sun, 25 Aug 2013 22:33:50 +0000 (-0400) Subject: Add translations, add message about "new maps" X-Git-Tag: xonotic-v0.8.0~357^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3779555d1099b9cf627dfec87c24e758f421948b;p=xonotic%2Fxonotic-data.pk3dir.git Add translations, add message about "new maps" --- diff --git a/qcsrc/server/command/getreplies.qc b/qcsrc/server/command/getreplies.qc index 309dfb1b0..036b60ccb 100644 --- a/qcsrc/server/command/getreplies.qc +++ b/qcsrc/server/command/getreplies.qc @@ -305,7 +305,7 @@ string getmaplist() } MapInfo_ClearTemps(); - return sprintf("^7Maps in list: %s\n", maplist); + return sprintf(_("^7Maps in list: %s\n"), maplist); } @@ -314,7 +314,7 @@ string getlsmaps() //print("^1================= Executing getlsmaps()! =================\n"); string lsmaps = "", col; - float i; + float i, newmaps; for(i = 0; i < MapInfo_count; ++i) { @@ -326,6 +326,7 @@ string getlsmaps() (g_cts && !stof(db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, CTS_RECORD, "time")))) ) { + newmaps = TRUE; if(mod(i, 2)) { col = "^4*"; } else { col = "^5*"; } } @@ -340,5 +341,5 @@ string getlsmaps() } MapInfo_ClearTemps(); - return sprintf("^7Maps available: %s\n", lsmaps); + return sprintf(_("^7Maps available%s: %s\n"), (newmaps ? _(" (New maps have asterisks marked in blue)") : ""), lsmaps); }