From 6e87a147882c03e91ac9ad334eb4b66618247694 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Wed, 29 Apr 2020 15:41:21 +1200 Subject: [PATCH] Useragent CSS: Add localizations! --- useragent.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/useragent.css b/useragent.css index b6d4a9f..4612665 100644 --- a/useragent.css +++ b/useragent.css @@ -10,6 +10,7 @@ input[type=submit][value] {speak: always; content: attr(value)} /** Tables **/ table::before {content: "Table"; voice-volume: x-soft} +table:lang(hu)::before {content: "táblázat"} table {counter-increment: -rhaps-table; counter-reset: -rhaps-tablerow} tr { cue-before: url(about:bulletpoint.wav); @@ -44,6 +45,7 @@ pre, samp, code {voice: neutral 2; white-space: pre;} :link {cue-after: url(about:link.wav) !important; voice-pitch: low} :visited {cue-after: url(about:link.wav) -0.1db !important} img {content: "Image " attr(src)} +img:lang(hu):not([alt]) {content: "kép " attr(src)} img[alt] {content: attr(alt)} b, strong {voice-rate: slow} @@ -85,7 +87,13 @@ cite {voice-stress: reduce} dialog {speak: never} dialog[open] {speak: always} kbd {speak-as: spell-out} progress {content: attr(value) " of " attr(max)} +progress:lang(hu) {content: attr(value) " a " attr(max) "-ból"} /* FIXME depending on number of vowels, should be -ből */ sub {voice-rate: x-fast} sup {voice-rate: fast} var {voice-rate: slow} aside {voice-volume: soft} + +/* Localized into: +- English +- French (surprisingly same as English) +- Hungarian */ -- 2.30.2