Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

fix: show translated no category when sorting by category (#122)

Miguel Ribeiro330c061b74ad
diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml
index 2e5b7d3..86af6d0 100644
--- a/.github/workflows/build-release.yaml
+++ b/.github/workflows/build-release.yaml
@@ -74,3 +74,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
diff --git a/includes/list_subscriptions.php b/includes/list_subscriptions.php
index 8b12de3..3a7aed1 100644
--- a/includes/list_subscriptions.php
+++ b/includes/list_subscriptions.php
@@ -70,7 +70,13 @@
if ($sort == "category_id" && $subscription['category_id'] != $currentCategory) {
?>
<div class="subscription-list-title">
- <?= $categories[$subscription['category_id']]['name'] ?>
+ <?php
+ if ($subscription['category_id'] == 1) {
+ echo translate('no_category', $i18n);
+ } else {
+ echo $categories[$subscription['category_id']]['name'];
+ }
+ ?>
</div>
<?php
$currentCategory = $subscription['category_id'];