Browse Source

Add comments for translators where requested

tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
744e55cbdf
4 changed files with 11 additions and 0 deletions
  1. 1
    0
      po/CMakeLists.txt
  2. 4
    0
      vncviewer/CConn.cxx
  3. 4
    0
      vncviewer/X11PixelBuffer.cxx
  4. 2
    0
      vncviewer/vncviewer.cxx

+ 1
- 0
po/CMakeLists.txt View File

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

+ 4
- 0
vncviewer/CConn.cxx View File

@@ -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"));
}

+ 4
- 0
vncviewer/X11PixelBuffer.cxx View File

@@ -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"));
}


+ 2
- 0
vncviewer/vncviewer.cxx View File

@@ -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();

Loading…
Cancel
Save