Fix locale bug

This commit is contained in:
VnPower
2024-10-20 12:12:44 +07:00
parent a0a0ee5744
commit 4b39b3ad5e
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<!-- mb-2 here specifically to not let headings float -->
<h2 class="mb-2">About PixivFE</h2>
<p>PixivFE is an open-source alternative frontend for Pixiv, allowing you to enjoy artwork without unnecessary distractions.</p>
<p">This instance is hosted by the owner of <span class="fw-bold">{{ .DomainName }}</span>. If you're interested in hosting PixivFE yourself, please visit <a href="{{ .RepoURL }}">the source repository</a> for more information.</p>
<p>This instance is hosted by the owner of <span class="fw-bold">{{ .DomainName }}</span>. If you're interested in hosting PixivFE yourself, please visit <a href="{{ .RepoURL }}">the source repository</a> for more information.</p>
<p><b>Disclaimer:</b> This is <b>NOT</b> a pixiv's product and was <b>NOT</b> developed, created, or distributed by pixiv.</p>
<!-- The rest of this column is mostly intended to eliminate weird negative space on this page -->
<!-- TODO: put actual content here -->
+14
View File
@@ -70,6 +70,20 @@ func translationPairs_inner(locale string, file string) TrPairs {
result := TrPairs{}
for _, v := range staging {
if len(v.before) < 1 {
continue
}
if strings.Count(v.before, " ") < 1 {
result = append(result, ">"+v.before)
result = append(result, ">"+v.after)
result = append(result, "\t"+v.before)
result = append(result, "\t"+v.after)
result = append(result, "\""+v.before)
result = append(result, "\""+v.after)
result = append(result, " "+v.before)
result = append(result, " "+v.after)
continue
}
result = append(result, v.before)
result = append(result, v.after)
}