Remove all languages except english

Hi,

I made a build from another config file and all the langage are enable for Luci, what is the best solution to keep english only?
thanks

I see that here, maybe remove all of LANG

CONFIG_LUA_ECO_OPENSSL=y
# CONFIG_LUA_ECO_WOLFSSL is not set
CONFIG_LUCI_LANG_ar=y
CONFIG_LUCI_LANG_bg=y
CONFIG_LUCI_LANG_bn_BD=y
CONFIG_LUCI_LANG_ca=y
CONFIG_LUCI_LANG_cs=y
CONFIG_LUCI_LANG_da=y
CONFIG_LUCI_LANG_de=y
CONFIG_LUCI_LANG_el=y
CONFIG_LUCI_LANG_es=y
CONFIG_LUCI_LANG_fi=y
CONFIG_LUCI_LANG_fr=y
CONFIG_LUCI_LANG_he=y
CONFIG_LUCI_LANG_hi=y
CONFIG_LUCI_LANG_hu=y
CONFIG_LUCI_LANG_it=y
CONFIG_LUCI_LANG_ja=y
CONFIG_LUCI_LANG_ko=y
CONFIG_LUCI_LANG_mr=y
CONFIG_LUCI_LANG_ms=y
CONFIG_LUCI_LANG_nb_NO=y
CONFIG_LUCI_LANG_nl=y
CONFIG_LUCI_LANG_pl=y
CONFIG_LUCI_LANG_pt=y
CONFIG_LUCI_LANG_pt_BR=y
CONFIG_LUCI_LANG_ro=y
CONFIG_LUCI_LANG_ru=y
CONFIG_LUCI_LANG_sk=y
CONFIG_LUCI_LANG_sv=y
CONFIG_LUCI_LANG_tr=y
CONFIG_LUCI_LANG_uk=y
CONFIG_LUCI_LANG_vi=y
CONFIG_LUCI_LANG_zh_Hans=y
CONFIG_LUCI_LANG_zh_Hant=y
CONFIG_LUCI_SRCDIET=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ar=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-bg=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-bn=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ca=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-cs=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-da=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-de=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-el=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-es=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-fi=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-fr=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-he=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-hi=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-hu=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-it=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ja=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ko=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-mr=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ms=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-no=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-pl=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-pt=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-pt-br=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ro=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-ru=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-sk=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-sv=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-tr=y
CONFIG_PACKAGE_luci-i18n-advanced-reboot-uk=y

This is definitely not a standard OpenWrt build!

But change every Y to N, usually do the trick.

Just guessing about your intent here, but... If you are trying to reduce the installed image size by eliminating language translations, this won't do any good. The translation tables are only installed when you explicitly install them, so a barebones OpenWrt config is already "English only".

Try this and see what you get:

$ opkg update
$ opkg list | grep i18n
$ opkg list-installed | grep i18n
3 Likes

You will find translation modules in
make menuconfig/nconfig, LuCI, Modules, Translations

Community builds invariably have all values set to “y”.

2 Likes

sed -i -e '/CONFIG_PACKAGE_luci-i18n-/d' -e '/CONFIG_LUCI_LANG_/d' .config && make defconfig

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.