aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Resource.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-06-07 11:46:05 (GMT)
committerrathnor <rathnor>2004-06-07 11:46:05 (GMT)
commitfff4456dee29e675d7f2ed3490db39bcb7e10e53 (patch)
tree2d2dbf386551773cbdc8231b2a93b493187bd733 /src/FbTk/Resource.cc
parent073065ac56b388db1169108d44f37d32f1d19c67 (diff)
downloadfluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.zip
fluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.tar.bz2
update NLS string handling...
Diffstat (limited to 'src/FbTk/Resource.cc')
-rw-r--r--src/FbTk/Resource.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FbTk/Resource.cc b/src/FbTk/Resource.cc
index 848f629..9b89e2b 100644
--- a/src/FbTk/Resource.cc
+++ b/src/FbTk/Resource.cc
@@ -19,10 +19,11 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Resource.cc,v 1.5 2004/01/19 18:26:04 fluxgen Exp $ 22// $Id: Resource.cc,v 1.6 2004/06/07 11:46:05 rathnor Exp $
23 23
24#include "XrmDatabaseHelper.hh" 24#include "XrmDatabaseHelper.hh"
25#include "Resource.hh" 25#include "Resource.hh"
26#include "I18n.hh"
26 27
27#include <iostream> 28#include <iostream>
28#include <cassert> 29#include <cassert>
@@ -81,8 +82,9 @@ bool ResourceManager::load(const char *filename) {
81 resource->altName().c_str(), &value_type, &value)) 82 resource->altName().c_str(), &value_type, &value))
82 resource->setFromString(value.addr); 83 resource->setFromString(value.addr);
83 else { 84 else {
84 cerr<<"Failed to read: "<<resource->name()<<endl; 85 _FB_USES_NLS;
85 cerr<<"Setting default value"<<endl; 86 cerr<<_FBTKTEXT(Error, FailedRead, "Failed to read", "Couldn't load a resource (following)")<<": "<<resource->name()<<endl;
87 cerr<<_FBTKTEXT(Error, UsingDefault, "Setting default value", "Falling back to default value for resource")<<endl;
86 resource->setDefaultValue(); 88 resource->setDefaultValue();
87 } 89 }
88 } 90 }