applications/luci-minidlna: load language file in status template
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 9 Apr 2012 15:19:47 +0000 (15:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 9 Apr 2012 15:19:47 +0000 (15:19 +0000)
applications/luci-minidlna/luasrc/view/minidlna_status.htm

index ba23bedcc421494116f511b1b01233dd5ca6a9f8..a2336f76a744453c57680502afb40a96af928ee0 100644 (file)
@@ -1,3 +1,5 @@
+<%- luci.i18n.loadc("minidlna") -%>
+
 <script type="text/javascript">//<![CDATA[
        XHR.poll(5, '<%=luci.dispatcher.build_url("admin/services/minidlna_status")%>', null,
                function(x, st)
@@ -14,7 +16,7 @@
                                }
                                else
                                {
-                                       tb.innerHTML = '<%:The miniDLNA service is not running.%>';
+                                       tb.innerHTML = '<em><%:The miniDLNA service is not running.%></em>';
                                }
                        }
                }