Skip to content
Permalink
Browse files

Add placeholder message for "AUDIO / ZOOM OPTIONS"

* allows correct translation of this sidetext into foreign languages
  within a window size of 640x480 pixels (the minium screen resolution)
* untranslated, the placeholder text consists of a single space

Refs ticket:4629
Fixes #345
  • Loading branch information...
Forgon2100 committed Jan 1, 2019
1 parent 2655861 commit bd83316b81fc18aef8b1fe7b28a30b4eeb159439
Showing with 14 additions and 1 deletion.
  1. +13 −1 src/frontend.cpp
  2. +1 −0 src/frontend.h
@@ -921,8 +921,20 @@ static bool startAudioAndZoomOptionsMenu()
addMultiBut(psWScreen, FRONTEND_BOTFORM, FRONTEND_QUIT, 10, 10, 30, 29, P_("menu", "Return"), IMAGE_RETURN, IMAGE_RETURN_HI, IMAGE_RETURN_HI);

//add some text down the side of the form
// TRANSLATORS: "AUDIO" options determine the volume of game sounds.
// "OPTIONS" means "SETTINGS".
addSideText(FRONTEND_SIDETEXT, FRONTEND_SIDEX, FRONTEND_SIDEY, _("AUDIO / ZOOM OPTIONS"));

const char *audioAndZoomOptionsExtraString = \
// no empty string is used because msgmerge(1) will otherwise
// initialize its msgstr to a copy of header contents
// TRANSLATORS: This placeholder message provides an extra line
// for the translation of the sidetext "AUDIO / ZOOM OPTIONS"
_(" ");
if (strcmp(audioAndZoomOptionsExtraString, " ") != 0 && strlen(audioAndZoomOptionsExtraString) != 0)
{
addSideText(FRONTEND_MULTILINE_SIDETEXT, FRONTEND_SIDEX + 22, \
FRONTEND_SIDEY, audioAndZoomOptionsExtraString);
}

return true;
}
@@ -159,6 +159,7 @@ enum
FRONTEND_BOTFORM,
FRONTEND_LOGO,
FRONTEND_SIDETEXT, // sideways text
FRONTEND_MULTILINE_SIDETEXT, // sideways text
FRONTEND_SIDETEXT1, // sideways text
FRONTEND_SIDETEXT2, // sideways text
FRONTEND_SIDETEXT3, // sideways text

0 comments on commit bd83316

Please sign in to comment.
You can’t perform that action at this time.