Set it as the homepageBookmark this site

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย

 Retrieve your password
 Sign up now
img_loading
Intelligent detection

QQ login

Just one step, get started quickly

Search
Ad delivery contact QQ68610888Ad delivery contact QQ68610888
楼主: skd0000

如何修改openwrt编译时的默认的luci主题?

[Copy link]
发表于 2013-2-6 12:48 | Show all floors
config core 'main'
        option lang 'zh_cn'

config internal 'languages'
        option en 'English'
        option zh_cn 'chinese'

所谓正确的做法应该是在/etc/uci-defaults下添加脚本然后用脚本调用uci设置默认项。比如

/etc/uci-defaults/luci-i18n-english (要用chmod +x)
#!/bin/sh
uci batch <<-EOF
        set luci.languages.en=English
        commit luci
EOF
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
发表于 2013-2-16 22:43 | Show all floors
fqrouter 发表于 2013-2-6 12:48
config core 'main'
        option lang 'zh_cn'

你好,但是这样改:config core 'main'
        option lang 'zh_cn'

config internal 'languages'
        option en 'English'
        option zh_cn 'chinese'
会有什么问题吗?我目前使用这样的方法,好像没见什么问题
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
发表于 2013-2-17 21:22 | Show all floors
没有问题。用脚本改最终也是同样的效果。openwrt的配置最后就是一个文件,无论是直接改文件还是用web界面还是用脚本,都是一样的。
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
发表于 2013-6-18 17:56 | Show all floors
谢谢楼上们的精彩发言,看完了之后解决了我的问题
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
You'll need to be logged in to reply to posts login | Sign up now

This version of the points rules

Shut down

Welcome to the Enshan Wireless Forum

Only talk about technology, don't talk about politics! Don't spread rumors! For you and for others.
Only talk about technology, don't talk about politics! (Click for details) Remember not to spread rumors at will, just live your life in peace, for your own good and for the good of everyone. Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.

View »

If in doubt, add an administrator QQ86788181|Mobile version|Little dark house|Archiver|Enshan Wireless Forum (Changzhou Enshan Computer Development Co., Ltd. All rights reserved) ( Su ICP No. 05084872 )

GMT+8, 2025-6-20 23:17

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表