]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
finish some more files
authorRudolf Polzer <divverent@alientrap.org>
Sun, 16 Jan 2011 20:36:10 +0000 (21:36 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 16 Jan 2011 20:36:10 +0000 (21:36 +0100)
qcsrc/menu/stringfilelist.txt
qcsrc/menu/xonotic/campaign.c

index c90e4e758bc7f1ab5cf1d5d74852b7bae8d1a5e2..6017305fdc10338b5032bd855a56396e30812f7f 100644 (file)
@@ -7,15 +7,13 @@ Guideline:
 - if a translatable string is a strcat monster, change it to sprintf
 - test by:
   find . -type f -not -name \*.po | xgettext -LC -k_ -f- gamecommand.qc
+- interesting vi macros:
+  :map # /"<return>
+  :map ' i_(<esc>2f"a)<esc>/"<return>
+  
 
 List of files to do:
 
-./xonotic/button.c
-./xonotic/campaign.c
-./xonotic/charmap.c
-./xonotic/colorbutton.c
-./xonotic/colorpicker.c
-./xonotic/colorpicker_string.c
 ./xonotic/commandbutton.c
 ./xonotic/credits.c
 ./xonotic/crosshairbutton.c
index e7667f69cfd64ceae7fd3bd7fd65b5397d5c18c6..04f7a083c2d32a035ac9bb5d15e6c2e1c127b72e 100644 (file)
@@ -281,8 +281,8 @@ void XonoticCampaignList_drawListBoxItem(entity me, float i, vector absSize, flo
        if(i <= me.campaignIndex)
                s = campaign_shortdesc[i]; // fteqcc sucks
        else
-               s = "???";
-       s = draw_TextShortenToWidth(strcat("Level ", ftos(i + 1), ": ", s), me.columnNameSize, 0, me.realFontSize);
+               s = _("???");
+       s = draw_TextShortenToWidth(sprintf(_("Level %d: %s"), i+1, s), me.columnNameSize, 0, me.realFontSize);
        draw_Text(me.realUpperMargin1 * eY + (me.columnNameOrigin + 0.00 * (me.columnNameSize - draw_TextWidth(s, 0, me.realFontSize))) * eX, s, me.realFontSize, theColor, theAlpha, 0);
 
        if(i <= me.campaignIndex)