gluon-config-mode-core: use translated messages from the site configuration
This commit is contained in:
parent
5805e78455
commit
ce82baf0ad
@ -36,9 +36,4 @@ define Package/gluon-config-mode-core/install
|
|||||||
$(call GluonInstallI18N,gluon-config-mode-core,$(1))
|
$(call GluonInstallI18N,gluon-config-mode-core,$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-core/postinst
|
|
||||||
#!/bin/sh
|
|
||||||
$(call GluonCheckSite,check_site.lua)
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gluon-config-mode-core))
|
$(eval $(call BuildPackage,gluon-config-mode-core))
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
need_string 'config_mode.msg_welcome'
|
|
||||||
need_string 'config_mode.msg_reboot'
|
|
@ -1,3 +1,3 @@
|
|||||||
local site = require 'gluon.site_config'
|
local i18n = require 'luci.i18n'
|
||||||
|
|
||||||
return function () luci.template.render_string(site.config_mode.msg_reboot) end
|
return function () luci.template.render_string(i18n.translate('gluon-config-mode:reboot')) end
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<%-
|
<%-
|
||||||
local site = require 'gluon.site_config'
|
|
||||||
local sysconfig = require 'gluon.sysconfig'
|
local sysconfig = require 'gluon.sysconfig'
|
||||||
|
local i18n = require 'luci.i18n'
|
||||||
local template = require 'luci.template'
|
local template = require 'luci.template'
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<h2><%:Welcome!%></h2>
|
<h2><%:Welcome!%></h2>
|
||||||
<p>
|
<p>
|
||||||
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
|
<%= template.render_string(i18n.translate('gluon-config-mode:welcome'), {hostname=hostname, sysconfig=sysconfig}) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<% if not self.embedded then %>
|
<% if not self.embedded then %>
|
||||||
|
Loading…
Reference in New Issue
Block a user