Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Scripts/Create-FlagFromSVG.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<#
Convert 4x3 country flags from SVG to PNG using ImageMagick.

Flags source: https://github.com/lipis/flag-icon-css
#>

$ConvertPath = "C:\Tools\ImageMagick-7.1.0-portable-Q16-x64\convert.exe"

$SourcePath = "C:\Temp\jp.svg"
$DestinationPath = "C:\Temp\ja-JP.png"

Start-Process -FilePath $ConvertPath -ArgumentList "-antialias -density 600 -background transparent -resize x48 ""$SourcePath"" ""$DestinationPath""" -NoNewWindow -Wait
7 changes: 4 additions & 3 deletions Source/NETworkManager.Localization/LocalizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ private LocalizationManager(string cultureCode = DefaultCultureCode)
/// <summary>
/// List with all <see cref="LocalizationInfo" />s.
/// </summary>
public static List<LocalizationInfo> List => new()
{
public static List<LocalizationInfo> List =>
[
// Official
new LocalizationInfo("English", "English", GetImageUri("en-US"), "en-US", true),
new LocalizationInfo("German (Germany)", "Deutsch", GetImageUri("de-DE"), "de-DE", true),
Expand All @@ -65,13 +65,14 @@ private LocalizationManager(string cultureCode = DefaultCultureCode)
new LocalizationInfo("French (France)", "Français", GetImageUri("fr-FR"), "fr-FR"),
new LocalizationInfo("Hungarian (Hungary)", "Magyar", GetImageUri("hu-HU"), "hu-HU"),
new LocalizationInfo("Italian (Italy)", "Italiano", GetImageUri("it-IT"), "it-IT"),
new LocalizationInfo("Japanese (Japan)", "日本語", GetImageUri("ja-JP"), "ja-JP"),
new LocalizationInfo("Korean (Korea)", "한국어", GetImageUri("ko-KR"), "ko-KR"),
new LocalizationInfo("Polish (Poland)", "Język polski", GetImageUri("pl-PL"), "pl-PL"),
new LocalizationInfo("Portuguese (Brazil)", "português brasileiro", GetImageUri("pt-BR"), "pt-BR"),
new LocalizationInfo("Russian (Russia)", "Русский", GetImageUri("ru-RU"), "ru-RU"),
new LocalizationInfo("Slovenian (Slovenia)", "slovenski jezik", GetImageUri("sl-SI"), "sl-SI"),
new LocalizationInfo("Spanish (Spain)", "Español", GetImageUri("es-ES"), "es-ES")
};
];

/// <summary>
/// Variable with the currently used <see cref="LocalizationInfo" />.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,53 @@
<NoWarn>1701;1702;CA1712</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Remove="Resources\Flags\cs-CZ.png"/>
<None Remove="Resources\Flags\en-US.png"/>
<None Remove="Resources\Flags\de-DE.png"/>
<None Remove="Resources\Flags\es-ES.png"/>
<None Remove="Resources\Flags\fr-FR.png"/>
<None Remove="Resources\Flags\hu-HU.png"/>
<None Remove="Resources\Flags\it-IT.png"/>
<None Remove="Resources\Flags\ko-KR.png"/>
<None Remove="Resources\Flags\nl-NL.png"/>
<None Remove="Resources\Flags\pl-PL.png"/>
<None Remove="Resources\Flags\pt-BR.png"/>
<None Remove="Resources\Flags\ru-RU.png"/>
<None Remove="Resources\Flags\sl-SI.png"/>
<None Remove="Resources\Flags\zh-CN.png"/>
<None Remove="Resources\Flags\zh-TW.png"/>
<None Remove="Resources\Flags\cs-CZ.png" />
<None Remove="Resources\Flags\en-US.png" />
<None Remove="Resources\Flags\de-DE.png" />
<None Remove="Resources\Flags\es-ES.png" />
<None Remove="Resources\Flags\fr-FR.png" />
<None Remove="Resources\Flags\hu-HU.png" />
<None Remove="Resources\Flags\it-IT.png" />
<None Remove="Resources\Flags\ja-JP.png" />
<None Remove="Resources\Flags\ko-KR.png" />
<None Remove="Resources\Flags\nl-NL.png" />
<None Remove="Resources\Flags\pl-PL.png" />
<None Remove="Resources\Flags\pt-BR.png" />
<None Remove="Resources\Flags\ru-RU.png" />
<None Remove="Resources\Flags\sl-SI.png" />
<None Remove="Resources\Flags\zh-CN.png" />
<None Remove="Resources\Flags\zh-TW.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\GlobalAssemblyInfo.cs" Link="Properties\GlobalAssemblyInfo.cs"/>
<Compile Include="..\GlobalAssemblyInfo.cs" Link="Properties\GlobalAssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Flags\cs-CZ.png"/>
<Resource Include="Resources\Flags\en-US.png"/>
<Resource Include="Resources\Flags\de-DE.png"/>
<Resource Include="Resources\Flags\es-ES.png"/>
<Resource Include="Resources\Flags\fr-FR.png"/>
<Resource Include="Resources\Flags\hu-HU.png"/>
<Resource Include="Resources\Flags\it-IT.png"/>
<Resource Include="Resources\Flags\ko-KR.png"/>
<Resource Include="Resources\Flags\nl-NL.png"/>
<Resource Include="Resources\Flags\pl-PL.png"/>
<Resource Include="Resources\Flags\pt-BR.png"/>
<Resource Include="Resources\Flags\ru-RU.png"/>
<Resource Include="Resources\Flags\sl-SI.png"/>
<Resource Include="Resources\Flags\zh-CN.png"/>
<Resource Include="Resources\Flags\zh-TW.png"/>
<Resource Include="Resources\Flags\cs-CZ.png" />
<Resource Include="Resources\Flags\en-US.png" />
<Resource Include="Resources\Flags\de-DE.png" />
<Resource Include="Resources\Flags\es-ES.png" />
<Resource Include="Resources\Flags\fr-FR.png" />
<Resource Include="Resources\Flags\hu-HU.png" />
<Resource Include="Resources\Flags\it-IT.png" />
<Resource Include="Resources\Flags\ja-JP.png" />
<Resource Include="Resources\Flags\ko-KR.png" />
<Resource Include="Resources\Flags\nl-NL.png" />
<Resource Include="Resources\Flags\pl-PL.png" />
<Resource Include="Resources\Flags\pt-BR.png" />
<Resource Include="Resources\Flags\ru-RU.png" />
<Resource Include="Resources\Flags\sl-SI.png" />
<Resource Include="Resources\Flags\zh-CN.png" />
<Resource Include="Resources\Flags\zh-TW.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MahApps.Metro" Version="2.4.10"/>
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\NETworkManager.Models\NETworkManager.Models.csproj"/>
<ProjectReference Include="..\NETworkManager.Profiles\NETworkManager.Profiles.csproj"/>
<ProjectReference Include="..\NETworkManager.Utilities\NETworkManager.Utilities.csproj"/>
<ProjectReference Include="..\NETworkManager.Models\NETworkManager.Models.csproj" />
<ProjectReference Include="..\NETworkManager.Profiles\NETworkManager.Profiles.csproj" />
<ProjectReference Include="..\NETworkManager.Utilities\NETworkManager.Utilities.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Website/docs/changelog/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Release date: **xx.xx.2025**

## What's new?

- New language Japanese (`ja-JP`) has been added. Thanks to [@coolvitto](https://github.com/coolvitto) [#3044](https://github.com/BornToBeRoot/NETworkManager/pull/3044) [#3030](https://github.com/BornToBeRoot/NETworkManager/pull/3030) [#3035](https://github.com/BornToBeRoot/NETworkManager/pull/3035)

## Improvements

**PowerShell**
Expand Down
1 change: 1 addition & 0 deletions Website/docs/commandline-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Start a specific application on startup.
- `DiscoveryProtocol`
- `WakeOnLAN`
- `Whois`
- `IPGeolocation`
- `SubnetCalculator`
- `BitCalculator`
- `Lookup`
Expand Down
19 changes: 19 additions & 0 deletions Website/docs/settings/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@ Language for the user interface of the application.

**Default:** `English` (`en-US`)

**Possible values:**

- `English` (`en-US`)
- `German (Germany)` (`de-DE`)
- `Chinese (China)` (`zh-CN`)
- `Chinese (Taiwan)` (`zh-TW`)
- `Czech (Czech Republic)` (`cs-CZ`)
- `Dutch (Netherlands)` (`nl-NL`)
- `French (France)` (`fr-FR`)
- `Hungarian (Hungary)` (`hu-HU`)
- `Italian (Italy)` (`it-IT`)
- `Japanese (Japan)` (`ja-JP`)
- `Korean (South Korea)` (`ko-KR`)
- `Polish (Poland)` (`pl-PL`)
- `Portuguese (Brazil)` (`pt-BR`)
- `Russian (Russia)` (`ru-RU`)
- `Slovenian (Slovenia)` (`sl-SI`)
- `Spanish (Spain)` (`es-ES`)

:::note

The language is automatically detected based on the system language. If the language is not available, the default language is used. Changes to this value will take effect after restarting the application.
Expand Down