diff --git a/zeapp/android/src/main/java/de/berlindroid/zeapp/ZeMainActivity.kt b/zeapp/android/src/main/java/de/berlindroid/zeapp/ZeMainActivity.kt index 62f31a57..a018f6b3 100644 --- a/zeapp/android/src/main/java/de/berlindroid/zeapp/ZeMainActivity.kt +++ b/zeapp/android/src/main/java/de/berlindroid/zeapp/ZeMainActivity.kt @@ -628,7 +628,7 @@ private fun ZePages( @Composable @Preview private fun InfoBar( - message: String = "Very Important", + message: String = stringResource(id = R.string.ze_very_important), progress: Float = 0.5f, copyMoreToClipboard: (() -> Unit) = {}, ) { @@ -680,9 +680,9 @@ private fun InfoBar( @Preview private fun BadgeConfigEditor( config: Map = mapOf( - "sample configuration" to "sample value", - "sample int" to 23, - "another configuration" to true, + stringResource(id = R.string.ze_sample_configuration_key) to stringResource(id = R.string.ze_sample_configuration_value), + stringResource(id = R.string.ze_sample_int_key) to 23, + stringResource(id = R.string.ze_sample_another_configuration_key) to true, ), onDismissRequest: () -> Unit = {}, onConfirmed: (updateConfig: Map) -> Unit = {}, @@ -799,7 +799,7 @@ private fun SelectedEditor( ) is ZeConfiguration.Schedule -> { - vm.showMessage(message = "Not added by you yet, please feel free to contribute this editor") + vm.showMessage(message = stringResource(id = R.string.ze_not_added_yet_message)) vm.slotConfigured(null, null) } @@ -872,7 +872,7 @@ private fun TemplateChooserDialog( title = { ZeText( color = ZeBlack, - text = "Select Content", + text = stringResource(id = R.string.ze_select_content), ) }, text = { @@ -943,7 +943,7 @@ private fun PagePreview( item { ZeToolButton( imageVector = Icons.AutoMirrored.Filled.Send, - text = "Send", + text = stringResource(id = R.string.send), onClick = sendToDevice, ) } @@ -952,7 +952,7 @@ private fun PagePreview( item { ZeToolButton( imageVector = Icons.Filled.Refresh, - text = "Reset", + text = stringResource(id = R.string.reset), onClick = resetThisPage, ) } @@ -961,7 +961,7 @@ private fun PagePreview( item { ZeToolButton( imageVector = Icons.Filled.Edit, - text = "Edit", + text = stringResource(id = R.string.ze_edit), onClick = customizeThisPage, ) } diff --git a/zeapp/android/src/main/res/values-pt-rBR/strings.xml b/zeapp/android/src/main/res/values-pt-rBR/strings.xml index 8217d908..78ed1811 100644 --- a/zeapp/android/src/main/res/values-pt-rBR/strings.xml +++ b/zeapp/android/src/main/res/values-pt-rBR/strings.xml @@ -2,10 +2,12 @@ P/B Resetar + Editar FS Posicional Rotacionar Inverter + Muito importante Estático Gerar @@ -56,5 +58,12 @@ Atualizar configuração no crachá Enviar página aleatória para o crachá Abrir página de lançamentos + Selecione o conteúdo + Ainda não foi adicionado por você, sinta-se livre para contribuir com esse editor + + Exemplo de configuração + Exemplo de valor + Exemplo de int + Outra configuração diff --git a/zeapp/android/src/main/res/values/strings.xml b/zeapp/android/src/main/res/values/strings.xml index b47facac..2dd5fbbc 100644 --- a/zeapp/android/src/main/res/values/strings.xml +++ b/zeapp/android/src/main/res/values/strings.xml @@ -4,11 +4,13 @@ B/W Reset + Edit FS Positional Rotate Invert Static + Very Important Generate Not a binary image. Make sure each pixel is either black or white. @@ -56,4 +58,11 @@ Update config on badge Send random page to badge Open release page + Select Content + Not added by you yet, please feel free to contribute this editor + + sample configuration + sample value + sample int + another configuration