Skip to content

Commit

Permalink
Merge pull request #286 from enrique-lozano/fix/days-to-pay-translations
Browse files Browse the repository at this point in the history
Add some missing translations
  • Loading branch information
enrique-lozano authored Dec 30, 2024
2 parents ae6e3e3 + f502cc8 commit afddf97
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/core/models/transaction/next_pay_status.enum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ enum NextPayStatus {
}

if (this == delayed) {
return 'Atrasado por ${days.abs()}d';
return t.recurrent_transactions.status.delayed_by(x: days.abs());
}

return 'In ${days.abs()} days';
return t.recurrent_transactions.status.coming_in(x: days.abs());
}
}
4 changes: 4 additions & 0 deletions lib/i18n/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@
"last-payment-info": "This movement is the last of the recurring rule, so this rule will be automatically deleted when confirming this action",
"delete-header": "Delete recurring transaction",
"delete-message": "This action is irreversible and will not affect transactions you have already confirmed/paid for"
},
"STATUS": {
"delayed_by": "Delayed by {{x}}d",
"coming_in": "In {{x}} days"
}
},
"ACCOUNT": {
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@
"last-payment-info": "Este movimiento es el último de la regla recurrente, por lo que se eliminará esta regla de forma automática al confirmar esta acción",
"delete-header": "Eliminar transacción recurrente",
"delete-message": "Esta acción es irreversible y no afectará a transacciones que ya hayas confirmado/pagado"
},
"STATUS": {
"delayed_by": "Atrasado por {{x}}d",
"coming_in": "En {{x}} días"
}
},
"ACCOUNT": {
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@
"last-payment-info": "Ez a mozgatás az utolsó az ismétlődő szabályban, így ez a szabály automatikusan törlődik a művelet megerősítésekor.",
"delete-header": "Ismétlődő tranzakció törlése",
"delete-message": "Ez a művelet visszafordíthatatlan, és nem érinti a már visszaigazolt/befizetett tranzakciókat."
},
"STATUS": {
"delayed_by": "Késés: {{x}}d",
"coming_in": "{{x}} napon belül"
}
},
"ACCOUNT": {
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@
"last-payment-info": "Цей рух є останнім за повторюваною правилою, тому це правило буде автоматично видалено при підтвердженні цієї дії",
"delete-header": "Видалити повторювану транзакцію",
"delete-message": "Ця дія є незворотньою і не вплине на транзакції, які ви вже підтвердили/оплатили"
},
"STATUS": {
"delayed_by": "Затримано на {{x}}d",
"coming_in": "Через {{x}} днів"
}
},
"ACCOUNT": {
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@
"last-payment-info": "此動作是循環規則的最後一個,因此當確認此動作時,該規則將自動刪除",
"delete-header": "刪除重複交易",
"delete-message": "此操作不可逆轉,不會影響您已確認/付款的交易"
},
"STATUS": {
"delayed_by": "延遲了 {{x}}d",
"coming_in": "{{x}} 天後"
}
},
"ACCOUNT": {
Expand Down
74 changes: 72 additions & 2 deletions lib/i18n/translations.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/// To regenerate, run: `dart run slang`
///
/// Locales: 5
/// Strings: 2741 (548 per locale)
/// Strings: 2751 (550 per locale)
///
/// Built on 2024-12-21 at 14:22 UTC
/// Built on 2024-12-30 at 23:39 UTC

// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down Expand Up @@ -392,6 +392,7 @@ class _TranslationsRecurrentTransactionsEn {
String get total_expense_title => 'Total expense per period';
String get total_expense_descr => '* Without considering the start and end date of each recurrence';
late final _TranslationsRecurrentTransactionsDetailsEn details = _TranslationsRecurrentTransactionsDetailsEn._(_root);
late final _TranslationsRecurrentTransactionsStatusEn status = _TranslationsRecurrentTransactionsStatusEn._(_root);
}

// Path: account
Expand Down Expand Up @@ -919,6 +920,17 @@ class _TranslationsRecurrentTransactionsDetailsEn {
String get delete_message => 'This action is irreversible and will not affect transactions you have already confirmed/paid for';
}

// Path: recurrent_transactions.status
class _TranslationsRecurrentTransactionsStatusEn {
_TranslationsRecurrentTransactionsStatusEn._(this._root);

final Translations _root; // ignore: unused_field

// Translations
String delayed_by({required Object x}) => 'Delayed by ${x}d';
String coming_in({required Object x}) => 'In ${x} days';
}

// Path: account.types
class _TranslationsAccountTypesEn {
_TranslationsAccountTypesEn._(this._root);
Expand Down Expand Up @@ -1692,6 +1704,7 @@ class _TranslationsRecurrentTransactionsEs implements _TranslationsRecurrentTran
@override String get total_expense_title => 'Gasto total por periodo';
@override String get total_expense_descr => '* Sin considerar la fecha de inicio y fin de cada recurrencia';
@override late final _TranslationsRecurrentTransactionsDetailsEs details = _TranslationsRecurrentTransactionsDetailsEs._(_root);
@override late final _TranslationsRecurrentTransactionsStatusEs status = _TranslationsRecurrentTransactionsStatusEs._(_root);
}

// Path: account
Expand Down Expand Up @@ -2219,6 +2232,17 @@ class _TranslationsRecurrentTransactionsDetailsEs implements _TranslationsRecurr
@override String get delete_message => 'Esta acción es irreversible y no afectará a transacciones que ya hayas confirmado/pagado';
}

// Path: recurrent_transactions.status
class _TranslationsRecurrentTransactionsStatusEs implements _TranslationsRecurrentTransactionsStatusEn {
_TranslationsRecurrentTransactionsStatusEs._(this._root);

@override final _TranslationsEs _root; // ignore: unused_field

// Translations
@override String delayed_by({required Object x}) => 'Atrasado por ${x}d';
@override String coming_in({required Object x}) => 'En ${x} días';
}

// Path: account.types
class _TranslationsAccountTypesEs implements _TranslationsAccountTypesEn {
_TranslationsAccountTypesEs._(this._root);
Expand Down Expand Up @@ -2993,6 +3017,7 @@ class _TranslationsRecurrentTransactionsHu implements _TranslationsRecurrentTran
@override String get total_expense_title => 'Összes kiadás periódusonként';
@override String get total_expense_descr => '* Az egyes ismétlődések kezdő és befejező időpontjának figyelembevétele nélkül';
@override late final _TranslationsRecurrentTransactionsDetailsHu details = _TranslationsRecurrentTransactionsDetailsHu._(_root);
@override late final _TranslationsRecurrentTransactionsStatusHu status = _TranslationsRecurrentTransactionsStatusHu._(_root);
}

// Path: account
Expand Down Expand Up @@ -3520,6 +3545,17 @@ class _TranslationsRecurrentTransactionsDetailsHu implements _TranslationsRecurr
@override String get delete_message => 'Ez a művelet visszafordíthatatlan, és nem érinti a már visszaigazolt/befizetett tranzakciókat.';
}

// Path: recurrent_transactions.status
class _TranslationsRecurrentTransactionsStatusHu implements _TranslationsRecurrentTransactionsStatusEn {
_TranslationsRecurrentTransactionsStatusHu._(this._root);

@override final _TranslationsHu _root; // ignore: unused_field

// Translations
@override String delayed_by({required Object x}) => 'Késés: ${x}d';
@override String coming_in({required Object x}) => '${x} napon belül';
}

// Path: account.types
class _TranslationsAccountTypesHu implements _TranslationsAccountTypesEn {
_TranslationsAccountTypesHu._(this._root);
Expand Down Expand Up @@ -4293,6 +4329,7 @@ class _TranslationsRecurrentTransactionsUk implements _TranslationsRecurrentTran
@override String get total_expense_title => 'Загальні витрати за період';
@override String get total_expense_descr => '* Без урахування початкової та кінцевої дати кожної повторюваної транзакції';
@override late final _TranslationsRecurrentTransactionsDetailsUk details = _TranslationsRecurrentTransactionsDetailsUk._(_root);
@override late final _TranslationsRecurrentTransactionsStatusUk status = _TranslationsRecurrentTransactionsStatusUk._(_root);
}

// Path: account
Expand Down Expand Up @@ -4820,6 +4857,17 @@ class _TranslationsRecurrentTransactionsDetailsUk implements _TranslationsRecurr
@override String get delete_message => 'Ця дія є незворотньою і не вплине на транзакції, які ви вже підтвердили/оплатили';
}

// Path: recurrent_transactions.status
class _TranslationsRecurrentTransactionsStatusUk implements _TranslationsRecurrentTransactionsStatusEn {
_TranslationsRecurrentTransactionsStatusUk._(this._root);

@override final _TranslationsUk _root; // ignore: unused_field

// Translations
@override String delayed_by({required Object x}) => 'Затримано на ${x}d';
@override String coming_in({required Object x}) => 'Через ${x} днів';
}

// Path: account.types
class _TranslationsAccountTypesUk implements _TranslationsAccountTypesEn {
_TranslationsAccountTypesUk._(this._root);
Expand Down Expand Up @@ -5593,6 +5641,7 @@ class _TranslationsRecurrentTransactionsZhTw implements _TranslationsRecurrentTr
@override String get total_expense_title => '每個期間的總收入';
@override String get total_expense_descr => '*不考慮每次重複的開始和結束日期';
@override late final _TranslationsRecurrentTransactionsDetailsZhTw details = _TranslationsRecurrentTransactionsDetailsZhTw._(_root);
@override late final _TranslationsRecurrentTransactionsStatusZhTw status = _TranslationsRecurrentTransactionsStatusZhTw._(_root);
}

// Path: account
Expand Down Expand Up @@ -6120,6 +6169,17 @@ class _TranslationsRecurrentTransactionsDetailsZhTw implements _TranslationsRecu
@override String get delete_message => '此操作不可逆轉,不會影響您已確認/付款的交易';
}

// Path: recurrent_transactions.status
class _TranslationsRecurrentTransactionsStatusZhTw implements _TranslationsRecurrentTransactionsStatusEn {
_TranslationsRecurrentTransactionsStatusZhTw._(this._root);

@override final _TranslationsZhTw _root; // ignore: unused_field

// Translations
@override String delayed_by({required Object x}) => '延遲了 ${x}d';
@override String coming_in({required Object x}) => '${x} 天後';
}

// Path: account.types
class _TranslationsAccountTypesZhTw implements _TranslationsAccountTypesEn {
_TranslationsAccountTypesZhTw._(this._root);
Expand Down Expand Up @@ -7013,6 +7073,8 @@ extension on Translations {
case 'recurrent_transactions.details.last_payment_info': return 'This movement is the last of the recurring rule, so this rule will be automatically deleted when confirming this action';
case 'recurrent_transactions.details.delete_header': return 'Delete recurring transaction';
case 'recurrent_transactions.details.delete_message': return 'This action is irreversible and will not affect transactions you have already confirmed/paid for';
case 'recurrent_transactions.status.delayed_by': return ({required Object x}) => 'Delayed by ${x}d';
case 'recurrent_transactions.status.coming_in': return ({required Object x}) => 'In ${x} days';
case 'account.details': return 'Account details';
case 'account.date': return 'Opening date';
case 'account.close_date': return 'Closing date';
Expand Down Expand Up @@ -7642,6 +7704,8 @@ extension on _TranslationsEs {
case 'recurrent_transactions.details.last_payment_info': return 'Este movimiento es el último de la regla recurrente, por lo que se eliminará esta regla de forma automática al confirmar esta acción';
case 'recurrent_transactions.details.delete_header': return 'Eliminar transacción recurrente';
case 'recurrent_transactions.details.delete_message': return 'Esta acción es irreversible y no afectará a transacciones que ya hayas confirmado/pagado';
case 'recurrent_transactions.status.delayed_by': return ({required Object x}) => 'Atrasado por ${x}d';
case 'recurrent_transactions.status.coming_in': return ({required Object x}) => 'En ${x} días';
case 'account.details': return 'Detalles de la cuenta';
case 'account.date': return 'Fecha de apertura';
case 'account.close_date': return 'Fecha de cierre';
Expand Down Expand Up @@ -8270,6 +8334,8 @@ extension on _TranslationsHu {
case 'recurrent_transactions.details.last_payment_info': return 'Ez a mozgatás az utolsó az ismétlődő szabályban, így ez a szabály automatikusan törlődik a művelet megerősítésekor.';
case 'recurrent_transactions.details.delete_header': return 'Ismétlődő tranzakció törlése';
case 'recurrent_transactions.details.delete_message': return 'Ez a művelet visszafordíthatatlan, és nem érinti a már visszaigazolt/befizetett tranzakciókat.';
case 'recurrent_transactions.status.delayed_by': return ({required Object x}) => 'Késés: ${x}d';
case 'recurrent_transactions.status.coming_in': return ({required Object x}) => '${x} napon belül';
case 'account.details': return 'Számlaadatok';
case 'account.date': return 'Megnyitás dátuma';
case 'account.close_date': return 'Lezárás dátuma';
Expand Down Expand Up @@ -8898,6 +8964,8 @@ extension on _TranslationsUk {
case 'recurrent_transactions.details.last_payment_info': return 'Цей рух є останнім за повторюваною правилою, тому це правило буде автоматично видалено при підтвердженні цієї дії';
case 'recurrent_transactions.details.delete_header': return 'Видалити повторювану транзакцію';
case 'recurrent_transactions.details.delete_message': return 'Ця дія є незворотньою і не вплине на транзакції, які ви вже підтвердили/оплатили';
case 'recurrent_transactions.status.delayed_by': return ({required Object x}) => 'Затримано на ${x}d';
case 'recurrent_transactions.status.coming_in': return ({required Object x}) => 'Через ${x} днів';
case 'account.details': return 'Деталі рахунку';
case 'account.date': return 'Дата відкриття';
case 'account.close_date': return 'Дата закриття';
Expand Down Expand Up @@ -9526,6 +9594,8 @@ extension on _TranslationsZhTw {
case 'recurrent_transactions.details.last_payment_info': return '此動作是循環規則的最後一個,因此當確認此動作時,該規則將自動刪除';
case 'recurrent_transactions.details.delete_header': return '刪除重複交易';
case 'recurrent_transactions.details.delete_message': return '此操作不可逆轉,不會影響您已確認/付款的交易';
case 'recurrent_transactions.status.delayed_by': return ({required Object x}) => '延遲了 ${x}d';
case 'recurrent_transactions.status.coming_in': return ({required Object x}) => '${x} 天後';
case 'account.details': return '帳戶詳細資料';
case 'account.date': return '開業日期';
case 'account.close_date': return '截止日期';
Expand Down
28 changes: 14 additions & 14 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -601,18 +601,18 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
url: "https://pub.dev"
source: hosted
version: "10.0.4"
version: "10.0.5"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "3.0.5"
leak_tracker_testing:
dependency: transitive
description:
Expand Down Expand Up @@ -649,18 +649,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
version: "0.8.0"
version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
version: "1.12.0"
version: "1.15.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -1046,10 +1046,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
version: "0.7.2"
timing:
dependency: transitive
description:
Expand Down Expand Up @@ -1174,10 +1174,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.1"
version: "14.2.5"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -1243,5 +1243,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
dart: ">=3.4.1 <4.0.0"
flutter: ">=3.22.3"

0 comments on commit afddf97

Please sign in to comment.