Qt-jambi-interest Archive, July 2007
No i18n support in juic ?
Message 1 in thread
Hi
I tried to use the internationalization support of qtjambi,
but realized that the java files produced by juic from
the *.jui files do not contain the tr() wrappers for the
strings within the retranslateUi method. Is this
a missing feature or am I missing some point here ?
Stephan
Message 2 in thread
Stephan Egli wrote:
> Hi
>
> I tried to use the internationalization support of qtjambi,
> but realized that the java files produced by juic from
> the *.jui files do not contain the tr() wrappers for the
> strings within the retranslateUi method. Is this
> a missing feature or am I missing some point here ?
Hi Stephan,
This is a bug in juic. The attached patch fixes the problem. Thanks for
reporting this problem.
best regards,
Gunnar
==== //depot/qtjambi/4.3/juic/javawriteinitialization.cpp#3 (text) ====
==== //depot/qtjambi/4.3/juic/javawriteinitialization.cpp#3 (text) ====
@@ -1321,7 +1321,8 @@
QString WriteInitialization::trCall(const QString &str, const QString &/*commentHint*/) const
{
- return javaFixString (str);
+ return QLatin1String("com.trolltech.qt.core.QCoreApplication.translate(\"")
+ + m_generatedClass + QLatin1String("\", ") + javaFixString(str) + QLatin1String(")");
}
void WriteInitialization::initializeMenu(DomWidget *w, const QString &/*parentWidget*/)