diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-09-22 12:54:26 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-09-22 13:14:11 +0200 |
commit | 8ca4c1dec5c821c238c55563acc9fb9057329264 (patch) | |
tree | 64790ca926172492549d37ab58ca97c0177ed5a7 /vncviewer/X11PixelBuffer.cxx | |
parent | f05f355ba5390f4d686aa3028a292daca7ad0352 (diff) | |
download | tigervnc-8ca4c1dec5c821c238c55563acc9fb9057329264.tar.gz tigervnc-8ca4c1dec5c821c238c55563acc9fb9057329264.zip |
Make sure user visible strings are translated
Diffstat (limited to 'vncviewer/X11PixelBuffer.cxx')
-rw-r--r-- | vncviewer/X11PixelBuffer.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vncviewer/X11PixelBuffer.cxx b/vncviewer/X11PixelBuffer.cxx index c709984b..b729e800 100644 --- a/vncviewer/X11PixelBuffer.cxx +++ b/vncviewer/X11PixelBuffer.cxx @@ -29,6 +29,7 @@ #include <rfb/LogWriter.h> #include <rfb/Exception.h> +#include "i18n.h" #include "X11PixelBuffer.h" using namespace rfb; @@ -56,7 +57,7 @@ static PixelFormat display_pf() if (format[i].depth == fl_visual->depth) break; if (i == nformats) - throw rfb::Exception("Error: display lacks pixmap format for default depth"); + throw rfb::Exception(_("Error: display lacks pixmap format for default depth")); switch (format[i].bits_per_pixel) { case 8: @@ -65,7 +66,7 @@ static PixelFormat display_pf() bpp = format[i].bits_per_pixel; break; default: - throw rfb::Exception("Error: couldn't find suitable pixmap format"); + throw rfb::Exception(_("Error: couldn't find suitable pixmap format")); } XFree(format); @@ -74,9 +75,9 @@ static PixelFormat display_pf() trueColour = (fl_visual->c_class == TrueColor); if (!trueColour) - throw rfb::Exception("Error: only true colour displays supported"); + throw rfb::Exception(_("Error: only true colour displays supported")); - vlog.info("Using default colormap and visual, %sdepth %d.", + vlog.info(_("Using default colormap and visual, %sdepth %d."), (fl_visual->c_class == TrueColor) ? "TrueColor, " : ((fl_visual->c_class == PseudoColor) ? "PseudoColor, " : ""), fl_visual->depth); |