@@ -27,6 +27,7 @@ if (GETTEXT_XGETTEXT_EXECUTABLE) | |||
--msgid-bugs-address=tigervnc-devel@googlegroups.com | |||
--sort-by-file | |||
--add-location | |||
--add-comments | |||
${po_source} | |||
COMMENT "Updating tigervnc.pot" | |||
VERBATIM |
@@ -183,12 +183,15 @@ const char *CConn::connectionInfo() | |||
strcat(infoText, scratch); | |||
strcat(infoText, "\n"); | |||
// TRANSLATORS: Will be filled in with a string describing the | |||
// protocol pixel format in a fairly language neutral way | |||
cp.pf().print(pfStr, 100); | |||
snprintf(scratch, sizeof(scratch), | |||
_("Pixel format: %s"), pfStr); | |||
strcat(infoText, scratch); | |||
strcat(infoText, "\n"); | |||
// TRANSLATORS: Similar to the earlier "Pixel format" string | |||
serverPF.print(pfStr, 100); | |||
snprintf(scratch, sizeof(scratch), | |||
_("(server default %s)"), pfStr); | |||
@@ -426,6 +429,7 @@ void CConn::dataRect(const Rect& r, int encoding) | |||
lastServerEncoding = encoding; | |||
if (!Decoder::supported(encoding)) { | |||
// TRANSLATORS: Refers to a VNC protocol encoding type | |||
vlog.error(_("Unknown rect encoding %d"), encoding); | |||
throw Exception(_("Unknown rect encoding")); | |||
} |
@@ -56,6 +56,8 @@ static PixelFormat display_pf() | |||
if (format[i].depth == fl_visual->depth) break; | |||
if (i == nformats) | |||
// TRANSLATORS: "pixmap" is an X11 concept and may not be suitable | |||
// to translate. | |||
throw rfb::Exception(_("Display lacks pixmap format for default depth")); | |||
switch (format[i].bits_per_pixel) { | |||
@@ -65,6 +67,8 @@ static PixelFormat display_pf() | |||
bpp = format[i].bits_per_pixel; | |||
break; | |||
default: | |||
// TRANSLATORS: "pixmap" is an X11 concept and may not be suitable | |||
// to translate. | |||
throw rfb::Exception(_("Couldn't find suitable pixmap format")); | |||
} | |||
@@ -460,6 +460,8 @@ int main(int argc, char** argv) | |||
#ifndef WIN32 | |||
/* Specifying -via and -listen together is nonsense */ | |||
if (listenMode && strlen(via.getValueStr()) > 0) { | |||
// TRANSLATORS: "Parameters" are command line arguments, or settings | |||
// from a file or the Windows registry. | |||
vlog.error(_("Parameters -listen and -via are incompatible")); | |||
fl_alert(_("Parameters -listen and -via are incompatible")); | |||
exit_vncviewer(); |