- 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
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)