aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Resource.cc
diff options
context:
space:
mode:
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 }