Skip to content

Commit

Permalink
Use correct strings for the transfer upload choice bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Aug 19, 2024
1 parent a758880 commit 3241582
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import com.infomaniak.swisstransfer.ui.icons.AppIcons
import com.infomaniak.swisstransfer.ui.icons.app.Camera
import com.infomaniak.swisstransfer.ui.theme.CustomShapes
import com.infomaniak.swisstransfer.ui.theme.Margin
import com.infomaniak.swisstransfer.ui.theme.Shapes
import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme

@Composable
Expand Down Expand Up @@ -69,7 +68,7 @@ fun BottomSheetItem(imageVector: ImageVector, @StringRes titleRes: Int, onClick:
private fun ChoiceItemPreview() {
SwissTransferTheme {
Surface {
BottomSheetItem(AppIcons.Camera, R.string.appName) {}
BottomSheetItem(AppIcons.Camera, R.string.transferUploadSourceChoiceCamera) {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ private fun ImportChoiceBottomSheet(
if (showImportChoiceBottomSheet()) {
SwissTransferBottomSheet(
onDismissRequest = onDismissRequest,
titleRes = R.string.appName,
titleRes = R.string.transferUploadSourceChoiceTitle,
content = {
Column {
BottomSheetItem(AppIcons.Camera, R.string.appName) { /*TODO*/ }
BottomSheetItem(AppIcons.Camera, R.string.transferUploadSourceChoiceCamera) { /*TODO*/ }
HorizontalDivider(Modifier.padding(horizontal = Margin.Medium), color = SwissTransferTheme.colors.divider)
BottomSheetItem(AppIcons.PolaroidLandscape, R.string.appName) { /*TODO*/ }
BottomSheetItem(AppIcons.PolaroidLandscape, R.string.transferUploadSourceChoiceGallery) { /*TODO*/ }
HorizontalDivider(Modifier.padding(horizontal = Margin.Medium), color = SwissTransferTheme.colors.divider)
BottomSheetItem(AppIcons.Folder, R.string.appName) { /*TODO*/ }
BottomSheetItem(AppIcons.Folder, R.string.transferUploadSourceChoiceFiles) { /*TODO*/ }
}
},
)
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
<string name="sentEmptyTitle">Our story begins here</string>
<string name="sentTitle">Sent</string>
<string name="settingsTitle">Settings</string>
<string name="transferUploadSourceChoiceCamera">Camera</string>
<string name="transferUploadSourceChoiceFiles">Browse files</string>
<string name="transferUploadSourceChoiceGallery">Photo and video gallery</string>
<string name="transferUploadSourceChoiceTitle">Upload from</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
<string name="sentEmptyTitle">Our story begins here</string>
<string name="sentTitle">Sent</string>
<string name="settingsTitle">Settings</string>
<string name="transferUploadSourceChoiceCamera">Camera</string>
<string name="transferUploadSourceChoiceFiles">Browse files</string>
<string name="transferUploadSourceChoiceGallery">Photo and video gallery</string>
<string name="transferUploadSourceChoiceTitle">Upload from</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
<string name="sentEmptyTitle">Notre histoire commence ici</string>
<string name="sentTitle">Envoyé</string>
<string name="settingsTitle">Paramètres</string>
<string name="transferUploadSourceChoiceCamera">Appareil photo</string>
<string name="transferUploadSourceChoiceFiles">Parcourir les fichiers</string>
<string name="transferUploadSourceChoiceGallery">Galerie photos et vidéos</string>
<string name="transferUploadSourceChoiceTitle">Télécharger à partir de</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
<string name="sentEmptyTitle">Our story begins here</string>
<string name="sentTitle">Sent</string>
<string name="settingsTitle">Settings</string>
<string name="transferUploadSourceChoiceCamera">Camera</string>
<string name="transferUploadSourceChoiceFiles">Browse files</string>
<string name="transferUploadSourceChoiceGallery">Photo and video gallery</string>
<string name="transferUploadSourceChoiceTitle">Upload from</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@
<string name="sentEmptyTitle">Our story begins here</string>
<string name="sentTitle">Sent</string>
<string name="settingsTitle">Settings</string>
<string name="transferUploadSourceChoiceCamera">Camera</string>
<string name="transferUploadSourceChoiceFiles">Browse files</string>
<string name="transferUploadSourceChoiceGallery">Photo and video gallery</string>
<string name="transferUploadSourceChoiceTitle">Upload from</string>
</resources>

0 comments on commit 3241582

Please sign in to comment.