Add localization strings for everything I didn't localize already

This commit is contained in:
Oliver 2026-02-06 20:37:39 -07:00
parent 4a31ed76cd
commit 920549c43b
10 changed files with 53 additions and 26 deletions

View file

@ -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": {

View file

@ -10,12 +10,12 @@
<button
data-action="select"
>
Select
{{localize "IT.common.select"}}
</button>
{{else if is.multi}}
<input
type="checkbox"
aria-label="Select image"
aria-label="IT.apps.ArtBrowser.select-image"
data-action="select"
{{checked image.selected}}
>

View file

@ -1,7 +1,9 @@
<div class="paginated">
<div class="row">
{{#if can.upload}}
<button data-action="uploadImage">Upload Image</button>
<button data-action="uploadImage">
{{localize "IT.apps.ArtBrowser.upload-image"}}
</button>
{{/if}}
{{#if is.multi}}
<div class="grow"></div>
@ -20,7 +22,7 @@
</ul>
{{else}}
<span class="placeholder">
{{ localize "" }}
{{ localize "IT.apps.ArtBrowser.no-results" }}
</span>
{{/if}}
<div class="grow"></div>
@ -29,14 +31,14 @@
data-action="prevPage"
{{disabled (not has.prev)}}
>
Prev
{{localize "IT.common.page.previous"}}
</button>
{{page}} / {{pages}}
<button
data-action="nextPage"
{{disabled (not has.next)}}
>
Next
{{localize "IT.common.page.next"}}
</button>
</div>
</div>

View file

@ -1,6 +1,12 @@
<form autocomplete="off" class="filters">
<p>
{{localize "IT.apps.ArtBrowser.page-reset-warning"}}
</p>
<hr>
<label for="{{meta.idp}}-name">
Name
{{localize "IT.common.name"}}
</label>
<input
id="{{meta.idp}}-name"
@ -12,7 +18,7 @@
<hr>
<label for="{{meta.idp}}-tags">
Tags
{{localize "IT.common.tags"}}
</label>
<string-tags
id="{{meta.idp}}-tags"
@ -23,7 +29,7 @@
<hr>
<label for="{{meta.idp}}-artists">
Artists
{{localize "IT.common.artists"}}
</label>
<multi-select
id="{{meta.idp}}-artists"

View file

@ -1,7 +1,7 @@
<div>
<div class="row">
<label for="{{meta.idp}}-name">
Name
{{localize "IT.common.name"}}
</label>
<div class="grow"></div>
<input

View file

@ -1,6 +1,8 @@
<div>
<div class="row">
<span class="label">Links</span>
<span class="label">
{{localize "IT.common.links"}}
</span>
<div class="grow"></div>
<button
type="button"

View file

@ -3,7 +3,7 @@
<h2>{{artist.name}}</h2>
<div class="grow"></div>
<div>
{{artist.imageCount}} Images
{{localize "IT.apps.ArtistBrowser.image-count" count=artist.imageCount}}
</div>
</div>
{{#if artist.links}}
@ -17,7 +17,7 @@
{{/if}}
{{#if artist.commonTags}}
<section>
<h3>Common Image Tags</h3>
<h3>{{localize "IT.apps.ArtistBrowser.common-tags"}}</h3>
<ul class="chip-list">
{{#each artist.commonTags as |tag|}}
<li class="chip">{{tag.name}} ({{tag.count}})</li>

View file

@ -1,7 +1,9 @@
<div class="paginated">
<div class="row">
{{#if can.upload}}
<button data-action="createArtist">Create New Artist</button>
<button data-action="createArtist">
{{localize "IT.apps.ArtistBrowser.create-artist"}}
</button>
{{/if}}
</div>
{{#if artists}}

View file

@ -1,5 +1,7 @@
<form autocomplete="off" class="filters">
<label for="{{meta.idp}}-name">Name</label>
<label for="{{meta.idp}}-name">
{{localize "IT.common.name"}}
</label>
<input
id="{{meta.idp}}-name"
type="text"
@ -10,7 +12,7 @@
<hr>
<label for="{{meta.idp}}-sort">
Sort By
{{localize "IT.common.sort-by"}}
</label>
<select name="sortBy" id="{{meta.idp}}-sort">
{{it-options sortBy sortOptions localize=true}}

View file

@ -1,6 +1,6 @@
<div class="inputs">
<label for="{{meta.idp}}-name">
{{ localize "IT.apps.ImageApp.name-label" }}
{{localize "IT.common.name"}}
</label>
<input
id="{{meta.idp}}-name"
@ -10,7 +10,7 @@
>
<label for="{{meta.idp}}-tags">
{{ localize "IT.apps.ImageApp.tags-label" }}
{{localize "IT.common.tags"}}
</label>
<string-tags
id="{{meta.idp}}-tags"
@ -19,7 +19,7 @@
></string-tags>
<label for="{{meta.idp}}-artists">
{{ localize "IT.apps.ImageApp.artists-label" }}
{{localize "IT.common.artists"}}
</label>
<multi-select
id="{{meta.idp}}-artists"