From b239ff2d8a03f75274dc5960ac7209e1fc496c63 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Tue, 28 Mar 2023 23:28:54 +0200 Subject: [PATCH] Add single-language --- modlists/shrink-singlelanguage | 1 + mods/single-language/data/etc/dpkg/dpkg.cfg.d/singlelanguage | 4 ++++ mods/single-language/modscript | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 modlists/shrink-singlelanguage create mode 100644 mods/single-language/data/etc/dpkg/dpkg.cfg.d/singlelanguage create mode 100755 mods/single-language/modscript diff --git a/modlists/shrink-singlelanguage b/modlists/shrink-singlelanguage new file mode 100644 index 0000000..e34999f --- /dev/null +++ b/modlists/shrink-singlelanguage @@ -0,0 +1 @@ +single-language \ No newline at end of file diff --git a/mods/single-language/data/etc/dpkg/dpkg.cfg.d/singlelanguage b/mods/single-language/data/etc/dpkg/dpkg.cfg.d/singlelanguage new file mode 100644 index 0000000..0f338d7 --- /dev/null +++ b/mods/single-language/data/etc/dpkg/dpkg.cfg.d/singlelanguage @@ -0,0 +1,4 @@ +path-exclude /usr/share/locale/* +path-include /usr/share/locale/en/* +path-include /usr/share/locale/en_GB/* +path-include /usr/share/locale/en_US/* \ No newline at end of file diff --git a/mods/single-language/modscript b/mods/single-language/modscript new file mode 100755 index 0000000..8e3d608 --- /dev/null +++ b/mods/single-language/modscript @@ -0,0 +1,2 @@ +#!/bin/bash +find "$1/usr/share/locale" -mindepth 1 -maxdepth 1 ! -name "en" ! -name "en_US" ! -name "en_GB" | xargs rm -r \ No newline at end of file