Extracted transactions PDF table header names as string resources and provided the Spanish translation.
This commit is contained in:
parent
d7c728db2f
commit
9a38b938a6
3 changed files with 17 additions and 2 deletions
|
@ -54,9 +54,10 @@ class PDFGeneratorTask(context: Context) : AsyncTask<List<TransferDetail>, 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()
|
||||
|
|
|
@ -63,6 +63,13 @@
|
|||
<string name="text__pdf">PDF</string>
|
||||
<string name="text__csv">CSV</string>
|
||||
<string name="msg__storage_permission_necessary_export">El permiso de almacenamiento es necesario para exportar los archivos PDF/CSV.</string>
|
||||
<string name="title_from">De</string>
|
||||
<string name="title_to">Para</string>
|
||||
<string name="title_memo">Memo</string>
|
||||
<string name="title_date">Fecha</string>
|
||||
<string name="title_time">Hora</string>
|
||||
<string name="title_asset_amount">Cantidad de activo</string>
|
||||
<string name="title_fiat_equivalent">Equivalente fiat</string>
|
||||
|
||||
<!-- Merchants & Tellers -->
|
||||
<string name="title_merchants">Comerciantes</string>
|
||||
|
|
|
@ -63,6 +63,13 @@
|
|||
<string name="text__pdf">PDF</string>
|
||||
<string name="text__csv">CSV</string>
|
||||
<string name="msg__storage_permission_necessary_export">Storage permission is necessary to export PDF/CSV files.</string>
|
||||
<string name="title_from">From</string>
|
||||
<string name="title_to">To</string>
|
||||
<string name="title_memo">Memo</string>
|
||||
<string name="title_date">Date</string>
|
||||
<string name="title_time">Time</string>
|
||||
<string name="title_asset_amount">Asset Amount</string>
|
||||
<string name="title_fiat_equivalent">Fiat Equivalent</string>
|
||||
|
||||
<!-- Merchants & Tellers -->
|
||||
<string name="title_merchants">Merchants</string>
|
||||
|
|
Loading…
Reference in a new issue