Commit 1b26f050 authored by Florent Revest's avatar Florent Revest

recipes-asteroid: Use lrelease i18n/*.ts on translatable recipes

parent 6a8b7fbb
......@@ -15,7 +15,7 @@ RDEPENDS_${PN} += "nemo-qml-plugin-alarms"
FILES_${PN} += "/usr/share/translations/ /usr/lib/systemd/user/open-alarm.service /usr/share/dbus-1/services/com.nokia.voland.service"
do_install_append() {
lrelease ${S}/asteroid-alarmclock.*.ts
lrelease ${S}/i18n/asteroid-alarmclock.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/asteroid-alarmclock.*.qm ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-alarmclock.*.qm ${D}/usr/share/translations/
}
......@@ -12,3 +12,10 @@ inherit qmake5
DEPENDS += "qml-asteroid mapplauncherd-booster-qtcomponents nemo-qml-plugin-calendar qtvirtualkeyboard"
RDEPENDS_${PN} += "nemo-qml-plugin-calendar qtvirtualkeyboard"
FILE_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease ${S}/i18n/asteroid-calendar.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-calendar.*.qm ${D}/usr/share/translations/
}
......@@ -14,9 +14,13 @@ inherit qmake5
DEPENDS += "lipstick"
RDEPENDS_${PN} += "qtdeclarative-qmlplugins qml-asteroid qtwayland-plugins qtgraphicaleffects-qmlplugins nemo-qml-plugin-time nemo-qml-plugin-contextkit nemo-qml-plugin-configuration asteroid-wallpapers ttf-roboto ttf-raleway ttf-orbitron"
FILES_${PN} += "/usr/share/asteroid-launcher/ /usr/lib/systemd/user/"
FILES_${PN} += "/usr/share/asteroid-launcher/ /usr/lib/systemd/user/ /usr/share/translations/"
do_install_append() {
lrelease ${S}/i18n/asteroid-launcher.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-launcher.*.qm ${D}/usr/share/translations/
install -d ${D}/var/lib/environment/compositor/
cp ../default.conf ${D}/var/lib/environment/compositor/
......
......@@ -12,3 +12,10 @@ inherit qmake5
DEPENDS += "qml-asteroid mapplauncherd-booster-qtcomponents qtmpris"
RDEPENDS_${PN} += "qtmpris"
FILE_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease ${S}/i18n/asteroid-music.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-music.*.qm ${D}/usr/share/translations/
}
......@@ -15,7 +15,7 @@ RDEPENDS_${PN} += "nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus"
FILES_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease ${S}/asteroid-settings.*.ts
lrelease ${S}/i18n/asteroid-settings.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/asteroid-settings.*.qm ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-settings.*.qm ${D}/usr/share/translations/
}
......@@ -15,7 +15,7 @@ RDEPENDS_${PN} += "nemo-qml-plugin-configuration"
FILES_${PN} += "/usr/share/translations/ /usr/lib/fonts"
do_install_append() {
lrelease ${S}/asteroid-weather.*.ts
lrelease ${S}/i18n/asteroid-weather.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/asteroid-weather.*.qm ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-weather.*.qm ${D}/usr/share/translations/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment