-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to hosted weblate and app translation info in app
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
app/src/main/java/pl/lambada/songsync/ui/screens/settings/components/TranslationSection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package pl.lambada.songsync.ui.screens.settings.components | ||
|
||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.platform.UriHandler | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.unit.sp | ||
import pl.lambada.songsync.ui.components.SettingsItem | ||
import pl.lambada.songsync.R | ||
|
||
@Composable | ||
fun TranslationSection(uriHandler: UriHandler) { | ||
SettingsItem(label = stringResource(id = R.string.translation)) { | ||
Column( | ||
modifier = Modifier | ||
.clickable { uriHandler.openUri("https://hosted.weblate.org/engage/songsync/") } | ||
.padding(horizontal = 22.dp, vertical = 16.dp) | ||
) { | ||
Text(stringResource(id = R.string.help_us_translate)) | ||
Text( | ||
text = stringResource(id = R.string.translation_website), | ||
color = MaterialTheme.colorScheme.outline, | ||
fontSize = 12.sp | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters