aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-16 00:17:16 (GMT)
committerfluxgen <fluxgen>2003-05-16 00:17:16 (GMT)
commit643743f2978721937badb24a432059d069afd96e (patch)
treeaf17b56ea15aab172b10ce267cd8b99a686efdc2 /src
parent5bbc7662328c2f147ceec0b7e6c3367cfd0b7a5f (diff)
downloadfluxbox-643743f2978721937badb24a432059d069afd96e.zip
fluxbox-643743f2978721937badb24a432059d069afd96e.tar.bz2
better warning message
Diffstat (limited to 'src')
-rw-r--r--src/i18n.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/i18n.cc b/src/i18n.cc
index 5b3b2ca..833a094 100644
--- a/src/i18n.cc
+++ b/src/i18n.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: i18n.cc,v 1.9 2003/04/26 15:46:03 fluxgen Exp $ 25// $Id: i18n.cc,v 1.10 2003/05/16 00:17:16 fluxgen Exp $
26 26
27//usr GNU extensions 27//usr GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -112,8 +112,10 @@ void I18n::openCatalog(const char *catalog) {
112 m_catalog_fd = catopen(catalog_filename.c_str(), NL_CAT_LOCALE); 112 m_catalog_fd = catopen(catalog_filename.c_str(), NL_CAT_LOCALE);
113#endif // MCLoadBySet 113#endif // MCLoadBySet
114 114
115 if (m_catalog_fd == (nl_catd)-1) 115 if (m_catalog_fd == (nl_catd)-1) {
116 cerr<<"Warning: Failed to open catalog, using default messages."<<endl; 116 cerr<<"Warning: Failed to open file("<<catalog_filename<<")"<<endl;
117 cerr<<"for translation, using default messages."<<endl;
118 }
117 119
118#else // !HAVE_CATOPEN 120#else // !HAVE_CATOPEN
119 121