mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Fix locale bug
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user