From 9a38b938a639e3698fd236189e2babfb70b48d21 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Tue, 5 Feb 2019 11:01:24 -0600 Subject: [PATCH] Extracted transactions PDF table header names as string resources and provided the Spanish translation. --- .../agorise/bitsybitshareswallet/utils/PDFGeneratorTask.kt | 5 +++-- app/src/main/res/values-es/strings.xml | 7 +++++++ app/src/main/res/values/strings.xml | 7 +++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/PDFGeneratorTask.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/PDFGeneratorTask.kt index 457f04f..d61271d 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/PDFGeneratorTask.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/PDFGeneratorTask.kt @@ -54,9 +54,10 @@ class PDFGeneratorTask(context: Context) : AsyncTask, Int, val table = PdfPTable(7) // Add the table header - val columnNames = arrayOf("From", "To", "Memo", "Date", "Time", "Asset Amount", "Fiat Equivalent") + val columnNames = arrayOf(R.string.title_from, R.string.title_to, R.string.title_memo, R.string.title_date, + R.string.title_time, R.string.title_asset_amount, R.string.title_fiat_equivalent) for (columnName in columnNames) { - val cell = PdfPCell(Paragraph(columnName)) + val cell = PdfPCell(Paragraph(mContext.get()?.getString(columnName))) table.addCell(cell) } table.completeRow() diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 1d861f7..5b9fa38 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -63,6 +63,13 @@ PDF CSV El permiso de almacenamiento es necesario para exportar los archivos PDF/CSV. + De + Para + Memo + Fecha + Hora + Cantidad de activo + Equivalente fiat Comerciantes diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ab0b8a1..159a583 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -63,6 +63,13 @@ PDF CSV Storage permission is necessary to export PDF/CSV files. + From + To + Memo + Date + Time + Asset Amount + Fiat Equivalent Merchants