Merge pull request #2049 from thoradia/locale

locale: include localedef
This commit is contained in:
Christian Hewitt 2017-10-03 23:41:28 +04:00 committed by GitHub
commit 3f84371614
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,6 @@
102:
- Include localedef
101:
- Fix dialog message

View File

@ -17,7 +17,7 @@
################################################################################
PKG_NAME="locale"
PKG_REV="101"
PKG_REV="102"
PKG_ARCH="any"
PKG_DEPENDS_TARGET="toolchain glibc"
PKG_SECTION="service"
@ -37,6 +37,10 @@ makeinstall_target() {
}
addon() {
mkdir -p "$ADDON_BUILD/$PKG_ADDON_ID/bin"
cp -PR "$(get_build_dir glibc)/.$TARGET_NAME/locale/localedef" \
"$ADDON_BUILD/$PKG_ADDON_ID/bin"
mkdir -p "$ADDON_BUILD/$PKG_ADDON_ID/i18n"
cp -PR "$(get_build_dir glibc)/localedata/charmaps" \
"$(get_build_dir glibc)/localedata/locales" \

View File

@ -53,7 +53,8 @@ class Monitor(xbmc.Monitor):
if os.path.isdir(localepath) == False:
os.environ['I18NPATH'] = i18npath
subprocess.call(['localedef', '-f', charmap, '-i', locale, localepath])
subprocess.call([os.path.join(path, 'bin/localedef'), '-f', charmap,
'-i', locale, localepath])
if os.path.isdir(profiled) == False:
os.makedirs(profiled)