Commit bbb2495c authored by Florent Revest's avatar Florent Revest Committed by GitHub

Merge pull request #6 from TheLastProject/master

Add i18n support
parents efe5b78f 81aa87fc
...@@ -7,7 +7,7 @@ IMAGE_FEATURES += "splash package-management" ...@@ -7,7 +7,7 @@ IMAGE_FEATURES += "splash package-management"
IMAGE_INSTALL += " \ IMAGE_INSTALL += " \
base-files base-passwd shadow systemd tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \ base-files base-passwd shadow systemd tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \
iproute2 connman bluez5 pulseaudio dropbear qtbase-plugins statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents usb-moded \ iproute2 connman bluez5 pulseaudio dropbear qtbase-plugins statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents usb-moded \
asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings asteroid-timer asteroid-alarmclock asteroid-btsyncd" supported-languages asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings asteroid-timer asteroid-alarmclock asteroid-btsyncd"
EXTRA_USERS_PARAMS = "groupadd system; \ EXTRA_USERS_PARAMS = "groupadd system; \
groupadd statefs; \ groupadd statefs; \
......
...@@ -10,4 +10,5 @@ PV = "+git${SRCREV}" ...@@ -10,4 +10,5 @@ PV = "+git${SRCREV}"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit qmake5 inherit qmake5
RDEPENDS_${PN} += "qtquickcontrols-qmlplugins"
DEPENDS += "qml-asteroid mapplauncherd-booster-qtcomponents qtquickcontrols" DEPENDS += "qml-asteroid mapplauncherd-booster-qtcomponents qtquickcontrols"
...@@ -11,4 +11,11 @@ S = "${WORKDIR}/git" ...@@ -11,4 +11,11 @@ S = "${WORKDIR}/git"
inherit qmake5 inherit qmake5
DEPENDS += "qml-asteroid nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus qtconnectivity mapplauncherd-booster-qtcomponents" DEPENDS += "qml-asteroid nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus qtconnectivity mapplauncherd-booster-qtcomponents"
RDEPENDS_${PN} += "qtconnectivity-qmlplugins nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus" RDEPENDS_${PN} += "qtconnectivity-qmlplugins nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus qtquickcontrols-qmlplugins"
FILES_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease ${S}/asteroid-settings.pro
install -d ${D}/usr/share/translations/
cp ${S}/asteroid-settings.*.qm ${D}/usr/share/translations/
}
[Service]
EnvironmentFile=/var/lib/environment/ceres/locale.conf
SUMMARY = "Set of config files describing the languages that are available on AsteroidOS"
HOMEPAGE = "https://github.com/AsteroidOS/supported-languages"
LICENSE = "CC0-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65d3616852dbf7b1a6d4b53b00626032"
SRC_URI = "git://github.com/AsteroidOS/supported-languages.git;protocol=https \
file://locale.conf \
file://localeEnv.conf"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
FILES_${PN} += "/etc/systemd/system/user@.service.d/ /usr/lib/systemd/user/ /usr/share/jolla-supported-languages/"
INSANE_SKIP_${PN} += "host-user-contaminated"
do_install_append() {
install -d ${D}/etc/systemd/system/user@.service.d/
cp ../localeEnv.conf ${D}/etc/systemd/system/user@.service.d/locale.conf
install -d ${D}/var/lib/environment/ceres/
cp ../locale.conf ${D}/var/lib/environment/ceres/locale.conf
# TODO: Ensure this only allows asteroid-settings to write to this file, so
# that others apps cannot set environment variables
chown 1000:1000 ${D}/var/lib/environment/ceres/locale.conf # ceres:ceres
install -d ${D}/usr/share/jolla-supported-languages/
cp ${S}/*.conf ${D}/usr/share/jolla-supported-languages/
}
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