Skip to content

Commit

Permalink
Update translations and scripts for 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Jun 11, 2021
1 parent d1398b3 commit 984cacb
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 16 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## `4.6.0`

* Added Monterey Abstract theme
* Added estimate of disk space usage in theme previewer
* Added Arabic and Ukrainian translations (thanks Abdul Rahim and Віталій)
* Fixed timezone calculations failing in Oceania
* Fixed config reload overwriting changes on disk
* Fixed open dialogs preventing app from exiting

## `4.5.0`

* Added installer option to install for all users
Expand Down
3 changes: 2 additions & 1 deletion scripts/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
ChangesAssociations=yes
DisableProgramGroupPage=yes
; Remove the following line to run in administrative install mode (install for all users.)
; Uncomment the following line to run in non administrative install mode (install for current user only.)
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputBaseFilename={#MyAppName}_{#MyAppVersion}_Setup
Expand All @@ -39,6 +39,7 @@ OutputDir=..\dist
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "armenian"; MessagesFile: "compiler:Languages\Armenian.isl"
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
Expand Down
7 changes: 5 additions & 2 deletions scripts/make_previews.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

os.chdir(os.path.dirname(os.path.realpath(__file__)))

img_width = int(sys.argv[1]) if len(sys.argv) > 1 else 256
img_width = int(sys.argv[1]) if len(sys.argv) > 1 else 1920
img_height = int(img_width * 9 / 16)
jpeg_quality = int(sys.argv[2]) if len(sys.argv) > 2 else 75

Expand Down Expand Up @@ -41,6 +41,9 @@
for phase, filename in image_filenames.items():
img = Image.open(f"{theme_dir}/{filename}")
img.thumbnail((img_width, img_height))
img.save(f"{output_dir}/{theme_name}_{phase}.jpg", quality=jpeg_quality)
if jpeg_quality >= 0:
img.save(f"{output_dir}/{theme_name}_{phase}.jpg", quality=jpeg_quality)
else:
img.save(f"{output_dir}/{theme_name}_{phase}.png")

print(f"-> {output_dir}")
7 changes: 5 additions & 2 deletions scripts/make_thumbnails.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

os.chdir(os.path.dirname(os.path.realpath(__file__)))

img_width = int(sys.argv[1]) if len(sys.argv) > 1 else 1080
img_width = int(sys.argv[1]) if len(sys.argv) > 1 else 256
img_height = int(img_width * 9 / 16)
jpeg_quality = int(sys.argv[2]) if len(sys.argv) > 2 else 95

Expand All @@ -34,6 +34,9 @@

img2.paste(img1.crop((0, 0, img1.width // 2, img1.height)))
img2.thumbnail((img_width, img_height))
img2.save(f"{output_dir}/{theme_name}_thumbnail.jpg", quality=jpeg_quality)
if jpeg_quality >= 0:
img2.save(f"{output_dir}/{theme_name}_thumbnail.jpg", quality=jpeg_quality)
else:
img2.save(f"{output_dir}/{theme_name}_thumbnail.png")

print(f"-> {output_dir}")
2 changes: 2 additions & 0 deletions src/Localization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ private static void LoadLanguages()
AddLanguage("Ελληνικά", "el"); // Greek
AddLanguage("Български", "bg"); // Bulgarian
AddLanguage("Македонски", "mk"); // Macedonian
AddLanguage("Українська", "uk"); // Ukrainian
AddLanguage("عربي", "ar"); // Arabic
AddLanguage("हिन्दी", "hi"); // Hindi
AddLanguage("বাংলা", "bn"); // Bengali
AddLanguage("中文 (简体)", "zh-Hans"); // Chinese (simplified)
Expand Down
2 changes: 1 addition & 1 deletion src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.5.0")]
[assembly: AssemblyVersion("4.6.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
11 changes: 2 additions & 9 deletions src/WPF/ThemePreviewerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ public void PreviewTheme(ThemeConfig theme)

if (isDownloaded)
{
ThemeManager.CalcThemeInstallSize(theme, (size) =>
{
DownloadSize = size;
});
ThemeManager.CalcThemeInstallSize(theme, size => { DownloadSize = size; });

if (theme.sunriseImageList != null && !theme.sunriseImageList.SequenceEqual(theme.dayImageList))
{
Expand All @@ -260,10 +257,7 @@ public void PreviewTheme(ThemeConfig theme)
else
{
Message = _("Theme is not downloaded. Click Download button to enable full preview.");
ThemeManager.CalcThemeDownloadSize(theme, (size) =>
{
DownloadSize = size;
});
ThemeManager.CalcThemeDownloadSize(theme, size => { DownloadSize = size; });

string[] resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames();
string path = "WinDynamicDesktop.resources.images." + theme.themeId + "_{0}.jpg";
Expand Down Expand Up @@ -324,7 +318,6 @@ public void PreviewTheme(ThemeConfig theme)
else
{
Author = "Microsoft";
DownloadSize = null;
Items.Add(new ThemePreviewItem(string.Empty, ThemeThumbLoader.GetWindowsWallpaper()));
activeImage = 0;
}
Expand Down
Binary file added src/locale/ar.mo
Binary file not shown.
Binary file modified src/locale/fr.mo
Binary file not shown.
Binary file modified src/locale/mk.mo
Binary file not shown.
Binary file modified src/locale/ru.mo
Binary file not shown.
Binary file modified src/locale/sv.mo
Binary file not shown.
Binary file modified src/locale/tr.mo
Binary file not shown.
Binary file added src/locale/uk.mo
Binary file not shown.
Binary file modified src/locale/zh-Hans.mo
Binary file not shown.
Binary file modified src/locale/zh-Hant.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion uwp/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" IgnorableNamespaces="uap uap3 mp rescap desktop">
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="4.5.0.0" />
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="4.6.0.0" />
<Properties>
<DisplayName>WinDynamicDesktop</DisplayName>
<PublisherDisplayName>Timothy Johnson</PublisherDisplayName>
Expand Down

0 comments on commit 984cacb

Please sign in to comment.