From: terencehill Date: Tue, 6 Aug 2013 12:34:23 +0000 (+0200) Subject: Make button names translatable X-Git-Tag: xonotic-v0.8.0~139^2~1^2~155^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3391d667a86a8749b6b96f976a9e46fb3cf1b06b;p=xonotic%2Fxonotic-data.pk3dir.git Make button names translatable --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c b/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c index 5f28e36ff..4352937e2 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_screenshot.c @@ -43,14 +43,14 @@ void XonoticScreenshotBrowserTab_fill(entity me) e.onChangeEntity = slist; slist.screenshotViewerDialog = main.screenshotViewerDialog; main.screenshotViewerDialog.scrList = slist; - me.TD(me, 1, 0.5, e = makeXonoticButton("Refresh", '0 0 0')); + me.TD(me, 1, 1, e = makeXonoticButton(_("Refresh"), '0 0 0')); e.onClick = ScreenshotList_Refresh_Click; e.onClickEntity = slist; me.TR(me); me.TD(me, slist_height, me.columns, slist); me.gotoRC(me, slist_height + 1, 0); - me.TD(me, 1, me.columns, e = makeXonoticButton("Open in the viewer", '0 0 0')); + me.TD(me, 1, me.columns, e = makeXonoticButton(_("Open in the viewer"), '0 0 0')); e.onClick = StartScreenshot_Click; e.onClickEntity = slist; /* diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c b/qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c index 1a123c891..4e0e908e0 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_screenshot_screenshotviewer.c @@ -125,20 +125,20 @@ void XonoticScreenshotViewerDialog_fill(entity me) me.TD(me, 1, 1/20 * me.columns, e = makeXonoticButton("+", '0 0 0')); e.onClick = increaseZoom_Click; e.onClickEntity = me; - me.TD(me, 1, 2/20 * me.columns, e = makeXonoticButton("reset", '0 0 0')); + me.TD(me, 1, 2/20 * me.columns, e = makeXonoticButton(_("Reset"), '0 0 0')); e.onClick = resetZoom_Click; e.onClickEntity = me; me.TDempty(me, 2/20 * me.columns); - me.TD(me, 1, 3/20 * me.columns, e = makeXonoticButton("Previous", '0 0 0')); + me.TD(me, 1, 3/20 * me.columns, e = makeXonoticButton(_("Previous"), '0 0 0')); e.onClick = prevScreenshot_Click; e.onClickEntity = me; - me.TD(me, 1, 3/20 * me.columns, e = makeXonoticButton("Next", '0 0 0')); + me.TD(me, 1, 3/20 * me.columns, e = makeXonoticButton(_("Next"), '0 0 0')); e.onClick = nextScreenshot_Click; e.onClickEntity = me; me.TDempty(me, 2/20 * me.columns); - me.TD(me, 1, 4/20 * me.columns, e = makeXonoticButton("Slide show", '0 0 0')); + me.TD(me, 1, 4/20 * me.columns, e = makeXonoticButton(_("Slide show"), '0 0 0')); e.onClick = toggleSlideShow_Click; e.onClickEntity = me; me.slideShowButton = e;