From 920549c43b7a2e0fcc64bbab1773b6b981f9f081 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 6 Feb 2026 20:37:39 -0700 Subject: [PATCH] Add localization strings for everything I didn't localize already --- langs/en-ca.json | 27 ++++++++++++++++++++------- templates/ArtBrowser/image/grid.hbs | 4 ++-- templates/ArtBrowser/images.hbs | 10 ++++++---- templates/ArtBrowser/sidebar.hbs | 12 +++++++++--- templates/ArtistApp/form.hbs | 2 +- templates/ArtistApp/linkList.hbs | 4 +++- templates/ArtistBrowser/artist.hbs | 4 ++-- templates/ArtistBrowser/list.hbs | 4 +++- templates/ArtistBrowser/sidebar.hbs | 6 ++++-- templates/ImageApp/form.hbs | 6 +++--- 10 files changed, 53 insertions(+), 26 deletions(-) diff --git a/langs/en-ca.json b/langs/en-ca.json index 42f38a5..b3fff92 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -3,11 +3,24 @@ "common": { "artists": "Artists", "images": "Images", - "unsaved": "This change hasn't been saved, if you close without saving it will be undone." + "unsaved": "This change hasn't been saved, if you close without saving it will be undone.", + "page": { + "previous": "Prev", + "next": "Next" + }, + "name": "Name", + "tags": "Tags", + "select": "Select", + "links": "Links", + "sort-by": "Sort By" }, "apps": { "ArtBrowser": { - "selected": "{current}/{required} Selected" + "selected": "{current}/{required} Selected", + "upload-image": "Upload Image", + "no-results": "No results were found for that search", + "select-image": "Select image", + "page-reset-warning": "Changing any of these will reset your page to 1." }, "ArtistBrowser": { "sort-options": { @@ -15,7 +28,10 @@ "name-desc": "Name (Z -> A)", "image-count-asc": "Image Count (0 -> 9)", "image-count-desc": "Image Count (9 -> 0)" - } + }, + "image-count": "{count} Images", + "common-tags": "Common Image Tags", + "create-artist": "Create New Artist" }, "ArtistApp": { "title": { @@ -37,10 +53,7 @@ }, "image-label": "Image", "clear": "Clear", - "preview-placeholder": "Select an image to see a preview", - "name-label": "Name", - "tags-label": "Tags", - "artists-label": "Artists" + "preview-placeholder": "Select an image to see a preview" } }, "settings": { diff --git a/templates/ArtBrowser/image/grid.hbs b/templates/ArtBrowser/image/grid.hbs index 5174e29..9ada37d 100644 --- a/templates/ArtBrowser/image/grid.hbs +++ b/templates/ArtBrowser/image/grid.hbs @@ -10,12 +10,12 @@ {{else if is.multi}} diff --git a/templates/ArtBrowser/images.hbs b/templates/ArtBrowser/images.hbs index 93893c2..f64b4e1 100644 --- a/templates/ArtBrowser/images.hbs +++ b/templates/ArtBrowser/images.hbs @@ -1,7 +1,9 @@
{{#if can.upload}} - + {{/if}} {{#if is.multi}}
@@ -20,7 +22,7 @@ {{else}} - {{ localize "" }} + {{ localize "IT.apps.ArtBrowser.no-results" }} {{/if}}
@@ -29,14 +31,14 @@ data-action="prevPage" {{disabled (not has.prev)}} > - Prev + {{localize "IT.common.page.previous"}} {{page}} / {{pages}}
diff --git a/templates/ArtBrowser/sidebar.hbs b/templates/ArtBrowser/sidebar.hbs index 127b10c..8abb4fa 100644 --- a/templates/ArtBrowser/sidebar.hbs +++ b/templates/ArtBrowser/sidebar.hbs @@ -1,6 +1,12 @@
+

+ {{localize "IT.apps.ArtBrowser.page-reset-warning"}} +

+ +
+
- Links + + {{localize "IT.common.links"}} +
{{#if artist.links}} @@ -17,7 +17,7 @@ {{/if}} {{#if artist.commonTags}}
-

Common Image Tags

+

{{localize "IT.apps.ArtistBrowser.common-tags"}}

    {{#each artist.commonTags as |tag|}}
  • {{tag.name}} ({{tag.count}})
  • diff --git a/templates/ArtistBrowser/list.hbs b/templates/ArtistBrowser/list.hbs index a354373..c9da32c 100644 --- a/templates/ArtistBrowser/list.hbs +++ b/templates/ArtistBrowser/list.hbs @@ -1,7 +1,9 @@
    {{#if can.upload}} - + {{/if}}
    {{#if artists}} diff --git a/templates/ArtistBrowser/sidebar.hbs b/templates/ArtistBrowser/sidebar.hbs index 43e6115..f25d2be 100644 --- a/templates/ArtistBrowser/sidebar.hbs +++ b/templates/ArtistBrowser/sidebar.hbs @@ -1,5 +1,7 @@ - +