Skip to content

Commit

Permalink
Merge pull request #9 from DN-Foundation/languages
Browse files Browse the repository at this point in the history
Release 2023.2.1
  • Loading branch information
branislavjuhas authored Jul 19, 2023
2 parents 217eec0 + 9c08ab5 commit 4e6fdf0
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,33 +40,47 @@
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
<AssetTargetFallback>net6.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)</AssetTargetFallback>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<EntryPointProjectUniqueName>..\DN Henkel Vision\DN Henkel Vision.csproj</EntryPointProjectUniqueName>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<PackageCertificateThumbprint>E70786B55C49D6CE24F614F6B90FFADE4699715B</PackageCertificateThumbprint>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
<DefaultLanguage>sk-SK</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
<DefaultLanguage>sk-SK</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<DefaultLanguage>sk-SK</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<DefaultLanguage>sk-SK</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DefaultLanguage>sk-SK</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<DefaultLanguage>sk-SK</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<None Include="DN Henkel Vision %28Package%29_TemporaryKey.pfx" />
<Content Include="Images\LargeTile.scale-100.png" />
<Content Include="Images\LargeTile.scale-125.png" />
<Content Include="Images\LargeTile.scale-150.png" />
Expand Down
15 changes: 8 additions & 7 deletions DN Henkel Vision/DN Henkel Vision (Package)/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

<Identity
Name="d61de81d-cd85-4388-bdcb-72407fecb779"
Publisher="CN=juhas"
Version="1.0.0.0" />
Publisher="CN=DN Foundation"
Version="2023.2.1.1407" />

<Properties>
<DisplayName>DN Henkel Vision (Package)</DisplayName>
<PublisherDisplayName>juhas</PublisherDisplayName>
<DisplayName>DN Henkel Vision</DisplayName>
<PublisherDisplayName>DN Foundation</PublisherDisplayName>
<Logo>Images\StoreLogo.png</Logo>
</Properties>

Expand All @@ -23,16 +23,17 @@
</Dependencies>

<Resources>
<Resource Language="x-generate"/>
<Resource Language="en-US"/>
<Resource Language="sk-SK"/>
</Resources>

<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="DN Henkel Vision Preview"
Description="DN Henkel Vision"
DisplayName="DN Henkel Vision"
Description="DN Henkel Vision is a cutting-edge application designed to simplify fault registration and accelerate classification using advanced AI technology. Streamline your workflow, save time, and boost productivity with this intuitive and efficient solution. Experience seamless fault management like never before with DN Henkel Vision."
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png">
Expand Down
5 changes: 4 additions & 1 deletion DN Henkel Vision/DN Henkel Vision/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.UI.Xaml;
using DN_Henkel_Vision.Memory;
using Microsoft.UI.Xaml;
using System;
using System.Threading;

Expand All @@ -16,6 +17,8 @@ public partial class App
/// </summary>
public App()
{
Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = Drive.SafeLanguage();

this.InitializeComponent();
if (!mutex.WaitOne(TimeSpan.Zero, true))
{
Expand Down
6 changes: 3 additions & 3 deletions DN Henkel Vision/DN Henkel Vision/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

using System.Reflection;

[assembly: AssemblyVersion("2023.1.2.1390")]
[assembly: AssemblyFileVersion("2023.1.2.1390")]
[assembly: AssemblyInformationalVersion("2023.1.2.1390")]
[assembly: AssemblyVersion("2023.2.1.1406")]
[assembly: AssemblyFileVersion("2023.2.1.1406")]
[assembly: AssemblyInformationalVersion("2023.2.1.1406")]
2 changes: 1 addition & 1 deletion DN Henkel Vision/DN Henkel Vision/AssemblyInfo.tt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ using System.Reflection;
int Patch = 0;

int Major = (int)DateTime.Now.Year;
int Minor = 1;
int Minor = 2;
#>
1 change: 1 addition & 0 deletions DN Henkel Vision/DN Henkel Vision/DN Henkel Vision.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</PropertyGroup>
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<IsPublishable>True</IsPublishable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<Optimize>False</Optimize>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
Grid.Column="1"/>
<TextBlock
x:Name="ApplicationDevState"
Text="Preview"
Text=""
Margin="3,15,0,0"
FontSize="12"
Foreground="{ThemeResource TextFillColorSecondary}"
Expand Down
11 changes: 6 additions & 5 deletions DN Henkel Vision/DN Henkel Vision/Interface/Splash.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
FontSize="12"
Grid.Column="1"/>
<TextBlock
x:Name="ApplicationDevState" Text="Preview"
Margin="3,15,0,0"
FontSize="12"
Foreground="{ThemeResource TextFillColorSecondary}"
Grid.Column="2"/>
x:Name="ApplicationDevState"
Text=""
Margin="3,15,0,0"
FontSize="12"
Foreground="{ThemeResource TextFillColorSecondary}"
Grid.Column="2"/>
</Grid>
<Image
Source="ms-appx:///Assets/Tiles/StoreLogo.scale-400.png"
Expand Down
6 changes: 4 additions & 2 deletions DN Henkel Vision/DN Henkel Vision/Interface/Splash.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using WinRT.Interop;
using DN_Henkel_Vision.Memory;
using System.ComponentModel;
using System.Globalization;
using Microsoft.Windows.AppLifecycle;

namespace DN_Henkel_Vision.Interface
{
Expand All @@ -24,13 +26,13 @@ public sealed partial class Splash : Window
/// Initializes a new instance of the <see cref="Splash"/> class.
/// </summary>
public Splash()
{
{
s_loader = this;

IntPtr hWnd = WindowNative.GetWindowHandle(this);

DisplayArea area = DisplayArea.GetFromWindowId(Win32Interop.GetWindowIdFromWindow(hWnd), DisplayAreaFallback.Nearest);

this.InitializeComponent();
OverlappedPresenter presenter = GetAppWindowAndPresenter();
presenter.IsMaximizable = false;
Expand Down
2 changes: 1 addition & 1 deletion DN Henkel Vision/DN Henkel Vision/Interface/Welcome.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
CornerRadius="0,0,0,4">

<TextBlock
Text="Welcome"
x:Uid="T_Welcome"
FontSize="{ThemeResource TitleTextBlockFontSize}"
FontWeight="{ThemeResource InfoBarTitleFontWeight}"
Margin="32,82,0,0"/>
Expand Down
11 changes: 10 additions & 1 deletion DN Henkel Vision/DN Henkel Vision/Memory/Drive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Windows.Storage;
using DN_Henkel_Vision.Interface;
using Microsoft.UI.Xaml;
using System.Globalization;

namespace DN_Henkel_Vision.Memory
{
Expand All @@ -24,7 +25,8 @@ internal class Drive
internal static readonly string s_orders = $"{Folder}\\Files\\Orders\\";
internal static readonly string s_registry = $"{Folder}\\Files\\Registry\\Registry.dntf";
internal static readonly string s_exports = $"{Folder}\\Files\\Registry\\Exports.dntf";
internal static readonly string s_trainees = $"{Folder}\\Files\\Trainee\\";
internal static readonly string s_trainees = $"{Folder}\\Files\\Trainee\\";
internal static readonly string s_language = $"{Folder}\\Files\\Language.dnlf";

#endregion

Expand Down Expand Up @@ -451,6 +453,13 @@ public static ElementTheme SafeTheme()
}
}

public static string SafeLanguage()
{
if (!File.Exists(s_language)) return CultureInfo.CurrentUICulture.Name;

return Read(s_language);
}

public static void WriteTrainees()
{
string correct = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,8 @@
<value>Settings</value>
<comment>Header Of The Settings Page</comment>
</data>
<data name="T_Welcome.Text" xml:space="preserve">
<value>Welcome</value>
<comment>Header Of The Welcome Page</comment>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,8 @@
<value>Nastavenia</value>
<comment>Header Of The Settings Page</comment>
</data>
<data name="T_Welcome.Text" xml:space="preserve">
<value>Vitajte</value>
<comment>Header Of The Welcome Page</comment>
</data>
</root>

0 comments on commit 4e6fdf0

Please sign in to comment.