Revision: 6848
Author: ek.kato
Date: Mon Dec 27 21:12:51 2010
Log: * qt4/toolbar/common-quimhelpertoolbar.cpp
- Revert change in 6833. Using _() is required so that the
string is recognized by gettext.
* qt4/qtgettext.h
- Add macro _() for DISABLE_NLS to use QString rather than const
char *.
http://code.google.com/p/uim/source/detail?r=6848
Modified:
/trunk/qt4/qtgettext.h
/trunk/qt4/toolbar/common-quimhelpertoolbar.cpp
=======================================
--- /trunk/qt4/qtgettext.h Fri Jul 23 17:12:33 2010
+++ /trunk/qt4/qtgettext.h Mon Dec 27 21:12:51 2010
@@ -61,6 +61,11 @@
#else /* ENABLE_NLS */
#define mygettext(String) QString::fromLocal8Bit(String)
+/* undef original _(String) macro to use QString */
+#ifdef _
+#undef _
+#endif
+#define _(String) mygettext(String)
#define UIC_(String, dummy) (String)
#endif /* ENABLE_NLS */
=======================================
--- /trunk/qt4/toolbar/common-quimhelpertoolbar.cpp Sat Dec 18 05:12:47 2010
+++ /trunk/qt4/toolbar/common-quimhelpertoolbar.cpp Mon Dec 27 21:12:51 2010
@@ -52,7 +52,7 @@
{
if ( !command.isEmpty() && !QProcess::startDetached( command ) ) {
QMessageBox::warning( 0, "uim",
- mygettext( "Cannot launch '%1'." ).arg( command ) );
+ _( "Cannot launch '%1'." ).arg( command ) );
}
}