mirror of https://git.openwrt.org/project/luci.git
i18n: Added dynamic registration for translations
This commit is contained in:
parent
f10b0e58e2
commit
4deb486228
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-i18n-english ) && rm -f /etc/uci-defaults/luci-i18n-english
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.languages.en=English
|
||||
commit luci
|
||||
EOF
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-i18n-french ) && rm -f /etc/uci-defaults/luci-i18n-french
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.languages.fr=Français
|
||||
commit luci
|
||||
EOF
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-i18n-german ) && rm -f /etc/uci-defaults/luci-i18n-german
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.languages.de=Deutsch
|
||||
commit luci
|
||||
EOF
|
||||
|
|
@ -34,9 +34,6 @@ config event uci_oncommit
|
|||
option ntpclient "/sbin/luci-reload ntpclient"
|
||||
|
||||
config internal languages
|
||||
option de "Deutsch"
|
||||
option en "English"
|
||||
option fr "Français"
|
||||
|
||||
config internal sauth
|
||||
option sessionpath "/tmp/.lucisessions"
|
||||
|
|
Loading…
Reference in New Issue