diff --git a/package/gluon-luci-autoupdater/Makefile b/package/gluon-luci-autoupdater/Makefile index 518bd6df2447a5a39461c9e38c45b55a29e7df78..650c469227465cbe88d9ee42df94cae431d7df1d 100644 --- a/package/gluon-luci-autoupdater/Makefile +++ b/package/gluon-luci-autoupdater/Makefile @@ -4,12 +4,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gluon-luci-autoupdater -PKG_VERSION:=0.1 +PKG_VERSION:=1 PKG_RELEASE:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) -include $(INCLUDE_DIR)/package.mk +include $(GLUONDIR)/include/package.mk + +PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG) define Package/gluon-luci-autoupdater SECTION:=gluon @@ -18,10 +20,6 @@ define Package/gluon-luci-autoupdater DEPENDS:=+gluon-luci-admin +gluon-autoupdater endef -define Package/gluon-luci-autoupdater/description - Luci module for gluon-autoupdater -endef - define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef @@ -30,10 +28,12 @@ define Build/Configure endef define Build/Compile + $(call GluonBuildI18N,gluon-luci-autoupdater,i18n) endef define Package/gluon-luci-autoupdater/install $(CP) ./files/* $(1)/ + $(call GluonInstallI18N,gluon-luci-autoupdater,$(1)) endef $(eval $(call BuildPackage,gluon-luci-autoupdater)) diff --git a/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/controller/admin/autoupdater.lua b/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/controller/admin/autoupdater.lua index 9e6fd79f1a8c84b848f7a257ae7d21633d50f39b..7cc226935c598bfb17c492976af81d77cc5a5819 100644 --- a/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/controller/admin/autoupdater.lua +++ b/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/controller/admin/autoupdater.lua @@ -15,6 +15,5 @@ $Id$ module("luci.controller.admin.autoupdater", package.seeall) function index() - entry({"admin", "autoupdater"}, cbi("admin/autoupdater"), _("Autoupdater"), 20) + entry({"admin", "autoupdater"}, cbi("admin/autoupdater"), _("Automatic updates"), 20) end - diff --git a/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/model/cbi/admin/autoupdater.lua b/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/model/cbi/admin/autoupdater.lua index 6800422b989d4e29eda1f97b3cd2e13c2acef5df..a8f9d3b3e2a32c3115b51d705c877c3dd74344f4 100644 --- a/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/model/cbi/admin/autoupdater.lua +++ b/package/gluon-luci-autoupdater/files/usr/lib/lua/luci/model/cbi/admin/autoupdater.lua @@ -12,9 +12,7 @@ You may obtain a copy of the License at $Id$ ]]-- -m = Map("autoupdater", "Autoupdater") -m.submit = "Speichern" -m.reset = "Zurücksetzen" +m = Map("autoupdater", translate("Automatic updates")) m.pageaction = false m.template = "admin/expertmode" @@ -22,8 +20,8 @@ s = m:section(TypedSection, "autoupdater", nil) s.addremove = false s.anonymous = true -s:option(Flag, "enabled", "Aktivieren") -f = s:option(ListValue, "branch", "Branch") +s:option(Flag, "enabled", translate("Enable")) +f = s:option(ListValue, "branch", translate("Branch")) uci.cursor():foreach("autoupdater", "branch", function (section) f:value(section[".name"]) end) diff --git a/package/gluon-luci-autoupdater/i18n/de.po b/package/gluon-luci-autoupdater/i18n/de.po new file mode 100644 index 0000000000000000000000000000000000000000..9fd4cf53777eea0479ef9964fcf19ff3a6dffa04 --- /dev/null +++ b/package/gluon-luci-autoupdater/i18n/de.po @@ -0,0 +1,17 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2015-05-04 01:55+0200\n" +"Last-Translator: <mschiffer@universe-factory.net>\n" +"Language-Team: German\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Automatic updates" +msgstr "Automatische Updates" + +msgid "Branch" +msgstr "Branch" diff --git a/package/gluon-luci-autoupdater/i18n/gluon-luci-autoupdater.pot b/package/gluon-luci-autoupdater/i18n/gluon-luci-autoupdater.pot new file mode 100644 index 0000000000000000000000000000000000000000..678bdbaf6af5d401e6b86ca7fbca799ebc1d1d80 --- /dev/null +++ b/package/gluon-luci-autoupdater/i18n/gluon-luci-autoupdater.pot @@ -0,0 +1,8 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +msgid "Automatic updates" +msgstr "" + +msgid "Branch" +msgstr ""