Skip to content

Commit

Permalink
Added simplified chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
lx-s committed May 3, 2024
1 parent 02d8df1 commit 794fb38
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 10 deletions.
11 changes: 7 additions & 4 deletions Dist/InnoSetup/winmute-setup-languages.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ en.StartpAppLogon=Start WinMute when you log on
de.StartpAppLogon=WinMute mit Windows starten
it.StartpAppLogon=Esegui WinMute all'accesso
es.StartpAppLogon=Inicie WinMute cuando inicie sesión
ch_s.StartpAppLogon=开机启动WinMute
en.CheckForUpdates=Automatically check for updates
de.CheckForUpdates=Automatisch nach Updates suchen
it.CheckForUpdates=Verifica automaticamente la disponibilità di aggiornamenti.
es.CheckForUpdates=Comprueba automáticamente si hay actualizaciones.
ch_s.CheckForUpdates=启动时检查新更新
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"; InfoBeforeFile: "translations/info-before.en.txt";
Name: "de"; MessagesFile: "compiler:Languages\German.isl"; InfoBeforeFile: "translations/info-before.de.txt";
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"; InfoBeforeFile: "translations/info-before.it.txt";
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"; InfoBeforeFile: "translations/info-before.es.txt";
Name: "en"; MessagesFile: "compiler:Default.isl"; InfoBeforeFile: "translations/info-before.en.txt";
Name: "de"; MessagesFile: "compiler:Languages\German.isl"; InfoBeforeFile: "translations/info-before.de.txt";
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"; InfoBeforeFile: "translations/info-before.it.txt";
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"; InfoBeforeFile: "translations/info-before.es.txt";
Name: "ch_s"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"; InfoBeforeFile: "translations/info-before.zh_Hans.txt";
3 changes: 3 additions & 0 deletions Dist/bin/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 2.5.1 (2024-05-03)
* Added new language: Simplified Chinese (thanks to https://translate.codeberg.org/user/richzhl/)

Version 2.5.0.1 (2024-02-26)
* Fixed update-check file for chocolatey package manager

Expand Down
4 changes: 2 additions & 2 deletions Dist/chocolatey/WinMute.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>winmute</id>
<version>2.5.0.1</version>
<version>2.5.1.0</version>
<title>WinMute</title>
<authors>Alexander Steinhöfer</authors>
<owners>Alexander Steinhöfer</owners>
Expand All @@ -16,7 +16,7 @@
<summary>Automatic sound muter</summary>
<description>WinMute automatically mutes your PC volume if you lock your screen or the screensaver is running.</description>
<copyright>© 2024 Alexander Steinhöfer</copyright>
<releaseNotes>https://github.com/lx-s/WinMute/releases/tag/2.5.0.0</releaseNotes>
<releaseNotes>https://github.com/lx-s/WinMute/releases/tag/2.5.1.0</releaseNotes>
<licenseUrl>https://raw.githubusercontent.com/lx-s/WinMute/main/LICENSE</licenseUrl>
<dependencies>
<dependency id="vcredist140" version="14.3"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Created using wingetcreate 1.6.1.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json

PackageIdentifier: LX-Systems.WinMute
PackageVersion: 2.5.1.0
InstallerType: inno
InstallerSwitches:
Custom: /SILENT /CURRENTUSER
ReleaseDate: 2024-05-03
Dependencies:
PackageDependencies:
- PackageIdentifier: Microsoft.VCRedist.2015+.x64
Installers:
- Architecture: x64
InstallerUrl: https://github.com/lx-s/WinMute/releases/download/2.5.1.0/WinMute-2.5.1-Setup.exe
InstallerSha256: 2159122473D4B5B5931098AC527272502FC137D3F34D1487318DE93C7211C34D
ManifestType: installer
ManifestVersion: 1.6.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Created using wingetcreate 1.6.1.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.6.0.schema.json

PackageIdentifier: LX-Systems.WinMute
PackageVersion: 2.5.1.0
PackageLocale: en-US
Publisher: LX-Systems
PublisherUrl: https://www.lx-s.de
PublisherSupportUrl: https://github.com/lx-s/WinMute/issues
PackageName: WinMute
PackageUrl: https://github.com/lx-s/WinMute
License: BSD-3-CLAUSE
LicenseUrl: https://github.com/lx-s/WinMute/blob/main/LICENSE
ShortDescription: WinMute lets you automatically mute your PC volume on certain events.
ManifestType: defaultLocale
ManifestVersion: 1.6.0
ReleaseNotes: |-
- WinMute now supports multiple languages! The following languages are available: German, English, Spanish, Italian
- Optional update notification (disabled for installations via package manager)
- Some small bugfixes and UI improvements
ReleaseNotesUrl: https://github.com/lx-s/WinMute/releases/tag/2.5.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Created using wingetcreate 1.6.1.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.6.0.schema.json

PackageIdentifier: LX-Systems.WinMute
PackageVersion: 2.5.1.0
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.6.0
8 changes: 4 additions & 4 deletions WinMute/WinMute.rc
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,5,0,1
PRODUCTVERSION 2,5,0,1
FILEVERSION 2,5,1,0
PRODUCTVERSION 2,5,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -502,12 +502,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "LX-Systems"
VALUE "FileDescription", "WinMute"
VALUE "FileVersion", "2.5.0.1"
VALUE "FileVersion", "2.5.1.0"
VALUE "InternalName", "WinMute.exe"
VALUE "LegalCopyright", "Copyright (C) 2024, Alexander Steinhoefer"
VALUE "OriginalFilename", "WinMute.exe"
VALUE "ProductName", "WinMute"
VALUE "ProductVersion", "2.5.0.1"
VALUE "ProductVersion", "2.5.1.0"
END
END
BLOCK "VarFileInfo"
Expand Down
13 changes: 13 additions & 0 deletions WinMute/WinMute.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,19 @@ copy /Y %(FullPath) $(OutputPath)lang</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutputPath)lang\%(Filename)%(Extension)</Outputs>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\Translations\lang-zh_Hans.json">
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">mkdir $(OutputPath)lang &gt;nul 2&gt;&amp;1
copy /Y %(FullPath) $(OutputPath)lang</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">mkdir $(OutputPath)lang &gt;nul 2&gt;&amp;1
copy /Y %(FullPath) $(OutputPath)lang</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Copy translation "%(Filename)" to build directory</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Copy translation "%(Filename)" to build directory</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(OutputPath)lang\%(Filename)%(Extension)</Outputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutputPath)lang\%(Filename)%(Extension)</Outputs>
</CustomBuild>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
3 changes: 3 additions & 0 deletions WinMute/WinMute.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,8 @@
<CustomBuild Include="..\Translations\lang-nl.json">
<Filter>Translations</Filter>
</CustomBuild>
<CustomBuild Include="..\Translations\lang-zh_Hans.json">
<Filter>Translations</Filter>
</CustomBuild>
</ItemGroup>
</Project>

0 comments on commit 794fb38

Please sign in to comment.