Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitepower18 committed Feb 14, 2024
2 parents 1030a4b + 503c24c commit 438070c
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 288 deletions.
401 changes: 132 additions & 269 deletions Installer/CodeDependencies.iss

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Installer/installer_arm64.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "WSA System Control"
#define MyAppVersion "1.0.8"
#define MyAppVersion "1.0.9"
#define MyAppPublisher "infinitepower18"
#define MyAppURL "https://github.com/infinitepower18/WSA-SystemControl"
#define MyAppUpdateURL "https://github.com/infinitepower18/WSA-SystemControl/releases/latest"
Expand Down Expand Up @@ -44,6 +44,7 @@ Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "zh"; MessagesFile: "compiler:Languages\Chinese.isl"
Name: "hu"; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: "ar"; MessagesFile: "compiler:Languages\Arabic.isl"

[Tasks]
Name: startup; Description: "Run WSA System Control on Windows login"; GroupDescription: "Additional options:";
Expand Down
14 changes: 13 additions & 1 deletion Installer/installer_x64.iss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define public Dependency_NoExampleSetup
#include "CodeDependencies.iss"

#define MyAppName "WSA System Control"
#define MyAppVersion "1.0.8"
#define MyAppVersion "1.0.9"
#define MyAppPublisher "infinitepower18"
#define MyAppURL "https://github.com/infinitepower18/WSA-SystemControl"
#define MyAppUpdateURL "https://github.com/infinitepower18/WSA-SystemControl/releases/latest"
Expand Down Expand Up @@ -39,16 +42,25 @@ ArchitecturesInstallIn64BitMode=x64 arm64
LanguageDetectionMethod=uilanguage
ShowLanguageDialog=no

[Code]
function InitializeSetup: Boolean;
begin
Dependency_AddDotNet80Desktop;
Result := True;
end;
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "zh"; MessagesFile: "compiler:Languages\Chinese.isl"
Name: "hu"; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: "ar"; MessagesFile: "compiler:Languages\Arabic.isl"

[Tasks]
Name: startup; Description: "Run WSA System Control on Windows login"; GroupDescription: "Additional options:";

[Files]
Source: "C:\Program Files (x86)\Inno Setup 6\netcorecheck_x64.exe"; Flags: dontcopy noencryption
Source: "C:\Users\Ahnaf\source\repos\WSA-SystemControl\WSA System Control\bin\Release\net8.0-windows10.0.22000.0\publish\win-x64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Ahnaf\source\repos\WSA-SystemControl\WSA System Control\bin\Release\net8.0-windows10.0.22000.0\publish\win-x64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,22 @@ Requires WSA running Android 13 or higher.

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F1K06VY)

## Translations

Locale files are located in `WSA System Control/Resources`. The language that is used by WSA System Control is dependent on your Windows display language. If your language isn't yet supported by WSA System Control, it will fallback to English.

I am looking to integrate localization solutions such as Crowdin, but in the meantime you can make a PR with your contribution.

If you want to translate WSA System Control to a language which is not yet supported, use the `WSA System Control/Resources/Strings.resx` file as a base for the translation. Make sure that the file is named in the `Strings.langCode.resx` format e.g. `Strings.ja-JP.resx`.

Future updates to strings will involve updating all translated language files using Google Translate or some other machine translation service. As you may know, these services are not always accurate, so if you see any inaccuracies, please make a pull request!

During translation, it is a good idea to run WSA System Control with the translated language to see the end result. As long as the translated file is properly named and placed in the `WSA System Control/Resources` folder, it should automatically display in that language.

Text enclosed in `{}` brackets are variables which should be left the way they are and not be translated.

### Microsoft Store page
Along with the program itself, I also aim to provide localized MS Store pages in the languages which the program is available. In your PR, include a comment with translated versions of the strings provided on [this page](https://gist.github.com/infinitepower18/cfa1df87d6b5c1c1d520c892303a8d79).

## Disclaimer
This project is not affiliated with Microsoft or Google in any way.
14 changes: 0 additions & 14 deletions WSA System Control/Resources/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion WSA System Control/WSA System Control.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>app.ico</ApplicationIcon>
<AssemblyVersion>1.0.8</AssemblyVersion>
<AssemblyVersion>1.0.9</AssemblyVersion>
<Version>1.0.8</Version>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<Platforms>AnyCPU;ARM64;x64</Platforms>
Expand Down
3 changes: 2 additions & 1 deletion WSCPackage/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="46954GamenologyMedia.WSASystemControl"
Publisher="CN=091B3CC8-312A-4A38-8EAB-908DCCB09857"
Version="1.0.8.0" />
Version="1.0.9.0" />

<Properties>
<DisplayName>WSA System Control</DisplayName>
Expand All @@ -27,6 +27,7 @@
<Resource Language="ja-JP"/>
<Resource Language="zh-CN"/>
<Resource Language="hu"/>
<Resource Language="ar"/>
</Resources>

<Applications>
Expand Down
2 changes: 1 addition & 1 deletion WSCPackage/WSCPackage.wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<AppxBundlePlatforms>x64|arm64</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<GenerateTemporaryStoreCertificate>True</GenerateTemporaryStoreCertificate>
<AppxDefaultResourceQualifiers>Language=EN;JA-JP;ZH-CN;HU</AppxDefaultResourceQualifiers>
<AppxDefaultResourceQualifiers>Language=EN;JA-JP;ZH-CN;HU;AR</AppxDefaultResourceQualifiers>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<DefaultLanguage>en</DefaultLanguage>
Expand Down

0 comments on commit 438070c

Please sign in to comment.