1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[loc] set up Windows Store listing translations (part 1)

* MSG_900+ will be used for Windows Store translation, so add them
  and makes sure these get filtered out from embedded.loc.
* Also make sure we don't get a "Translated by:" in the English version
  when compiled with VS2022.
* Also add Store screenshots and update listing.csv so that we can
  autogenerate and upload a complete translation update to the store.
This commit is contained in:
Pete Batard 2023-02-03 17:03:06 +00:00
parent 43c6290143
commit fac433a0fe
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
55 changed files with 414 additions and 235 deletions

View file

@ -1,7 +1,7 @@
/*
* Rufus: The Reliable USB Formatting Utility
* Poedit <-> rufus.loc conversion utility
* Copyright © 2018-2022 Pete Batard <pete@akeo.ie>
* Copyright © 2018-2023 Pete Batard <pete@akeo.ie>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -41,9 +41,9 @@ using System.Windows.Forms;
[assembly: AssemblyDescription("Poedit ↔ Rufus loc conversion utility")]
[assembly: AssemblyCompany("Akeo Consulting")]
[assembly: AssemblyProduct("Pollock")]
[assembly: AssemblyCopyright("Copyright © 2018-2022 Pete Batard <pete@akeo.ie>")]
[assembly: AssemblyCopyright("Copyright © 2018-2023 Pete Batard <pete@akeo.ie>")]
[assembly: AssemblyTrademark("GNU GPLv3")]
[assembly: AssemblyVersion("1.4.*")]
[assembly: AssemblyVersion("1.5.*")]
namespace pollock
{
@ -426,6 +426,9 @@ namespace pollock
if ((old_en_US != null) && (added_ids.Contains(id) || modified_ids.Contains(id)))
writer.WriteLine("#, fuzzy");
string msg_str = lang.sections[id.group].Where(x => x.id == id.id).Select(x => x.str).FirstOrDefault();
// Special case for MSG_176, which we need to replace
if (id.group == "MSG" && id.id == "MSG_176")
en_str = "\"English translation: Pete Batard <mailto:pete@akeo.ie>\"";
// Special case for MSG_240, which we missed in the last round
if (id.group == "MSG" && id.id == "MSG_240" && msg_str == null)
writer.WriteLine("#, fuzzy");