[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src pingus_main.cxx,1.74,1.75
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src pingus_main.cxx,1.74,1.75 |
Date: |
11 Apr 2003 21:15:42 -0000 |
Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv18030/src
Modified Files:
pingus_main.cxx
Log Message:
- added ß character to fonts
- added setlocale(LC_CTYPE,), without it we will get german, but without umlauts
Index: pingus_main.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/pingus_main.cxx,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- pingus_main.cxx 11 Apr 2003 16:51:15 -0000 1.74
+++ pingus_main.cxx 11 Apr 2003 21:15:40 -0000 1.75
@@ -615,16 +615,28 @@
#ifdef HAVE_GETTEXT
if (maintainer_mode)
std::cout << "Setting gettext path to: " << path_manager.get_base_path ()
+ "/../../locale" << std::endl;
- const char* ret = setlocale (LC_MESSAGES, "");
- if (ret == NULL)
+ const char* ret;
+
+ if ((ret = setlocale (LC_MESSAGES, "")) == NULL)
{
- std::cout << "ERROR: setlocale failed!" << std::endl;
+ std::cout << "ERROR: setlocale LC_MESSAGES failed!" << std::endl;
+ }
+ else
+ {
+ if (maintainer_mode)
+ std::cout << "setlocale returned '" << ret << "'" << std::endl;
+ }
+
+ if ((ret = setlocale (LC_CTYPE, "")) == NULL)
+ {
+ std::cout << "ERROR: setlocale LC_CTYPE failed!" << std::endl;
}
else
{
if (maintainer_mode)
std::cout << "setlocale returned '" << ret << "'" << std::endl;
}
+
bindtextdomain (PACKAGE, (path_manager.get_base_path () +
"/../../locale/").c_str());
// We use another LOCALEDIR to make static binaries possible
// bindtextdomain (PACKAGE, LOCALEDIR);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src pingus_main.cxx,1.74,1.75,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src color.cxx,NONE,1.1 Makefile.am,1.147,1.148 color.hxx,1.5,1.6 pingus_main.cxx,1.73,1.74pingus_resource.cxx,1.26,1.27
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/data/images/fonts chalk_large.png,1.2,1.3 chalk_normal.png,1.2,1.3
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src color.cxx,NONE,1.1 Makefile.am,1.147,1.148 color.hxx,1.5,1.6 pingus_main.cxx,1.73,1.74pingus_resource.cxx,1.26,1.27
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/data/images/fonts chalk_large.png,1.2,1.3 chalk_normal.png,1.2,1.3
- Index(es):