Age | Commit message (Collapse) | Author |
|
Fixes: #3563
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Ref: #3563
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Introduce a new luci.template.parser.ntranslate() function which
takes a count, a singular and a plural translation string as well
as an optional context argument and returns the appropriate,
language specific plural translation.
- Introduce an optional translation context argument in the existing
luci.template.parser.translate() function
- Support translation contexts in LuCI template directives.
Translation messages are split on the first unescaped pipe
character and the reamining string after the pipe is treated
as context.
Examples:
- `string.format(p.ntranslate(n, "1 apple", "%d apples"), n)` will
return an appropriate plural translation for the given amount.
- `translate("Load", "The system load")` will return an appropiate
translation for `Load`, using `The system load` as disambiguation
context (a `msgctxt` directive in *.po files).
- Likewise `<%:Load|The system load%>` will translate the word
`Load` while using the remainder of the string as context.
- To use pipes in translations strings literally, they must be
escaped: `<%:Use the "\|" character%>` will translate the literal
string `Use the "|" character`.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci-app-vnstat2: add Spanish translation
|
|
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Translations update from Weblate
|
|
Currently translated at 100.0% (42 of 42 strings)
Translation: OpenWrt/LuCI/applications/advanced-reboot
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/de/
Signed-off-by: frauhottelmann <frauhottelmann@gmail.com>
Translated using Weblate (German)
Currently translated at 64.0% (110 of 172 strings)
Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/de/
Signed-off-by: frauhottelmann <frauhottelmann@gmail.com>
Translated using Weblate (Russian)
Currently translated at 100.0% (187 of 187 strings)
Translation: OpenWrt/LuCI/applications/openvpn
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/ru/
Translated using Weblate (German)
Currently translated at 98.3% (1308 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/
Signed-off-by: frauhottelmann <frauhottelmann@gmail.com>
Translated using Weblate (Russian)
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
|
|
Translations update from Weblate
|
|
Currently translated at 80.2% (142 of 177 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (Russian)
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
|
|
Translations update from Weblate
|
|
Currently translated at 100.0% (65 of 65 strings)
Translation: OpenWrt/LuCI/applications/yggdrasil
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Fix conflict at applications/luci-app-ddns/po/zh-tw/ddns.po
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Currently translated at 100.0% (50 of 50 strings)
Translation: OpenWrt/LuCI/applications/mjpg-streamer
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/zh_Hant/
Signed-off-by: Andy Yang <a962702@yahoo.com>
|
|
Currently translated at 100.0% (1 of 1 strings)
Translation: OpenWrt/LuCI/applications/attendedsysupgrade
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/zh_Hant/
Signed-off-by: Andy Yang <a962702@yahoo.com>
|
|
Currently translated at 100.0% (27 of 27 strings)
Translation: OpenWrt/LuCI/applications/noddos
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnoddos/zh_Hant/
Signed-off-by: Andy Yang <a962702@yahoo.com>
|
|
Currently translated at 69.3% (122 of 176 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hant/
Signed-off-by: Andy Yang <a962702@yahoo.com>
|
|
Currently translated at 100.0% (22 of 22 strings)
Translation: OpenWrt/LuCI/applications/samba
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba/zh_Hant/
|
|
Currently translated at 100.0% (209 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
|
|
Currently translated at 87.5% (28 of 32 strings)
Translation: OpenWrt/LuCI/applications/samba4
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/zh_Hant/
|
|
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Remove the abbreviation coding from the menu item, as it does nor work
in menu and seems to prevent translation of the menu item.
(This was the only menu item in LuCI that had abbr logic.)
Reference to #3553
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
luci-app-vnstat2: add application
|
|
This adds an application for vnStat version 2.
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
|
|
Explicitly initialize the address scope value to zero in parse_cidr() and
L_setaddr() to avoid stray scope identifiers getting added when formatting
the address object as string.
Fixes: 1d2b4c777 ("luci-lib-ip: support scoped IPv6 addresses")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Implement `N_(count, "String singular", "String plural" [, "Context"])`
plural translation function.
- Extend `_()` to optionally accept a second disambiguation context
argument.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Extract and store the plural calculation function in .lmo files
- Handle plural translation messages
- Handle translation contexts
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Using xgettext has a few benefits compared to the previous perl extraction
approach. The xgettext utility is able to properly distinguish commented
from uncommented code and it is able handle concatenated constant
expressions such as `_("Some " + "string")`.
A further benefit is the ability to extract translations with disambiguation
contexts and plural translation calls.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
The unespaced slashes confuse xgettext and likely other source
scanners as well.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
The unespaced slashes confuse xgettext and likely other source
scanners as well.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Translations update from Weblate
|
|
Currently translated at 100.0% (33 of 33 strings)
Translation: OpenWrt/LuCI/applications/wifischedule
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (42 of 42 strings)
Translation: OpenWrt/LuCI/applications/advanced-reboot
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (25 of 25 strings)
Translation: OpenWrt/LuCI/applications/dcwapd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (30 of 30 strings)
Translation: OpenWrt/LuCI/applications/dynapoint
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdynapoint/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (118 of 118 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (101 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/zh_Hans/
Translated using Weblate (Spanish)
Currently translated at 100.0% (209 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (235 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Translations update from Weblate
|
|
Currently translated at 98.0% (99 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/zh_Hans/
Translated using Weblate (Spanish)
Currently translated at 97.1% (203 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
|
|
Translations update from Weblate
|
|
Currently translated at 84.2% (117 of 139 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/ru/
Signed-off-by: Max Smolik <makcum15@gmail.com>
Translated using Weblate (Russian)
Currently translated at 20.4% (10 of 49 strings)
Translation: OpenWrt/LuCI/applications/bmx7
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbmx7/ru/
Signed-off-by: Max Smolik <makcum15@gmail.com>
Translated using Weblate (Russian)
Currently translated at 75.6% (133 of 176 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/ru/
Signed-off-by: Max Smolik <makcum15@gmail.com>
Translated using Weblate (Russian)
Currently translated at 23.0% (14 of 61 strings)
Translation: OpenWrt/LuCI/applications/ocserv
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/ru/
Signed-off-by: Max Smolik <makcum15@gmail.com>
Translated using Weblate (Russian)
Currently translated at 29.2% (7 of 24 strings)
Translation: OpenWrt/LuCI/applications/cshark
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/ru/
Signed-off-by: Max Smolik <makcum15@gmail.com>
Translated using Weblate (Russian)
Currently translated at 100.0% (46 of 46 strings)
Translation: OpenWrt/LuCI/applications/minidlna
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/ru/
Translated using Weblate (Polish)
Currently translated at 100.0% (209 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/pl/
Translated using Weblate (Spanish)
Currently translated at 90.0% (188 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Introduce a new option `initial_directory` which describes the initial
directory to display when nothing is selected, default to the root
directory
- Prevent stray legacy cbi reloads when deselecting files
- Fix within-root-directory-check for initial rendering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Read interface statistics from /sys/class/net/
- Discover all wireless interfaces, not just specifically named ones
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Translations update from Weblate
|
|
Currently translated at 100.0% (101 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/es/
Translated using Weblate (Polish)
Currently translated at 95.7% (200 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/pl/
Translated using Weblate (Spanish)
Currently translated at 99.0% (207 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (81 of 81 strings)
Translation: OpenWrt/LuCI/applications/splash
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/es/
Translated using Weblate (Portuguese)
Currently translated at 29.6% (29 of 98 strings)
Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/pt/
Signed-off-by: ssantos <ssantos@web.de>
Translated using Weblate (Portuguese)
Currently translated at 100.0% (172 of 172 strings)
Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/pt/
Signed-off-by: ssantos <ssantos@web.de>
Translated using Weblate (Portuguese)
Currently translated at 100.0% (19 of 19 strings)
Translation: OpenWrt/LuCI/applications/fwknopd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfwknopd/pt/
Translated using Weblate (Portuguese)
Currently translated at 100.0% (101 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/pt/
Translated using Weblate (Russian)
Currently translated at 100.0% (209 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ru/
Translated using Weblate (Portuguese)
Currently translated at 69.9% (146 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/pt/
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
luci-app-splash: improve wording
|
|
Translations update from Weblate
|
|
Currently translated at 21.4% (21 of 98 strings)
Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Russian)
Currently translated at 100.0% (23 of 23 strings)
Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Spanish)
Currently translated at 100.0% (176 of 176 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/es/
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Translated using Weblate (Russian)
Currently translated at 31.9% (23 of 72 strings)
Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Russian)
Currently translated at 97.0% (98 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/ru/
Translated using Weblate (Polish)
Currently translated at 95.0% (96 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/pl/
Translated using Weblate (Spanish)
Currently translated at 90.1% (91 of 101 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/es/
Translated using Weblate (Russian)
Currently translated at 100.0% (194 of 194 strings)
Translation: OpenWrt/LuCI/applications/olsr
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (22 of 22 strings)
Translation: OpenWrt/LuCI/applications/samba
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (194 of 194 strings)
Translation: OpenWrt/LuCI/applications/openvpn
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (209 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ru/
Translated using Weblate (Polish)
Currently translated at 90.0% (188 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/pl/
Translated using Weblate (Spanish)
Currently translated at 89.5% (187 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
Translated using Weblate (Russian)
Currently translated at 68.8% (22 of 32 strings)
Translation: OpenWrt/LuCI/applications/samba4
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (1330 of 1330 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Russian)
Currently translated at 81.3% (170 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ru/
Translated using Weblate (German)
Currently translated at 100.0% (209 of 209 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/de/
|
|
luci-app-transmission: port to client side
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|