From 3779555d1099b9cf627dfec87c24e758f421948b Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Sun, 25 Aug 2013 18:33:50 -0400 Subject: [PATCH] Add translations, add message about "new maps" --- qcsrc/server/command/getreplies.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.39.2