Skip to content

Commit

Permalink
[enigma2-plugin-systemplugins-m3uiptv.bb] update for localisation (#1266
Browse files Browse the repository at this point in the history
)

Use this method because it does not require setuptools, which this branch does not have.

See: https://github.com/DimitarCC/iptv-m3u-reader/blob/main/setup.py#L1
  • Loading branch information
Huevos authored Dec 31, 2024
1 parent 9f7b15f commit 77ead41
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@ pluginpath = "/usr/lib/enigma2/python/Plugins/SystemPlugins/M3UIPTV"
do_install() {
install -d ${D}${pluginpath}
cp -r ${S}/src/* ${D}${pluginpath}/
if [ -f /usr/bin/msgfmt ] ; then
find ${S}/po/ -maxdepth 1 -type f -name '*.po' | while read po ; do
## remove everything before and including the "/"
filename=${po##*/}
## remove everything after and including the "."
cc=${filename%%.*}
folder=${D}${pluginpath}/locale/${cc}/LC_MESSAGES
mkdir -p ${folder}
/usr/bin/msgfmt -o ${folder}/m3uiptv.mo ${po}
done
fi
}

0 comments on commit 77ead41

Please sign in to comment.