Skip to content

Commit

Permalink
Add missing localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira committed Jan 13, 2024
1 parent 4979a7d commit e6d5e0d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import br.alexandregpereira.hunter.detail.R
import br.alexandregpereira.hunter.ui.compose.AppButton
import br.alexandregpereira.hunter.ui.compose.BottomSheet
import br.alexandregpereira.hunter.ui.compose.ScreenHeader
Expand All @@ -46,13 +48,13 @@ fun MonsterDeleteConfirmation(
Spacer(modifier = Modifier.height(16.dp))

ScreenHeader(
title = "Are you sure you want to delete this monster?",
title = stringResource(R.string.monster_detail_delete_question),
)

Spacer(modifier = Modifier.height(32.dp))

AppButton(
text = "I'm sure",
text = stringResource(R.string.monster_detail_delete_confirmation),
onClick = onConfirmed
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@
<string name="monster_detail_clone_monster_name">Nome</string>
<string name="monster_detail_edit">Editar</string>
<string name="monster_detail_delete">Remover</string>
<string name="monster_detail_delete_question">Tem certeza que deseja excluir esse monstro?</string>
<string name="monster_detail_delete_confirmation">Tenho certeza</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@
<string name="monster_detail_clone_monster_name">Name</string>
<string name="monster_detail_edit">Edit</string>
<string name="monster_detail_delete">Delete</string>
<string name="monster_detail_delete_question">Are you sure you want to delete this monster?</string>
<string name="monster_detail_delete_confirmation">I\'m sure</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal fun SettingsScreen(
Column(Modifier.padding(contentPadding)) {

SettingsItem(
text = "Advanced Settings",
text = stringResource(R.string.settings_manage_advanced_settings),
onClick = viewIntent::onAdvancedSettingsClick
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
<string name="settings_alternative_sources_json">URL do JSON de Fontes Alternativas</string>
<string name="settings_manage_monster_content">Gerenciar Conteúdos de Monstros</string>
<string name="settings_sync">Sincronizar</string>
<string name="settings_manage_advanced_settings">Configurações Avançadas</string>
</resources>
1 change: 1 addition & 0 deletions feature/settings/android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
<string name="settings_alternative_sources_json">Alternative Sources JSON URL</string>
<string name="settings_manage_monster_content">Manage Monsters Content</string>
<string name="settings_sync">Sync</string>
<string name="settings_manage_advanced_settings">Advanced Settings</string>
</resources>

0 comments on commit e6d5e0d

Please sign in to comment.