Skip to content

Commit

Permalink
feat(ui): use language-specific list formatting for cyrillic languages
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Dec 16, 2024
1 parent 9d6e35f commit f40c1ae
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
40 changes: 40 additions & 0 deletions weblate_web/static/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3634,6 +3634,46 @@ footer .footer-right {
position: absolute;
right: -1.4em;
}
@counter-style lower-belorussian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "ё" "ж" "з" "і" "й" "к" "л" "м" "н" "о" "п"
"р" "с" "т" "у" "ў" "ф" "х" "ц" "ч" "ш" "ы" "ь" "э" "ю" "я";
}
@counter-style lower-bulgarian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "ж" "з" "и" "й" "к" "л" "м" "н" "о" "п" "р"
"с" "т" "у" "ф" "х" "ц" "ч" "ш" "щ" "ъ" "ь" "ю" "я";
}
@counter-style lower-macedonian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "ѓ" "е" "ж" "з" "ѕ" "и" "ј" "к" "л" "љ" "м" "н"
"њ" "о" "п" "р" "с" "т" "ќ" "у" "ф" "х" "ц" "ч" "џ" "ш";
}
@counter-style lower-russian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "ж" "з" "и" "к" "л" "м" "н" "о" "п" "р" "с"
"т" "у" "ф" "х" "ц" "ч" "ш" "щ" "э" "ю" "я";
}
@counter-style lower-ukrainian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "є" "ж" "з" "и" "і" "к" "л" "м" "н" "о" "п"
"р" "с" "т" "у" "ф" "х" "ц" "ч" "ш" "ю" "я";
}
[lang="by"] .tos ol > li:before {
content: counter(tos_list, lower-belorussian) ") ";
}
[lang="bg"] .tos ol > li:before {
content: counter(tos_list, lower-bulgarian) ") ";
}
[lang="mk"] .tos ol > li:before {
content: counter(tos_list, lower-macedonian) ") ";
}
[lang="ru"] .tos ol > li:before {
content: counter(tos_list, lower-russian) ") ";
}
[lang="uk"] .tos ol > li:before {
content: counter(tos_list, lower-ukrainian) ") ";
}

.tos a {
color: #2eccaa;
Expand Down
40 changes: 40 additions & 0 deletions weblate_web/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3634,6 +3634,46 @@ footer .footer-right {
position: absolute;
left: -1.4em;
}
@counter-style lower-belorussian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "ё" "ж" "з" "і" "й" "к" "л" "м" "н" "о" "п"
"р" "с" "т" "у" "ў" "ф" "х" "ц" "ч" "ш" "ы" "ь" "э" "ю" "я";
}
@counter-style lower-bulgarian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "ж" "з" "и" "й" "к" "л" "м" "н" "о" "п" "р"
"с" "т" "у" "ф" "х" "ц" "ч" "ш" "щ" "ъ" "ь" "ю" "я";
}
@counter-style lower-macedonian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "ѓ" "е" "ж" "з" "ѕ" "и" "ј" "к" "л" "љ" "м" "н"
"њ" "о" "п" "р" "с" "т" "ќ" "у" "ф" "х" "ц" "ч" "џ" "ш";
}
@counter-style lower-russian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "ж" "з" "и" "к" "л" "м" "н" "о" "п" "р" "с"
"т" "у" "ф" "х" "ц" "ч" "ш" "щ" "э" "ю" "я";
}
@counter-style lower-ukrainian {
system: alphabetic;
symbols: "а" "б" "в" "г" "д" "е" "є" "ж" "з" "и" "і" "к" "л" "м" "н" "о" "п"
"р" "с" "т" "у" "ф" "х" "ц" "ч" "ш" "ю" "я";
}
[lang="by"] .tos ol > li:before {
content: counter(tos_list, lower-belorussian) ") ";
}
[lang="bg"] .tos ol > li:before {
content: counter(tos_list, lower-bulgarian) ") ";
}
[lang="mk"] .tos ol > li:before {
content: counter(tos_list, lower-macedonian) ") ";
}
[lang="ru"] .tos ol > li:before {
content: counter(tos_list, lower-russian) ") ";
}
[lang="uk"] .tos ol > li:before {
content: counter(tos_list, lower-ukrainian) ") ";
}

.tos a {
color: #2eccaa;
Expand Down

0 comments on commit f40c1ae

Please sign in to comment.