Skip to content

Firefly III: a personal finances manager

Transactions links are now translatable on admin views

Luca Vallerinicb9c87102f71
diff --git a/resources/lang/de_DE/firefly.php b/resources/lang/de_DE/firefly.php
index b947fd5730..5ac8855ae3 100644
--- a/resources/lang/de_DE/firefly.php
+++ b/resources/lang/de_DE/firefly.php
@@ -1133,6 +1133,10 @@ Sollen zusätzlich Ihre Girokonten angezeigt werden?',
'deleted_link' => 'Verknüpfung löschen',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'bezieht sich auf',
'is (partially) refunded by_inward' => 'wird (teilweise) erstattet durch',
'is (partially) paid for by_inward' => 'wird (teilweise) bezahlt von',
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index dd9f127293..43632689a8 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -1141,6 +1141,10 @@ return [
'link_relates to' => 'relates to',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'relates to',
'is (partially) refunded by_inward' => 'is (partially) refunded by',
'is (partially) paid for by_inward' => 'is (partially) paid for by',
diff --git a/resources/lang/es_ES/firefly.php b/resources/lang/es_ES/firefly.php
index eeecbbfb2a..bc327f15ea 100644
--- a/resources/lang/es_ES/firefly.php
+++ b/resources/lang/es_ES/firefly.php
@@ -1133,6 +1133,10 @@ return [
'deleted_link' => 'Enlace borrado',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'relacionado con',
'is (partially) refunded by_inward' => 'es (parcialmente) es devuelto por',
'is (partially) paid for by_inward' => 'es(parcialmente) pagado por',
diff --git a/resources/lang/fr_FR/firefly.php b/resources/lang/fr_FR/firefly.php
index 9fbab65594..e84db72fb6 100644
--- a/resources/lang/fr_FR/firefly.php
+++ b/resources/lang/fr_FR/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Lien supprimé',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'se rapporte à',
'is (partially) refunded by_inward' => 'est (partiellement) remboursé par',
'is (partially) paid for by_inward' => 'est (partiellement) payé par',
diff --git a/resources/lang/id_ID/firefly.php b/resources/lang/id_ID/firefly.php
index 77dea623aa..17ecbc86e5 100644
--- a/resources/lang/id_ID/firefly.php
+++ b/resources/lang/id_ID/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Tautan dihapus',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'berhubungan dengan',
'is (partially) refunded by_inward' => '(sebagian) dikembalikan oleh',
'is (partially) paid for by_inward' => 'adalah (sebagian) dibayar oleh',
diff --git a/resources/lang/it_IT/firefly.php b/resources/lang/it_IT/firefly.php
index b402a9674e..80f5ed6e7f 100644
--- a/resources/lang/it_IT/firefly.php
+++ b/resources/lang/it_IT/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Elimina collegamento',
// link translations:
+ 'Paid_name' => 'Pagata',
+ 'Refund_name' => 'Rimborso',
+ 'Reimbursement_name' => 'Rimborso',
+ 'Related_name' => 'Inerente',
'relates to_inward' => 'inerente a',
'is (partially) refunded by_inward' => 'è (parzialmente) rimborsata da',
'is (partially) paid for by_inward' => 'è (parzialmente) pagata da',
diff --git a/resources/lang/nl_NL/firefly.php b/resources/lang/nl_NL/firefly.php
index 500f0f75a9..1958b6f73a 100644
--- a/resources/lang/nl_NL/firefly.php
+++ b/resources/lang/nl_NL/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Koppeling verwijderd',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'gerelateerd aan',
'is (partially) refunded by_inward' => 'wordt (deels) terugbetaald door',
'is (partially) paid for by_inward' => 'wordt (deels) betaald door',
diff --git a/resources/lang/pl_PL/firefly.php b/resources/lang/pl_PL/firefly.php
index 7c5687f66e..76c5c7fb80 100644
--- a/resources/lang/pl_PL/firefly.php
+++ b/resources/lang/pl_PL/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Usunięto powiązanie',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'odnosi się do',
'is (partially) refunded by_inward' => 'jest (częściowo) zwracane przez',
'is (partially) paid for by_inward' => 'jest (częściowo) opłacane przez',
diff --git a/resources/lang/pt_BR/firefly.php b/resources/lang/pt_BR/firefly.php
index 96b0815825..cc4c4dc6c4 100644
--- a/resources/lang/pt_BR/firefly.php
+++ b/resources/lang/pt_BR/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Excluir ligação',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'relacionado a',
'is (partially) refunded by_inward' => 'é (parcialmente) devolvido por',
'is (partially) paid for by_inward' => 'é (parcialmente) pago por',
diff --git a/resources/lang/ru_RU/firefly.php b/resources/lang/ru_RU/firefly.php
index f5292f8f7d..d437830797 100644
--- a/resources/lang/ru_RU/firefly.php
+++ b/resources/lang/ru_RU/firefly.php
@@ -1132,6 +1132,10 @@ return [
'deleted_link' => 'Связь удалена',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'связано с',
'is (partially) refunded by_inward' => '(частично) возвращён',
'is (partially) paid for by_inward' => '(частично) оплачен',
diff --git a/resources/lang/tr_TR/firefly.php b/resources/lang/tr_TR/firefly.php
index 6e26744d38..ddd1dff69e 100644
--- a/resources/lang/tr_TR/firefly.php
+++ b/resources/lang/tr_TR/firefly.php
@@ -1135,6 +1135,10 @@ işlemlerin kontrol edildiğini lütfen unutmayın.',
'deleted_link' => 'Bağlantı silindi',
// link translations:
+ 'Paid_name' => 'Paid',
+ 'Refund_name' => 'Refund',
+ 'Reimbursement_name' => 'Reimbursement',
+ 'Related_name' => 'Related',
'relates to_inward' => 'ile ilişkili',
'is (partially) refunded by_inward' => 'tarafından (kısmen) geri ödendi',
'is (partially) paid for by_inward' => 'tarafından (kısmen) ödendi',
diff --git a/resources/views/admin/link/index.twig b/resources/views/admin/link/index.twig
index f49df83759..33185b4401 100644
--- a/resources/views/admin/link/index.twig
+++ b/resources/views/admin/link/index.twig
@@ -35,13 +35,13 @@
{% endif %}
</td>
<td>
- <strong>{{ linkType.name }}</strong>
+ <strong>{{ journalLinkTranslation('name', linkType.name) }}</strong>
</td>
<td>
- {{ linkType.inward }}
+ {{ journalLinkTranslation('inward', linkType.inward) }}
</td>
<td>
- {{ linkType.outward }}
+ {{ journalLinkTranslation('outward', linkType.outward) }}
</td>
<td data-value="{{ linkType.journalCount }}">
<a href="{{ route('admin.links.show', [linkType.id]) }}">{{ linkType.journalCount }}</a>
diff --git a/resources/views/admin/link/show.twig b/resources/views/admin/link/show.twig
index b9639b981c..b14813fded 100644
--- a/resources/views/admin/link/show.twig
+++ b/resources/views/admin/link/show.twig
@@ -8,7 +8,7 @@
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="box box-default">
<div class="box-header with-border">
- <h3 class="box-title">{{ trans('firefly.overview_for_link', {name: linkType.name}) }}</h3>
+ <h3 class="box-title">{{ trans('firefly.overview_for_link', {name: journalLinkTranslation('name', linkType.name)}) }}</h3>
</div>
<div class="box-body no-padding">
<table class="table table-hover sortable">
@@ -36,7 +36,7 @@
<a href="{{ route('transactions.show', [link.source_id]) }}">{{ link.source.description }}</a>
</td>
<td>{{ link.source|journalTotalAmount }}</td>
- <td>{{ linkType.outward }}</td>
+ <td>{{ journalLinkTranslation('outward', linkType.outward) }}</td>
<td data-value="{{ link.destination.description }}">
<a href="{{ route('transactions.show', [link.destination_id]) }}">{{ link.destination.description }}</a>
</td>