modules/admin-full: fix i18n for led page
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Nov 2009 13:19:57 +0000 (13:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Nov 2009 13:19:57 +0000 (13:19 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/leds.lua

index e4045d2f4069a3ad0c716b70ef2cbaf1fb4ca0b4..0613ba28b6d4550cf7bb91232ca62cf4bb53d757 100644 (file)
@@ -53,7 +53,7 @@ trigger = s:option(ListValue, "trigger")
 
 local triggers = fs.readfile(sysfs_path .. leds[1] .. "/trigger")
 for t in triggers:gmatch("[%w-]+") do
-       trigger:value(t, translate("system_led_trigger_" .. t:gsub("-", "")))
+       trigger:value(t, translate(t:gsub("-", "")))
 end