mirror of
https://codeberg.org/readeck/readeck.git
synced 2025-12-22 05:07:08 +00:00
i18n improvements
- missing strings in "about" page, see #744 - use argument indexes in some strings for translators to change the order when needed or avoid repeating ourselves, see #602
This commit is contained in:
@@ -119,7 +119,7 @@ if ('noModule' in HTMLScriptElement.prototype) {
|
||||
|
||||
<p class="my-4 text-right">
|
||||
{{- gettext(
|
||||
"Shared by %s with %s",
|
||||
"Shared by %[1]s with %[2]s",
|
||||
html(.Username),
|
||||
`<a class="link" href="https://readeck.org/">Readeck</a>`,
|
||||
) | raw }}
|
||||
|
||||
@@ -14,9 +14,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<div class="prose mb-8">
|
||||
<p>{{ gettext(`
|
||||
You can export your articles on Pocket by visiting:<br>
|
||||
<a class="%s" href="%s">%s</a>.
|
||||
<a class="%[1]s" href="%[2]s">%[2]s</a>.
|
||||
`,
|
||||
"link", "https://getpocket.com/export", "https://getpocket.com/export",
|
||||
"link", "https://getpocket.com/export"
|
||||
)|raw }}</p>
|
||||
<p>{{ gettext(`
|
||||
Upload this file in the form below and Readeck will fetch and save
|
||||
|
||||
@@ -50,7 +50,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
{{- end -}}
|
||||
{{- if .MaybeSearch -}}
|
||||
{{- yield message() content -}}
|
||||
{{ gettext(`"%s" is not a valid address. Did you mean to search your bookmarks for %s?`,
|
||||
{{ gettext(`"%[1]s" is not a valid address. Did you mean to search your bookmarks for %[2]s?`,
|
||||
html(.Form.Get(`url`).String()),
|
||||
`<a data-turbo-frame="_top" href="` + urlFor(`/bookmarks`) + `?bf=1&search=` + url(.Form.Get(`url`).String()) + `"` +
|
||||
`class="link font-bold">` + html(.Form.Get(`url`).String()) + `</a>`,
|
||||
|
||||
@@ -36,18 +36,18 @@ Build Info:
|
||||
{{- yield icon(name="o-copy") }}
|
||||
{{ gettext("copy to clipboard") }}
|
||||
</button></p>
|
||||
<textarea hidden data-clipboard-target="content">{{ yield sysInfo() }}</textarea>
|
||||
<textarea hidden data-clipboard-target="content">``` {{- yield sysInfo() }}```</textarea>
|
||||
</div>
|
||||
|
||||
<h3 class="title text-h3">Storage</h3>
|
||||
<h3 class="title text-h3">{{ gettext("Storage") }}</h3>
|
||||
<table class="my-4">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="text-left">Database Size:</th>
|
||||
<th class="text-left">{{ gettext("Database Size:") }}</th>
|
||||
<td class="pl-4 text-right">{{ humanReadable(.DBSize) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-left">Bookmarks Disk Usage:</th>
|
||||
<th class="text-left">{{ gettext("Bookmarks Disk Usage:") }}</th>
|
||||
<td class="pl-4 text-right">{{ humanReadable(.DiskUsage) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -8,27 +8,27 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
Hi,
|
||||
|
||||
You (or someone else) entered this email address when trying to
|
||||
change the password of a Readeck account (%s).
|
||||
change the password of a Readeck account (%[1]s).
|
||||
|
||||
If you are expecting this email, please follow this link to set
|
||||
a new password for your readeck account.
|
||||
|
||||
%s
|
||||
%[2]s
|
||||
`, .SiteURL, .RecoverLink)|unsafe() -}}
|
||||
{{- else -}}
|
||||
{{- gettext(`
|
||||
Hi,
|
||||
|
||||
You (or someone else) entered this email address when trying to
|
||||
change the password of a Readeck account (%s).
|
||||
change the password of a Readeck account (%[1]s).
|
||||
|
||||
However, this email address is not associated with any account and
|
||||
therefore, the attempted password change has failed.
|
||||
|
||||
If you are a Readeck user on %s and you are
|
||||
If you are a Readeck user on %[1]s and you are
|
||||
expecting this email, please try again using the email address
|
||||
you used when creating your account.
|
||||
|
||||
If you are not a Readeck user, please ignore this message.
|
||||
`, .SiteURL, .SiteURL)|unsafe() -}}
|
||||
`, .SiteURL)|unsafe() -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user