Samantaz Fox
|
12b818a83c
|
Fix more 'Lint/ShadowingOuterLocalVar' warnings reported by ameba
|
2022-01-28 02:19:53 +01:00 |
|
Samantaz Fox
|
eb7e79fdf7
|
i18n: Apply code review suggestions + code cleaning
|
2022-01-10 22:49:07 +01:00 |
|
Samantaz Fox
|
5bb2cb7d71
|
i18n: Use plurals for video/view/subscriber/subscription counts
|
2022-01-10 22:49:07 +01:00 |
|
Samantaz Fox
|
7bb1471207
|
i18n: Add dedicated function for counts translation
|
2022-01-10 22:49:07 +01:00 |
|
Samantaz Fox
|
fc2b9031d4
|
i18n: Add Serbian back
|
2021-12-22 00:52:08 +01:00 |
|
Samantaz Fox
|
2ea0590b03
|
i18n: return 'key' if 'key' is not in locales files
|
2021-11-25 19:46:34 +01:00 |
|
Samantaz Fox
|
bf7952d9c7
|
i18n: log a warning instead of rising an exception
This is more user-friendly.
TODO: maybe make a compile time flag for testing purposes
|
2021-11-21 01:54:54 +01:00 |
|
Samantaz Fox
|
139786b9ef
|
i18n: pass only the ISO code string to 'translate()'
Don't use the whole Hash everywhere.
Also fall back nicely to english string if no translation exists.
|
2021-11-21 01:50:11 +01:00 |
|
Samantaz Fox
|
9966c21c6b
|
i18n: Add list of language names
|
2021-11-21 01:50:11 +01:00 |
|
Dmitry Sandalov
|
0e17d026f2
|
Feature Request: Localization for trending (fix lint CONTENT_REGIONS end comma)
|
2021-10-21 23:38:49 +03:00 |
|
Dmitry Sandalov
|
1d78d67af3
|
Feature Request: Localization for trending (move TRENDING_REGIONS to i18n.cr as CONTENT_REGIONS)
|
2021-10-21 22:30:49 +03:00 |
|
syeopite
|
73eabb6ca2
|
Actually fix lint
|
2021-10-02 08:53:58 -07:00 |
|
Samantaz Fox
|
5a52b4fe45
|
Fix lint
|
2021-10-02 17:41:25 +02:00 |
|
Samantaz Fox
|
caa08a6379
|
Disable locales with less than 50% of strings translated
|
2021-10-02 17:38:06 +02:00 |
|
Samantaz Fox
|
cd02078e26
|
Add Portuguese (pt) to locales
follow up to #2437
|
2021-10-02 17:19:28 +02:00 |
|
Samantaz Fox
|
bc937a6434
|
Add Korean (ko.json) to loaded locales
Required because of c83113d49b.
|
2021-07-26 00:15:32 +02:00 |
|
Samantaz Fox
|
c0e8feb66e
|
Add new and missing locales to i18n.cr
New locales: lt, vi
Missing: bn_BD, cs, da, eu, hu-HU, si, sk, sr, sr_Cyrl
|
2021-07-12 19:41:35 +02:00 |
|
syeopite
|
6c9dd8deb6
|
Change internal i18n key of sv-SE from sv to sv-SE
|
2021-06-13 06:23:18 -07:00 |
|
Samantaz Fox
|
cac5f20a28
|
Move locales definition to i18n.cr
|
2021-04-21 16:10:25 +02:00 |
|
Omar Roth
|
ca1185d0be
|
Fix warnings in latest version of Crystal
|
2020-04-09 12:18:09 -05:00 |
|
Omar Roth
|
ef309bd8d0
|
Translate value for 'familyFriendly'
|
2019-04-28 14:56:06 -05:00 |
|
Omar Roth
|
6cdb6ec711
|
Add support for plurlization to locales
|
2019-04-28 14:50:17 -05:00 |
|
Omar Roth
|
d06c5306be
|
Update i18n
|
2018-12-20 17:41:42 -06:00 |
|
Omar Roth
|
7596baf03b
|
Fix translation with non-existent locales
|
2018-12-20 16:59:46 -06:00 |
|
Omar Roth
|
a160c645c9
|
Add support for translations
|
2018-12-20 15:32:09 -06:00 |
|