Skip to content

Commit

Permalink
Move Copy button string resources under GoalInfoScreen
Browse files Browse the repository at this point in the history
- Renames current new string resources to match previous ones in Goal
  Info Screen;
- Adds another new resource for Icon description.
  • Loading branch information
mrghosti3 committed Apr 7, 2024
1 parent eb6e9a4 commit 42ed507
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ fun ExpandableTextCard(
FilledTonalButton(onClick = {
clipboardManager.setText(AnnotatedString(description))
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) {
Toast.makeText(context, R.string.copy_alert, Toast.LENGTH_SHORT).show()
Toast.makeText(context, R.string.info_copy_alert, Toast.LENGTH_SHORT).show()
}
}) {
Row {
Icon(Icons.Filled.ContentCopy, contentDescription = "Copy Notes" )
Icon(Icons.Filled.ContentCopy, contentDescription = stringResource(R.string.info_copy_icon_description))
Spacer(Modifier.width(ButtonDefaults.IconSpacing))
Text(text = stringResource(id = R.string.copy))
Text(text = stringResource(id = R.string.info_copy_button))
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<string name="cancel">Cancelar</string>
<string name="ok">Aceptar</string>
<string name="unknown_error">¡Vaya! Algo salió mal.</string>
<string name="copy">Copy</string>
<string name="copy_alert">Copied</string>

<!-- Navigation Drawer -->
<string name="drawer_home">Inicio</string>
Expand Down Expand Up @@ -94,6 +92,9 @@
<string name="info_goal_no_transactions">Sin transacciones aún.</string>
<string name="info_edit_transaction_button">Actualizar Transacción</string>
<string name="info_transaction_onboarding_tip">Consejo: Desliza las transacciones hacia la izquierda o hacia la derecha para editarlas o eliminarlas.</string>
<string name="info_copy_button">Copy</string>
<string name="info_copy_icon_description">Copy Notes</string>
<string name="info_copy_alert">Copied</string>

<!-- Input (New/Edit Goal) Screen -->
<string name="input_screen_header">¡Es momento de ahorrar!</string>
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<string name="cancel">İptal</string>
<string name="ok">Tamam</string>
<string name="unknown_error">Hoop! bir şeyler yanlış gitti.</string>
<string name="copy">Copy</string>
<string name="copy_alert">Copied</string>

<!-- Navigation Drawer -->
<string name="drawer_home">Ana Sayfa</string>
Expand Down Expand Up @@ -94,6 +92,9 @@
<string name="info_goal_no_transactions">Henüz İşlem Yok.</string>
<string name="info_edit_transaction_button">İşlemi Güncelle</string>
<string name="info_transaction_onboarding_tip">İpucu: İşlemleri düzenlemek veya silmek için sola veya sağa kaydırın.</string>
<string name="info_copy_button">Copy</string>
<string name="info_copy_icon_description">Copy Notes</string>
<string name="info_copy_alert">Copied</string>

<!-- Input (New/Edit Goal) Screen -->
<string name="input_screen_header">Birikim yapma zamanı!</string>
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<string name="cancel">取消</string>
<string name="ok">确定</string>
<string name="unknown_error">糟糕!出了点问题。</string>
<string name="copy">Copy</string>
<string name="copy_alert">Copied</string>

<!-- Navigation Drawer -->
<string name="drawer_home">主页</string>
Expand Down Expand Up @@ -94,6 +92,9 @@
<string name="info_goal_no_transactions">尚无收支。</string>
<string name="info_edit_transaction_button">更新交易</string>
<string name="info_transaction_onboarding_tip">提示:左右滑动交易以编辑或删除它们。</string>
<string name="info_copy_button">Copy</string>
<string name="info_copy_icon_description">Copy Notes</string>
<string name="info_copy_alert">Copied</string>

<!-- Input (New/Edit Goal) Screen -->
<string name="input_screen_header">省钱时间到!</string>
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<string name="cancel">Cancel</string>
<string name="ok">OK</string>
<string name="unknown_error">Oops! something went wrong.</string>
<string name="copy">Copy</string>
<string name="copy_alert">Copied</string>

<!-- Navigation Drawer -->
<string name="drawer_home">Home</string>
Expand Down Expand Up @@ -94,6 +92,9 @@
<string name="info_goal_no_transactions">No Transactions Yet.</string>
<string name="info_edit_transaction_button">Update Transaction</string>
<string name="info_transaction_onboarding_tip">Tip: Swipe transactions left or right to edit or delete them.</string>
<string name="info_copy_button">Copy</string>
<string name="info_copy_icon_description">Copy Notes</string>
<string name="info_copy_alert">Copied</string>

<!-- Input (New/Edit Goal) Screen -->
<string name="input_screen_header">It\'s time to save!</string>
Expand Down

0 comments on commit 42ed507

Please sign in to comment.