Skip to content

Commit

Permalink
Add translations to filters menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Mar 4, 2024
1 parent f585e4d commit 1a7c4e1
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 5 deletions.
3 changes: 3 additions & 0 deletions includes/i18n/de.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Speichern",
"export_subscriptions" => "Abonnements exportieren",
"export_to_json" => "Nach JSON exportieren",
// Filters menu
"filter" => "Filter",
"clear" => "Leeren",
// Toast
"success" => "Erfolgreich",
// Endpoint responses
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/el.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Αποθήκευση",
"export_subscriptions" => "Εξαγωγή συνδρομών",
"export_to_json" => "Εξαγωγή σε JSON",
// Filters menu
"filter" => "Φίλτρο",
"clear" => "Καθαρισμός",
// Toast
"success" => "Επιτυχία",
// Endpoint responses
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Save",
"export_subscriptions" => "Export Subscriptions",
"export_to_json" => "Export to JSON",
// Filters menu
"filter" => "Filter",
"clear" => "Clear",
// Toast
"success" => "Success",
// Endpoint responses
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/es.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Guardar",
"export_subscriptions" => "Exportar suscripciones",
"export_to_json" => "Exportar a JSON",
// Filters menu
"filter" => "Filtrar",
"clear" => "Limpiar",
// Toast
"success" => "Éxito",
// Endpoint responses
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Enregistrer",
"export_subscriptions" => "Exporter les abonnements",
"export_to_json" => "Exporter en JSON",
// Menu des filtes
"filter" => "Filtre",
"clear" => "Effacer",
// Toast
"success" => "Succès",
// Réponses de l'API
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/jp.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "保存",
"export_subscriptions" => "購読をエクスポート",
"export_to_json" => "JSONにエクスポート",
// Filters menu
"filter" => "フィルタ",
"clear" => "クリア",
// Toast
"success" => "成功",
// Endpoint responses
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/pt.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Guardar",
"export_subscriptions" => "Exportar Subscrições",
"export_to_json" => "Exportar para JSON",
// Filters menu
"filter" => "Filtro",
"clear" => "Limpar",
// Toast
"success" => "Sucesso",
// Endpoint responses
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/tr.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "Kaydet",
"export_subscriptions" => "Abonelikleri Dışa Aktar",
"export_to_json" => "JSON'a dışa aktar",
// Filters menu
"filter" => "Filtre",
"clear" => "Temizle",
// Toast
"success" => "Başarılı",
// Endpoint responses
Expand Down
4 changes: 4 additions & 0 deletions includes/i18n/zh_cn.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
"save" => "保存",
"export_subscriptions" => "导出订阅",
"export_to_json" => "导出为 JSON",

// Filters menu
"filter" => "筛选",
"clear" => "清除",

// Toast
"success" => "成功",
Expand Down
3 changes: 3 additions & 0 deletions includes/i18n/zh_tw.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
"save" => "儲存",
"export_subscriptions" => "匯出訂閱",
"export_to_json" => "匯出為 JSON 檔案",
// Filters menu
"filter" => "篩選",
"clear" => "清除",
// Toast
"success" => "成功",
// Endpoint responses
Expand Down
10 changes: 5 additions & 5 deletions stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ function getPriceConverted($price, $currency, $database) {
<div class="filtermenu">
<button class="button" id="filtermenu-button">
<i class="fa-solid fa-filter"></i>
Filter
<?= translate("filter", $i18n) ?>
</button>
<div class="filtermenu-content">
<?php
if (count($members) > 1) {
?>
<div class="filtermenu-submenu">
<div class="filter-title" onClick="toggleSubMenu('member')">Member</div>
<div class="filter-title" onClick="toggleSubMenu('member')"><?= translate("member", $i18n) ?></div>
<div class="filtermenu-submenu-content" id="filter-member">
<?php
foreach ($members as $member) {
Expand All @@ -229,7 +229,7 @@ function getPriceConverted($price, $currency, $database) {
if (count($categories) > 1) {
?>
<div class="filtermenu-submenu">
<div class="filter-title" onClick="toggleSubMenu('category')">Category</div>
<div class="filter-title" onClick="toggleSubMenu('category')"><?= translate("category", $i18n) ?></div>
<div class="filtermenu-submenu-content" id="filter-category">
<?php
foreach ($categories as $category) {
Expand All @@ -251,7 +251,7 @@ function getPriceConverted($price, $currency, $database) {
if (count($paymentMethodCount) > 1) {
?>
<div class="filtermenu-submenu">
<div class="filter-title" onClick="toggleSubMenu('payment')">Payment Method</div>
<div class="filter-title" onClick="toggleSubMenu('payment')"><?= translate("payment_method", $i18n) ?></div>
<div class="filtermenu-submenu-content" id="filter-payment">
<?php
foreach ($paymentMethodCount as $payment) {
Expand All @@ -274,7 +274,7 @@ function getPriceConverted($price, $currency, $database) {
?>
<div class="filtermenu-submenu">
<div class="filter-title filter-clear" onClick="clearFilters()">
<i class="fa-solid fa-times-circle"></i> Clear
<i class="fa-solid fa-times-circle"></i> <?= translate("clear", $i18n) ?>
</div>
</div>
<?php
Expand Down

0 comments on commit 1a7c4e1

Please sign in to comment.