diff options
author | rathnor <rathnor> | 2004-06-07 11:46:05 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-06-07 11:46:05 (GMT) |
commit | fff4456dee29e675d7f2ed3490db39bcb7e10e53 (patch) | |
tree | 2d2dbf386551773cbdc8231b2a93b493187bd733 /src/FbTk/Font.cc | |
parent | 073065ac56b388db1169108d44f37d32f1d19c67 (diff) | |
download | fluxbox_pavel-fff4456dee29e675d7f2ed3490db39bcb7e10e53.zip fluxbox_pavel-fff4456dee29e675d7f2ed3490db39bcb7e10e53.tar.bz2 |
update NLS string handling...
Diffstat (limited to 'src/FbTk/Font.cc')
-rw-r--r-- | src/FbTk/Font.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 8f4cd42..453a195 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc | |||
@@ -19,11 +19,12 @@ | |||
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: Font.cc,v 1.6 2003/12/01 19:57:01 fluxgen Exp $ | 22 | //$Id: Font.cc,v 1.7 2004/06/07 11:46:05 rathnor Exp $ |
23 | 23 | ||
24 | 24 | ||
25 | #include "Font.hh" | 25 | #include "Font.hh" |
26 | #include "FontImp.hh" | 26 | #include "FontImp.hh" |
27 | #include "I18n.hh" | ||
27 | 28 | ||
28 | #ifdef HAVE_CONFIG_H | 29 | #ifdef HAVE_CONFIG_H |
29 | #include "config.h" | 30 | #include "config.h" |
@@ -130,8 +131,10 @@ void Font::setAntialias(bool flag) { | |||
130 | } | 131 | } |
131 | 132 | ||
132 | if (m_fontimp->loaded() != loaded) { // if the new font failed to load, fall back to 'fixed' | 133 | if (m_fontimp->loaded() != loaded) { // if the new font failed to load, fall back to 'fixed' |
133 | if (!m_fontimp->load("fixed")) // if that failes too, output warning | 134 | if (!m_fontimp->load("fixed")) {// if that failes too, output warning |
134 | cerr<<"Warning: can't load fallback font 'fixed'."<<endl; | 135 | _FB_USES_NLS; |
136 | cerr<<_FBTKTEXT(Error, CantFallbackFont, "Warning: can't load fallback font", "Attempt to load the last-resort default font failed")<<" 'fixed'."<<endl; | ||
137 | } | ||
135 | } | 138 | } |
136 | 139 | ||
137 | m_antialias = flag; | 140 | m_antialias = flag; |