Skip to content

Commit

Permalink
chore: update acknowledgements and add support for new l10ns (#740)
Browse files Browse the repository at this point in the history
* chore: add support for ru l10n

* update acknowledgements
  • Loading branch information
AkesiSeli authored Jan 15, 2025
1 parent f3b0a7a commit 44d1825
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,5 +475,6 @@
<string name="language_pl" translatable="false">Polski</string>
<string name="language_pt" translatable="false">Português</string>
<string name="language_ro" translatable="false">Română</string>
<string name="language_ru" translatable="false">Русский</string>
<string name="language_ua" translatable="false">Українська</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ import raccoonforfriendica.composeapp.generated.resources.language_it
import raccoonforfriendica.composeapp.generated.resources.language_pl
import raccoonforfriendica.composeapp.generated.resources.language_pt
import raccoonforfriendica.composeapp.generated.resources.language_ro
import raccoonforfriendica.composeapp.generated.resources.language_ru
import raccoonforfriendica.composeapp.generated.resources.language_ua
import raccoonforfriendica.composeapp.generated.resources.login_friendica_header
import raccoonforfriendica.composeapp.generated.resources.login_mastodon_header
Expand Down Expand Up @@ -872,6 +873,8 @@ class SharedStrings : Strings {
@Composable get() = stringResource(Res.string.language_pt)
override val languageRo: String
@Composable get() = stringResource(Res.string.language_ro)
override val languageRu: String
@Composable get() = stringResource(Res.string.language_ru)
override val languageUa: String
@Composable get() = stringResource(Res.string.language_ua)
override val loginFriendicaHeader: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ fun String?.toLanguageName(): String? =
Locales.PL -> LocalStrings.current.languagePl
Locales.PT -> LocalStrings.current.languagePt
Locales.RO -> LocalStrings.current.languageRo
Locales.RU -> LocalStrings.current.languageRu
Locales.UA -> LocalStrings.current.languageUa
else -> null
}
Expand All @@ -36,6 +37,7 @@ fun String?.toLanguageFlag(): String? =
Locales.PL -> "🇵🇱"
Locales.PT -> "🇵🇹"
Locales.RO -> "🇷🇴"
Locales.RU -> "🇷🇺"
Locales.UA -> "🇺🇦"
else -> null
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ object Locales {
const val PL = "pl"
const val PT = "pt"
const val RO = "ro"
const val RU = "ru"
const val UA = "ua"

val AVAILABLE_LANGUAGES =
Expand All @@ -23,6 +24,7 @@ object Locales {
PL,
PT,
RO,
RU,
UA,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ interface Strings {
val languagePl: String @Composable get
val languagePt: String @Composable get
val languageRo: String @Composable get
val languageRu: String @Composable get
val languageUa: String @Composable get
val loginFriendicaHeader: String @Composable get
val loginMastodonHeader: String @Composable get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ class MockStrings : Strings {
@Composable get() = retrieve("languagePt")
override val languageRo: String
@Composable get() = retrieve("languageRo")
override val languageRu: String
@Composable get() = retrieve("languageRu")
override val languageUa: String
@Composable get() = retrieve("languageUa")
override val loginFriendicaHeader: String
Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ A special thanks goes to all those who contributed so far:
- [N7-X](https://github.com/N7-X)
- [pvagner](https://github.com/pvagner)
- [toas-koas](https://github.com/toas-koas)
- [gnu-ewm](https://hosted.weblate.org/user/gnu-ewm)
- [ktlinux](https://hosted.weblate.org/user/ktlinux)
- [Fitik](https://hosted.weblate.org/user/11mancookie11/)
- all those who reported feedback and ideas through Friendica, Mastodon, GitHub, emails,
private messages, homing pigeons and every possibly imaginable medium.

Expand Down
6 changes: 6 additions & 0 deletions docs/static/acknowledgements.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@
"avatar": "https://hosted.weblate.org/avatar/128/ktlinux.png",
"subtitle": "Translator (ro)",
"url": "https://hosted.weblate.org/user/ktlinux/"
},
{
"title": "Fitik",
"avatar": "https://hosted.weblate.org/avatar/128/11mancookie11.png",
"subtitle": "Translator (ru)",
"url": "https://hosted.weblate.org/user/11mancookie11/"
}
]

0 comments on commit 44d1825

Please sign in to comment.