Commit graph

10166 commits

Author SHA1 Message Date
Jo-Philipp Wich
08255e266b luci-base: fix luci.i18n.setlanguage()
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-05 11:01:45 +01:00
Jo-Philipp Wich
62102f4f0e luci-base: template: add translation iterator function
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-05 11:01:45 +01:00
Jo-Philipp Wich
4623a58394 build: i18n-scan.pl: *.js support, location annotations
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-05 11:01:45 +01:00
Hannu Nyman
982c023deb i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-11-04 18:05:01 +02:00
Jo-Philipp Wich
21d7dfeff3
Merge pull request #2246 from rosysong/rosy
theme: add initial commit for rosy theme
2018-11-02 14:06:03 +01:00
Jo-Philipp Wich
807fc816bb
Merge pull request #2193 from rosysong/freespace
luci-mod-system: add id for software/freespace div
2018-11-02 14:04:31 +01:00
Martin Hübner
c04b889cc7 community-profiles: create profile for Fürstenwalde
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-02 13:55:28 +01:00
Jo-Philipp Wich
42eb9cf758
Merge pull request #2250 from booo/remove-olsrd-library-version-numbers
get rid of library version numbers in luci olsrd code
2018-11-02 13:53:08 +01:00
Jo-Philipp Wich
d1c24c8972
Merge pull request #2252 from stweil/lgtm
Add missing variable declarations in JavaScript code
2018-11-02 13:52:37 +01:00
Dirk Brenken
1c076cd26d
Merge pull request #2253 from dibdot/travelmate
luci-app-travelmate: sync with travelmate 1.3.0
2018-10-30 20:12:13 +01:00
Hannu Nyman
111ebe2f62 timezone data: update to 2018g
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-30 19:45:50 +02:00
Dirk Brenken
0b63c22399 luci-app-travelmate: sync with travelmate 1.3.0
* add support for the new 'trm_proactive' option

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-30 15:30:58 +01:00
Rosy Song
cc95746778 theme: add initial commit for rosy theme
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Signed-off-by: Yan Lan Shen <yanlan.shen@rosinson.com>
2018-10-29 20:09:01 +08:00
Stefan Weil
ec63339ae5 Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-28 22:38:20 +01:00
Philipp Borgers
5f65547dfd get rid of library version numbers in luci olsrd code
Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
2018-10-25 21:56:06 +02:00
Hannu Nyman
35b543e270
Merge pull request #2248 from tano-systems/fstab-translateble-swap
luci-mod-system: fstab: "SWAP" section title is made translatable
2018-10-25 19:51:36 +03:00
Anton Kikin
6958e0d10c luci-mod-system: fstab: "SWAP" section title is made translatable
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-25 19:40:23 +03:00
Hannu Nyman
b412a4c231
Merge pull request #2247 from tano-systems/luci-base-upd-ru-i18n
luci-base: update and improve Russian translation
2018-10-25 19:35:23 +03:00
Anton Kikin
21370eb1cd luci-base: update and improve Russian translation
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 19:30:54 +03:00
Hannu Nyman
651937c166 timezone data: update to 2018f
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-25 18:44:48 +03:00
Dirk Brenken
9deb5c11d9
Merge pull request #2243 from dibdot/ovpn-fix
luci-app-openvpn: file name fix
2018-10-23 23:18:38 +02:00
Dirk Brenken
c20a691431 luci-app-openvpn: file name fix
* fix shellquote oversight of the last commit

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-23 23:16:38 +02:00
Dirk Brenken
1a5b613b87
Merge pull request #2235 from dibdot/ovpn-upload
luci-app-openvpn: add ovpn upload support & more
2018-10-23 21:26:51 +02:00
Dirk Brenken
0b04912f8d luci-app-openvpn: add ovpn upload support & more
* 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-23 21:17:22 +02:00
Jo-Philipp Wich
290610798a
Merge pull request #2238 from mmouselli/fixed_ui_olsr_service_menu
luci-app-olsr-services: Don't use the nameservice with a specific ver…
2018-10-23 13:20:45 +02:00
Hannu Nyman
c74d9c011a
Merge pull request #2227 from YuriPet/master
luci-base: update Ukrainian translation
2018-10-22 20:39:25 +01:00
Dirk Brenken
c1cc626cc5
Merge pull request #2239 from dibdot/travelmate
luci-app-travelmate: fix wireless scan
2018-10-21 22:39:21 +02:00
mmouselli
19e9d84602 luci-app-olsr-services: Don't use the nameservice with a specific version.
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-21 21:14:45 +02:00
Jo-Philipp Wich
696cb9fe80
Merge pull request #2236 from simontretter/master
luci-theme-material: Add main color variable
2018-10-21 11:47:53 +02:00
Dirk Brenken
9232cee7a4 luci-app-travelmate: fix wireless scan
* fix possible crash during wireless scan
  when no valid WPA label was found

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-21 08:37:56 +02:00
Simon Tretter
f46ad87750 luci-theme-material: Add main color variable
Signed-off-by: Simon Tretter <simon@mediaarchitectu.re>
2018-10-21 11:50:55 +08:00
Jo-Philipp Wich
a2a5110902
Merge pull request #2233 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
2018-10-20 18:04:29 +02:00
Jo-Philipp Wich
d9687f016d
Merge pull request #2215 from MonwF/feature_root_redirect_path
luci-base: redirect root path to /cgi-bin/luci/
2018-10-20 18:04:11 +02:00
Jo-Philipp Wich
5e994c6179
Merge pull request #2196 from TDT-AG/pr/20181001-luci-theme-material
luci-theme-material: make font configurable and minor fixes
2018-10-20 18:02:11 +02:00
INAGAKI Hiroshi
86acdb8980 luci-base: update Japanese translation
Added and updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-10-20 00:57:01 +09:00
Jo-Philipp Wich
9e6949849d luci-base: fix cbi dropdown quirks with MS Edge
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-17 08:07:48 +02:00
Florian Eckert
8095ba5a2d luci-theme-material: fix css to show loading-img again
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-15 13:56:48 +02:00
Yurii
36965f2277
luci-base: update Ukrainian translation
Updated with the latest sync translation, corrections.

Signed-off-by: Yurii yuripet@gmail.com
2018-10-14 18:14:01 +03:00
Hannu Nyman
703cd24868
Merge pull request #2209 from jinchizhong/luci-app-statistics-add-curl
luci-app-statistics: add support for cUrl
2018-10-13 22:02:42 +03:00
Chizhong Jin
2d1830422b pp-statistics: add support for cUrl
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-14 02:34:49 +08:00
Hannu Nyman
7eff2de5d4
Merge pull request #2225 from tano-systems/luci-proto-3g-fix-missed-opt-name
luci-proto-3g: add missed option name for IPv6 address obtain mode
2018-10-13 16:24:44 +03:00
Hannu Nyman
77db045bf4
Merge pull request #2226 from yangfl/master
luci-app-dump1090: Fix typo of a dumb option
2018-10-12 18:51:09 +03:00
yangfl
40feafe556 luci-app-dump1090: Fix typo of a dumb option
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-12 23:28:18 +08:00
Anton Kikin
21378547ec luci-proto-3g: add missed option name for IPv6 address obtain mode
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-12 18:18:11 +03:00
Hannu Nyman
1544e10f91
Merge pull request #2221 from yangfl/master
treewide: Fix typos in UI strings
2018-10-12 18:09:25 +03:00
yangfl
282aa6856d luci-app: init translations for shadowsocks-libev and unbound
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-12 22:18:51 +08:00
yangfl
89333d2b63 luci-app: Fix typos for po strings
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-12 22:18:51 +08:00
yangfl
ae8b68cfe8 treewide: Fix typos in UI strings
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-12 22:18:51 +08:00
yangfl
641475ee59 freifunk-watchdog: Fix typos
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-12 22:18:51 +08:00
Hannu Nyman
896892f9af
Merge pull request #2223 from TDT-AG/pr/20181012-luci-app-mwan3
luci-app-mwan3: fix typo
2018-10-12 16:30:42 +03:00