mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
locale addon: convert to new settings format
This commit is contained in:
parent
2125e240e2
commit
ef0be61a21
@ -34,10 +34,9 @@ addon() {
|
|||||||
if [ "${l}" = "POSIX" ]; then
|
if [ "${l}" = "POSIX" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
locales+="|${l}"
|
locales+="$(echo -e '\\\n <option>'"${l}"'</option>')"
|
||||||
done
|
done
|
||||||
locales="${locales:1}"
|
|
||||||
|
|
||||||
sed -e "s/@LOCALES@/${locales}/" \
|
sed -e "s|@LOCALES@|${locales}|" \
|
||||||
-i ${ADDON_BUILD}/${PKG_ADDON_ID}/resources/settings.xml
|
-i ${ADDON_BUILD}/${PKG_ADDON_ID}/resources/settings.xml
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,37 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" ?>
|
||||||
<settings>
|
<settings version="1">
|
||||||
<category label="30000">
|
<section id="service.locale">
|
||||||
<setting label="30001" id="charmap" type="select" default="UTF-8" values="UTF-8" enable="false" />
|
<category id="configuration" label="30000" help="">
|
||||||
<setting label="30002" id="locale" type="select" default="en_GB" values="@LOCALES@" />
|
<group id="1">
|
||||||
|
<setting id="charmap" type="string" label="30001" help="">
|
||||||
|
<level>0</level>
|
||||||
|
<default>UTF-8</default>
|
||||||
|
<constraints>
|
||||||
|
<options>
|
||||||
|
<option>UTF-8</option>
|
||||||
|
</options>
|
||||||
|
</constraints>
|
||||||
|
<dependencies>
|
||||||
|
<dependency type="enable">
|
||||||
|
<condition on="property" name="InfoBool">false</condition>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<control type="list" format="string">
|
||||||
|
<heading>30001</heading>
|
||||||
|
</control>
|
||||||
|
</setting>
|
||||||
|
<setting id="locale" type="string" label="30002" help="">
|
||||||
|
<level>0</level>
|
||||||
|
<default>en_GB</default>
|
||||||
|
<constraints>
|
||||||
|
<options>@LOCALES@
|
||||||
|
</options>
|
||||||
|
</constraints>
|
||||||
|
<control type="list" format="string">
|
||||||
|
<heading>30002</heading>
|
||||||
|
</control>
|
||||||
|
</setting>
|
||||||
|
</group>
|
||||||
</category>
|
</category>
|
||||||
|
</section>
|
||||||
</settings>
|
</settings>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<settings>
|
<settings version="2">
|
||||||
<setting id="charmap" value="UTF-8" />
|
<setting id="charmap" default="true">UTF-8</setting>
|
||||||
<setting id="locale" value="en_GB" />
|
<setting id="locale" default="true>en_GB</setting>
|
||||||
</settings>
|
</settings>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user