qt: install translations
PATCH 1/1 qt: install translations
The Qt translation files are currently created and moved under $(STAGING_DIR)/usr/translations but not installed on the target.
This patch defines the translations directory to /usr/share/qt/translations and defines a QT_INSTALL_TARGET_TRANSLATIONS macro to deploy them from the staging directory to the target directory.
--- package/qt/qt.mk | 9 +++++++++ 1 file changed, 9 insertions(+)
package/qt/qt.mk +9 -0
@@ -516,6 +516,7 @@ define QT_CONFIGURE_CMDS -prefix /usr \ -plugindir /usr/lib/qt/plugins \ -importdir /usr/lib/qt/imports \ + -translationdir /usr/share/qt/translations \ -hostprefix $(STAGING_DIR) \ -fast \ -no-rpath \
@@ -666,6 +667,13 @@ define QT_INSTALL_TARGET_POWERVR endef endif +define QT_INSTALL_TARGET_TRANSLATIONS + if [ -d $(STAGING_DIR)/usr/share/qt/translations/ ] ; then \ + mkdir -p $(TARGET_DIR)/usr/share/qt/translations ; \ + cp -dpfr $(STAGING_DIR)/usr/share/qt/translations/* $(TARGET_DIR)/usr/share/qt/translations ; \ + fi +endef + define QT_INSTALL_TARGET_CMDS $(QT_INSTALL_TARGET_LIBS) $(QT_INSTALL_TARGET_PLUGINS)
@@ -673,6 +681,7 @@ define QT_INSTALL_TARGET_CMDS $(QT_INSTALL_TARGET_FONTS) $(QT_INSTALL_TARGET_FONTS_TTF) $(QT_INSTALL_TARGET_POWERVR) + $(QT_INSTALL_TARGET_TRANSLATIONS) endef define QT_CLEAN_CMDS
Signature · 1 line
1.8.4
PATCH 1/1 qt: install translations
Dear Vivien Didelot,
Quoted 8 lines · Vivien Didelot
The Qt translation files are currently created and moved under $(STAGING_DIR)/usr/translations but not installed on the target.
This patch defines the translations directory to
/usr/share/qt/translationsand defines aQT_INSTALL_TARGET_TRANSLATIONSmacro to deploy them from the staging directory to the target directory.Signed-off-by Vivien Didelot <[email protected]>
This looks good, but I'm wondering: the translations that are installed in /usr/share/qt/translations are the translations of the Qt library itself, or the translations of the applications using Qt as their library?
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 qt: install translations
Hi Thomas,
Quoted 10 lines · Vivien Didelot
Quoted 9 lines
The Qt translation files are currently created and moved under $(STAGING_DIR)/usr/translations but not installed on the target.
This patch defines the translations directory to
/usr/share/qt/translationsand defines aQT_INSTALL_TARGET_TRANSLATIONS
macro to deploy them from the staging directory to the target directory.
Quoted 7 lines
Quoted 1 line
Signed-off-by Vivien Didelot <[email protected]>This looks good, but I'm wondering: the translations that are installed
in/usr/share/qt/translationsare the translations of the Qt library itself, or the translations of the applications using Qt as their library?
These are the translations of Qt itself.
Thanks,
Vivien
PATCH 1/1 qt: install translations
In reply to Vivien DidelotDear Vivien Didelot,
Quoted 8 lines · Vivien Didelot
The Qt translation files are currently created and moved under $(STAGING_DIR)/usr/translations but not installed on the target.
This patch defines the translations directory to
/usr/share/qt/translationsand defines aQT_INSTALL_TARGET_TRANSLATIONSmacro to deploy them from the staging directory to the target directory.Signed-off-by Vivien Didelot <[email protected]>
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 qt: install translations
In reply to Vivien DidelotQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Vivien" == Vivien Didelot <[email protected]> writes:
Vivien> The Qt translation files are currently created and moved under Vivien> $(STAGING_DIR)/usr/translations but not installed on the target.
Vivien> This patch defines the translations directory to Vivien> /usr/share/qt/translations and defines a
Vivien> QT_INSTALL_TARGET_TRANSLATIONS macro to deploy them from the Vivien> staging directory to the target directory.
Vivien> Signed-off-by: Vivien Didelot <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard