Skip to content

Commit

Permalink
Merge pull request #276 from Q-Sharp/main
Browse files Browse the repository at this point in the history
add en to lang selection
  • Loading branch information
Razzmatazzz authored Sep 24, 2024
2 parents 63c5d1a + eb397df commit 21f0562
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
proj-path: ${{ env.Project }}

- name: publish
run: dotnet publish -o "./publish"
run: dotnet publish RemnantSaveGuardian/RemnantSaveGuardian.csproj -o "./publish"

- name: Upload build artifacts
uses: actions/upload-artifact@v4
Expand Down
7 changes: 5 additions & 2 deletions RemnantSaveGuardian/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ private CultureInfo[] EnumerateSupportedCultures()
{
CultureInfo[] culture = CultureInfo.GetCultures(CultureTypes.AllCultures);

string exeLocation = Path.GetDirectoryName(Uri.UnescapeDataString(new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));
string exeLocation = Path.GetDirectoryName(Uri.UnescapeDataString(new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path)) ?? "";

Check warning on line 113 in RemnantSaveGuardian/App.xaml.cs

View workflow job for this annotation

GitHub Actions / build

'Assembly.CodeBase' is obsolete: 'Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location.' (https://aka.ms/dotnet-warnings/SYSLIB0012)

Check warning on line 113 in RemnantSaveGuardian/App.xaml.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'uri' in 'UriBuilder.UriBuilder(string uri)'.

var c = culture.Where(cultureInfo => Directory.Exists(Path.Combine(exeLocation, cultureInfo.Name)) && cultureInfo.Name != "")
.Prepend(CultureInfo.GetCultureInfo("en"))
.ToArray();

var c = culture.Where(cultureInfo => Directory.Exists(Path.Combine(exeLocation, cultureInfo.Name)) && cultureInfo.Name != "").ToArray();
return c;
}

Expand Down
2 changes: 1 addition & 1 deletion RemnantSaveGuardian/RemnantSaveGuardian.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<SatelliteResourceLanguages>en;ru;de;es;fr;it;ja;ko;pt-BR;zh-Hans;zh-Hant</SatelliteResourceLanguages>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationIcon>Assets\256.ico</ApplicationIcon>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<AssemblyVersion>1.3.2.0</AssemblyVersion>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>

Expand Down

0 comments on commit 21f0562

Please sign in to comment.