luci/modules/luci-base
Jo-Philipp Wich ab405edfb6 luci-base: cbi.js: add client side translation infrastructure
Implement the string hash algorithm used by LuCI's translation system in
JavaScript and provide a `_()` translation wrapper function to lookup
messages in the global string table.

Once client side translation loading is activated in a later commit,
JavaScript code can use the same string translation mechanism as server
side Lua code, e.g. `_("Static Routes")` would yield "Statische Routen"
when the German translation is loaded.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
..
htdocs luci-base: cbi.js: add client side translation infrastructure 2018-11-05 11:01:45 +01:00
luasrc luci-base: expose system translations to JavaScript 2018-11-05 11:01:45 +01:00
po i18n: sync translations 2018-11-04 18:05:01 +02:00
root luci-base: redirect root path to /cgi-bin/luci/ 2018-10-10 13:04:17 +08:00
src luci-base: template: add translation iterator function 2018-11-05 11:01:45 +01:00
Makefile fix compilation failure when luasrcdiet is being copied to non existing directory 2018-07-30 19:32:37 +05:30