diff options
Diffstat (limited to 'src/FbTk/Theme.cc')
-rw-r--r-- | src/FbTk/Theme.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc index f9c3366..066f9fa 100644 --- a/src/FbTk/Theme.cc +++ b/src/FbTk/Theme.cc | |||
@@ -19,7 +19,7 @@ | |||
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: Theme.cc,v 1.26 2004/04/26 15:04:37 rathnor Exp $ | 22 | // $Id: Theme.cc,v 1.27 2004/06/07 11:46:05 rathnor Exp $ |
23 | 23 | ||
24 | #include "Theme.hh" | 24 | #include "Theme.hh" |
25 | 25 | ||
@@ -28,6 +28,7 @@ | |||
28 | #include "StringUtil.hh" | 28 | #include "StringUtil.hh" |
29 | #include "ThemeItems.hh" | 29 | #include "ThemeItems.hh" |
30 | #include "Directory.hh" | 30 | #include "Directory.hh" |
31 | #include "I18n.hh" | ||
31 | 32 | ||
32 | #include <cstdio> | 33 | #include <cstdio> |
33 | #include <memory> | 34 | #include <memory> |
@@ -140,9 +141,11 @@ void ThemeManager::loadTheme(Theme &tm) { | |||
140 | if (!loadItem(*resource)) { | 141 | if (!loadItem(*resource)) { |
141 | // try fallback resource in theme | 142 | // try fallback resource in theme |
142 | if (!tm.fallback(*resource)) { | 143 | if (!tm.fallback(*resource)) { |
143 | if (verbose()) | 144 | if (verbose()) { |
144 | cerr<<"Failed to read theme item: "<<resource->name()<<endl; | 145 | _FB_USES_NLS; |
145 | resource->setDefaultValue(); | 146 | cerr<<_FBTKTEXT(Error, ThemeItem, "Failed to read theme item", "When reading a style, couldn't read a specific item (following)")<<": "<<resource->name()<<endl; |
147 | } | ||
148 | resource->setDefaultValue(); | ||
146 | } | 149 | } |
147 | } | 150 | } |
148 | } | 151 | } |