summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-11-05luci-base: expose system translations to JavaScriptJo-Philipp Wich
Add a new /admin/translations/ endpoint which exposes the loaded system translations as JavaScript file. Once referenced by <script>, the endpoint will create a `window.TR` object containing the entire translation string table for use on the client side. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05luci-base: remove unused i18n functionsJo-Philipp Wich
Drop load(), loadc(), string() and stringf() from the luci.i18n class since these functions are either no longer unused or were never used to begin with. Also slightly rework the module to only use local symbols and unify the module require style. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05luci-base: remove references to luci.i18n.loadc()Jo-Philipp Wich
The i18n.loadc() function has been a no-op since almost six years so it makes no sense to invoke it anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05luci-app-mjpg-streamer: remove reference to luci.i18n.loadc()Jo-Philipp Wich
The i18n.loadc() function has been a no-op since almost six years. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05luci-base: introduce luci.i18n.dump()Jo-Philipp Wich
Add a new luci.i18n.dump() function which returns all currently loaded translation strings as Lua table. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05luci-base: fix luci.i18n.setlanguage()Jo-Philipp Wich
Rework the setlanguage() implementation to actually switch catalogues if another language has been loaded previously and change it to return the effectively loaded language tag. Also improve input parameter validation and accept tags in both lower or upper case. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05luci-base: template: add translation iterator functionJo-Philipp Wich
Introduce a new luci.template.parser.get_translations() function which will iterate all loaded translation entries and pass the to the given callback function. This is useful to expose the loaded translations in other formats, e.g. for wrapping them into JSON feeds. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05build: i18n-scan.pl: *.js support, location annotationsJo-Philipp Wich
Extend i18n-scan.pl to scan JavaScript files for translation strings as well and annotate produced *.po template files with source code location markers. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-04i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-11-02Merge pull request #2246 from rosysong/rosyJo-Philipp Wich
theme: add initial commit for rosy theme
2018-11-02Merge pull request #2193 from rosysong/freespaceJo-Philipp Wich
luci-mod-system: add id for software/freespace div
2018-11-02community-profiles: create profile for FürstenwaldeMartin Hübner
New profile for Fürstenwalde. At the moment we use parts of the Berlin- infrastructure. Thus I have not changed the ip-address-related things. Signed-off-by: Martin Hübner <martin.hubner@web.de> [reword and rewrap commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-02Merge pull request #2250 from booo/remove-olsrd-library-version-numbersJo-Philipp Wich
get rid of library version numbers in luci olsrd code
2018-11-02Merge pull request #2252 from stweil/lgtmJo-Philipp Wich
Add missing variable declarations in JavaScript code
2018-10-30Merge pull request #2253 from dibdot/travelmateDirk Brenken
luci-app-travelmate: sync with travelmate 1.3.0
2018-10-30timezone data: update to 2018gHannu Nyman
Update timezone data to 2018g http://mm.icann.org/pipermail/tz-announce/2018-October/000052.html * Morocco switches to permanent +01 on 2018-10-27. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-30luci-app-travelmate: sync with travelmate 1.3.0Dirk Brenken
* add support for the new 'trm_proactive' option Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-29theme: add initial commit for rosy themeRosy Song
Signed-off-by: Rosy Song <rosysong@rosinson.com> Signed-off-by: Yan Lan Shen <yanlan.shen@rosinson.com>
2018-10-28Add missing variable declarations in JavaScript codeStefan Weil
This fixes errors reported by LGTM. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-25get rid of library version numbers in luci olsrd codePhilipp Borgers
Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
2018-10-25Merge pull request #2248 from tano-systems/fstab-translateble-swapHannu Nyman
luci-mod-system: fstab: "SWAP" section title is made translatable
2018-10-25luci-mod-system: fstab: "SWAP" section title is made translatableAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-25Merge pull request #2247 from tano-systems/luci-base-upd-ru-i18nHannu Nyman
luci-base: update and improve Russian translation
2018-10-25luci-base: update and improve Russian translationAnton Kikin
Add missing translations and update existing not quite correct translations. Also removed unnecessary dots at the end of some translations. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-25 timezone data: update to 2018fHannu Nyman
Update timezone data to 2018f http://mm.icann.org/pipermail/tz-announce/2018-October/000051.html Volgograd moves from +03 to +04 on 2018-10-28. Fiji ends DST 2019-01-13, not 2019-01-20. Most of Chile changes DST dates, effective 2019-04-06. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-23Merge pull request #2243 from dibdot/ovpn-fixDirk Brenken
luci-app-openvpn: file name fix
2018-10-23luci-app-openvpn: file name fixDirk Brenken
* fix shellquote oversight of the last commit Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-23Merge pull request #2235 from dibdot/ovpn-uploadDirk Brenken
luci-app-openvpn: add ovpn upload support & more
2018-10-23luci-app-openvpn: add ovpn upload support & moreDirk Brenken
* add the ability to upload ovpn files directly, incl. appropriate uci entry in openvpn config * add the ability to edit ovpn files directly ('file' mode), beside the 'basic' and 'advanced' modes for normal setups * client side checks to validate instance name & template selection, incl. online error reporting * automatically remove non-ascii characters & windows line endings from transfered ovpn file * change from after_commit to after_apply hook * remove misleading default values for Port & Protocol in Overview Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-23Merge pull request #2238 from mmouselli/fixed_ui_olsr_service_menuJo-Philipp Wich
luci-app-olsr-services: Don't use the nameservice with a specific ver…
2018-10-22Merge pull request #2227 from YuriPet/masterHannu Nyman
luci-base: update Ukrainian translation
2018-10-21Merge pull request #2239 from dibdot/travelmateDirk Brenken
luci-app-travelmate: fix wireless scan
2018-10-21luci-app-olsr-services: Don't use the nameservice with a specific version.mmouselli
The "Services" menu option of olsr on the top of the web interface is not there. A specific version of the App name was in the controller service Removing the limitation will fix the problem https://github.com/freifunk-berlin/firmware/issues/594 Signed-off-by: mmouselli <m.mouselli@syseleven.de>
2018-10-21Merge pull request #2236 from simontretter/masterJo-Philipp Wich
luci-theme-material: Add main color variable
2018-10-21luci-app-travelmate: fix wireless scanDirk Brenken
* fix possible crash during wireless scan when no valid WPA label was found Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-21luci-theme-material: Add main color variableSimon Tretter
Signed-off-by: Simon Tretter <simon@mediaarchitectu.re>
2018-10-20Merge pull request #2233 from musashino205/l10n/base-upd-jaJo-Philipp Wich
luci-base: update Japanese translation
2018-10-20Merge pull request #2215 from MonwF/feature_root_redirect_pathJo-Philipp Wich
luci-base: redirect root path to /cgi-bin/luci/
2018-10-20Merge pull request #2196 from TDT-AG/pr/20181001-luci-theme-materialJo-Philipp Wich
luci-theme-material: make font configurable and minor fixes
2018-10-20luci-base: update Japanese translationINAGAKI Hiroshi
Added and updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-10-17luci-base: fix cbi dropdown quirks with MS EdgeJo-Philipp Wich
On MS Edge, the behaviour of "value" attributes on "li" elements is unreliable, so use the "data-" prefix to circumvent the problem. Ref: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19320991/ Fixes: #2224 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-10-15luci-theme-material: fix css to show loading-img againFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-14luci-base: update Ukrainian translationYurii
Updated with the latest sync translation, corrections. Signed-off-by: Yurii yuripet@gmail.com
2018-10-13Merge pull request #2209 from jinchizhong/luci-app-statistics-add-curlHannu Nyman
luci-app-statistics: add support for cUrl
2018-10-14pp-statistics: add support for cUrlChizhong Jin
Add collectd-mod-curl plugin support. Which can do some complex track, such as grab stock, but by now, only response time are supported. Signed-off-by: Chizhong Jin <pjincz@gmail.com>
2018-10-13Merge pull request #2225 from tano-systems/luci-proto-3g-fix-missed-opt-nameHannu Nyman
luci-proto-3g: add missed option name for IPv6 address obtain mode
2018-10-12Merge pull request #2226 from yangfl/masterHannu Nyman
luci-app-dump1090: Fix typo of a dumb option
2018-10-12luci-app-dump1090: Fix typo of a dumb optionyangfl
Option `aggressive` is supported by dump1090 binary, but oddly missing in dump1090.init. Nevertheless, neither of them support the wrong `agressive`. Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-12luci-proto-3g: add missed option name for IPv6 address obtain modeAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-12Merge pull request #2221 from yangfl/masterHannu Nyman
treewide: Fix typos in UI strings