342

如何在Openwrt 安裝語言包以及設置語言

簡介: 在Openwrt的路由器操作系統中,經常會出現需要更改語言的時候,比如:對英文不熟練,在查詢 文檔的時候是英文文檔要對著英文操作,或者想驗證一些配置選項;或者想要去設置成別的語言包:簡體中文,台灣繁體字,香港繁體字等。個人比較喜歡用Terminal ,所以,以下基本都是用命令行的方式。

Openwrt  setting of system .

通過ssh登陸 terminal .

先執行更新:

opkg update

列出目标的语言包:(不要搜索opkg list |grep -i luci-i18,会出现很多软件的语言包)

 opkg list  |grep -i luci-i18n-base
luci-i18n-base-ar - 25.165.68821~fe30872 - Translation for luci-base - العربية (Arabic)
luci-i18n-base-bg - 25.165.68821~fe30872 - Translation for luci-base - български (Bulgarian)
luci-i18n-base-bn - 25.165.68821~fe30872 - Translation for luci-base - বাংলা (Bengali)
luci-i18n-base-ca - 25.165.68821~fe30872 - Translation for luci-base - Català (Catalan)
luci-i18n-base-cs - 25.165.68821~fe30872 - Translation for luci-base - Čeština (Czech)
luci-i18n-base-da - 25.165.68821~fe30872 - Translation for luci-base - Dansk (Danish)
luci-i18n-base-de - 25.165.68821~fe30872 - Translation for luci-base - Deutsch (German)
luci-i18n-base-el - 25.165.68821~fe30872 - Translation for luci-base - Ελληνικά (Greek)
luci-i18n-base-es - 25.165.68821~fe30872 - Translation for luci-base - Español (Spanish)
luci-i18n-base-fa - 25.165.68821~fe30872 - Translation for luci-base - Farsi (Persian)
luci-i18n-base-fi - 25.165.68821~fe30872 - Translation for luci-base - Suomi (Finnish)
luci-i18n-base-fil - 25.165.68821~fe30872 - Translation for luci-base - Filipino (Philippinic)
luci-i18n-base-fr - 25.165.68821~fe30872 - Translation for luci-base - Français (French)
luci-i18n-base-he - 25.165.68821~fe30872 - Translation for luci-base - עִבְרִית (Hebrew)
luci-i18n-base-hi - 25.165.68821~fe30872 - Translation for luci-base - हिंदी (Hindi)
luci-i18n-base-hu - 25.165.68821~fe30872 - Translation for luci-base - Magyar (Hungarian)
luci-i18n-base-it - 25.165.68821~fe30872 - Translation for luci-base - Italiano (Italian)
luci-i18n-base-ja - 25.165.68821~fe30872 - Translation for luci-base - 日本語 (Japanese)
luci-i18n-base-ko - 25.165.68821~fe30872 - Translation for luci-base - 한국어 (Korean)
luci-i18n-base-lt - 25.165.68821~fe30872 - Translation for luci-base - Lietuvių (Lithuanian)
luci-i18n-base-mr - 25.165.68821~fe30872 - Translation for luci-base - Marāṭhī (Marathi)
luci-i18n-base-ms - 25.165.68821~fe30872 - Translation for luci-base - Bahasa Melayu (Malay)
luci-i18n-base-nl - 25.165.68821~fe30872 - Translation for luci-base - Nederlands (Dutch)
luci-i18n-base-no - 25.165.68821~fe30872 - Translation for luci-base - Norsk (Norwegian)
luci-i18n-base-pl - 25.165.68821~fe30872 - Translation for luci-base - Polski (Polish)
luci-i18n-base-pt - 25.165.68821~fe30872 - Translation for luci-base - Português (Portuguese)
luci-i18n-base-pt-br - 25.165.68821~fe30872 - Translation for luci-base - Português do Brasil (Brazilian Portuguese)
luci-i18n-base-ro - 25.165.68821~fe30872 - Translation for luci-base - Română (Romanian)
luci-i18n-base-ru - 25.165.68821~fe30872 - Translation for luci-base - Русский (Russian)
luci-i18n-base-sk - 25.165.68821~fe30872 - Translation for luci-base - Slovenčina (Slovak)
luci-i18n-base-sv - 25.165.68821~fe30872 - Translation for luci-base - Svenska (Swedish)
luci-i18n-base-tr - 25.165.68821~fe30872 - Translation for luci-base - Türkçe (Turkish)
luci-i18n-base-uk - 25.165.68821~fe30872 - Translation for luci-base - Українська (Ukrainian)
luci-i18n-base-vi - 25.165.68821~fe30872 - Translation for luci-base - Tiếng Việt (Vietnamese)
luci-i18n-base-yua - 25.165.68821~fe30872 - Translation for luci-base - Yucateco (Yucatec Maya)
luci-i18n-base-zh-cn - 25.165.68821~fe30872 - Translation for luci-base - 简体中文 (Chinese Simplified)
luci-i18n-base-zh-tw - 25.165.68821~fe30872 - Translation for luci-base - 繁體中文 (Chinese Traditional)

安装需要的安装包,以日本语為例。

 opkg install luci-i18n-base-ja
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Installing luci-i18n-base-ja (25.165.68821~fe30872) to root...
Downloading https://mirrors.tencent.com/lede/releases/24.10.0/packages/x86_64/luci/luci-i18n-base-ja_25.165.68821~fe30872_all.ipk
Configuring luci-i18n-base-ja.

系統【system】-> 語言與樣式【language and styles】

選中【日本語】後【保存】,然後刷新,就看到語言更改。

英語是openwrt默認的語言,所以你無法安裝英語的語言包,但是你在語言列表中看不到,如何解決?

通過openwrt uci 命令:

uci set luci.main.lang='en'
uci commit luci
/etc/init.d/uhttpd restart

刷新後解決該問題。

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *