Skip to content

Commit

Permalink
PW-103: Make download button description translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Sep 5, 2023
1 parent d9ed631 commit 366fa92
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion website/frontend/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-08-27 10:07+0200\n"
"POT-Creation-Date: 2023-09-05 15:36+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -433,6 +433,18 @@ msgid ""
" your own."
msgstr ""

#: website/frontend/templates/index.html:148
msgid "v{version} for Windows (64-bit)"
msgstr ""

#: website/frontend/templates/index.html:153
msgid "v{version} for Linux Distributions"
msgstr ""

#: website/frontend/templates/index.html:158
msgid "v{version} for macOS 10.14+"
msgstr ""

#: website/frontend/templates/plugins.html:3
msgid "Available Plugins"
msgstr ""
Expand Down
6 changes: 3 additions & 3 deletions website/frontend/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ <h2>{{ _("Plugin Support") }}</h2>
if (/^Win/.test(platform) || /Windows/.test(navigator.userAgent)) {
downloadURL = "https://musicbrainz.osuosl.org/pub/musicbrainz/picard/picard-setup-{{tag}}.exe";
iconClass = "fa-windows";
infoText = "v{{tag}} for Windows (64-bit)";
infoText = {{_('v{version} for Windows (64-bit)')|expand({'version': tag})|tojson}};

} else if (/Linux/.test(platform)) {
downloadURL = "{{ url_for('frontend.show_downloads') }}#linux";
iconClass = "fa-linux";
infoText = "v{{tag}} for Linux Distributions";
infoText = {{_('v{version} for Linux Distributions')|expand({'version': tag})|tojson}};

} else if (platform === "MacIntel" || platform === "MacPPC") {
downloadURL = "https://musicbrainz.osuosl.org/pub/musicbrainz/picard/MusicBrainz-Picard-{{tag}}-macOS-10.14.dmg";
iconClass = "fa-apple";
infoText = "v{{tag}} for macOS 10.14+";
infoText = {{_('v{version} for macOS 10.14+')|expand({'version': tag})|tojson}};
}

if (downloadURL) {
Expand Down

0 comments on commit 366fa92

Please sign in to comment.