clean up localization

This commit is contained in:
Thinzar Win
2020-10-07 18:49:28 +06:30
parent aeb0d22cd3
commit 99e4c08414
10 changed files with 373 additions and 1105 deletions

View File

@@ -68,7 +68,7 @@ class _PaymentPageState extends State<PaymentPage> {
onPressed: () => Navigator.of(context).pop(),
),
backgroundColor: primaryColor,
title: Text(AppTranslations.of(context).text("payment.title")),
title: Text(AppTranslations.of(context).text("pm_.title")),
),
body: Card(
child: Column(
@@ -78,7 +78,7 @@ class _PaymentPageState extends State<PaymentPage> {
child: Container(
child: Row(
children: <Widget>[
LocalText(context, 'total.amount',
LocalText(context, 'pm.total.amount',
color: Colors.black, fontSize: 16),
Text(
' \$ ${_invoice.amount}',
@@ -95,7 +95,7 @@ class _PaymentPageState extends State<PaymentPage> {
child: Container(
child: Row(
children: <Widget>[
LocalText(context, 'remaining_balance',
LocalText(context, 'pm.remaining_balance',
color: Colors.black, fontSize: 16),
Text(
' \$ ${_invoice.amount - _invoice.receipts[0].amount}',
@@ -111,7 +111,7 @@ class _PaymentPageState extends State<PaymentPage> {
child: ListView(
children: [
ExpansionTile(
title: LocalText(context, 'payment.attachment',
title: LocalText(context, 'pm.attachment',
color: Colors.black, fontSize: 16),
children: <Widget>[
Padding(
@@ -144,7 +144,7 @@ class _PaymentPageState extends State<PaymentPage> {
],
),
ExpansionTile(
title: LocalText(context, 'payment.receipt',
title: LocalText(context, 'pm.receipt',
color: Colors.black, fontSize: 16),
children: <Widget>[
Container(
@@ -157,14 +157,14 @@ class _PaymentPageState extends State<PaymentPage> {
MyDataColumn(
label: LocalText(
context,
"payment.date",
"pm.date",
color: Colors.grey,
),
),
MyDataColumn(
label: LocalText(
context,
"payment.amount",
"pm.amount",
color: Colors.grey,
),
),