diff options
author | ramon <ramongomez@us.es> | 2016-05-03 09:46:05 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-05-03 09:46:05 +0000 |
commit | f932a1aff2f94012908252aa8e484d47b2d4c72d (patch) | |
tree | 314c38345761f9a21a039b3c4b3d76b59735b67e /client/browser | |
parent | d97fe474ee21fd684a6e6198ac094dc0edd1c77c (diff) |
#244: Copiar ficheros de idiomas a la localización correcta y nuevo Browser con todas las cadenas preparadas.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4915 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/browser')
-rw-r--r-- | client/browser/po/ca/LC_MESSAGES/browser.mo | bin | 821 -> 0 bytes | |||
-rw-r--r-- | client/browser/po/en/LC_MESSAGES/browser.mo | bin | 2106 -> 0 bytes | |||
-rw-r--r-- | client/browser/src/main.cpp | 15 |
3 files changed, 9 insertions, 6 deletions
diff --git a/client/browser/po/ca/LC_MESSAGES/browser.mo b/client/browser/po/ca/LC_MESSAGES/browser.mo Binary files differdeleted file mode 100644 index 68bcb680..00000000 --- a/client/browser/po/ca/LC_MESSAGES/browser.mo +++ /dev/null diff --git a/client/browser/po/en/LC_MESSAGES/browser.mo b/client/browser/po/en/LC_MESSAGES/browser.mo Binary files differdeleted file mode 100644 index 230198d9..00000000 --- a/client/browser/po/en/LC_MESSAGES/browser.mo +++ /dev/null diff --git a/client/browser/src/main.cpp b/client/browser/src/main.cpp index 1ca697b4..2104e652 100644 --- a/client/browser/src/main.cpp +++ b/client/browser/src/main.cpp @@ -4,23 +4,26 @@ #include <Qt/qtextcodec.h> // Internacionalización con GNU Gettext. #include <libintl.h> +#define TEXTDOMAIN "browser" +#define LOCALEDIR "/opt/opengnsys/lib/locale" +#define CHARSET "UTF-8" int main(int argc, char *argv[]) { // Preparar internacionalización. setlocale (LC_ALL, ""); - bindtextdomain ("browser", "/opt/opengnsys/lib/locale"); - textdomain ("browser"); + bindtextdomain (TEXTDOMAIN, LOCALEDIR); + textdomain (TEXTDOMAIN); if(argc<=1) { printf(gettext("Uso: %s -qws http://sitioweb.com/\n"),argv[0]); return -1; } - // Codificación UTF-8. - QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); - QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); - QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); + // Codificación de caracteres. + QTextCodec::setCodecForTr(QTextCodec::codecForName(CHARSET)); + QTextCodec::setCodecForCStrings(QTextCodec::codecForName(CHARSET)); + QTextCodec::setCodecForLocale(QTextCodec::codecForName(CHARSET)); QApplication a(argc, argv); MainWindow w; |