From 5f630f3bc1046b4f567a96f1074300ee3e1e2b01 Mon Sep 17 00:00:00 2001
From: valnoxy
Date: Sat, 18 Mar 2023 18:15:23 +0100
Subject: [PATCH 01/17] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20Ignore=20file=20o?=
=?UTF-8?q?utput?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 768fdec..bccfd0e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -384,4 +384,5 @@ Temporary Items
### macOS Patch ###
# iCloud generated files
-*.icloud
\ No newline at end of file
+*.icloud
+CheckIP.Windows/Setup/Output/
From b98bd9c12b13069668fadff12648e36e91269937 Mon Sep 17 00:00:00 2001
From: valnoxy
Date: Sat, 18 Mar 2023 18:23:09 +0100
Subject: [PATCH 02/17] =?UTF-8?q?=20=C2=A9=EF=B8=8F=20Update=20copyright?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index ffc41a0..e7823fc 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,8 @@
+
+
## About CheckIP
CheckIP is a GUI based application which can provide much information about an IP address.
@@ -50,9 +52,19 @@ GNU General Public License for more details.
---
+
+
```Google Play and the Google Play logo are trademarks of Google LLC.```
```Apple, the Apple logo, Apple Pay, Apple Pencil, Apple TV, Apple Watch, iPad, iPhone, iPod, iPod touch, iTunes, the iTunes logo, Mac, iMac, MacBook, MacBook Pro, MacBook Air, macOS, QuickTime, Siri, watchOS, and 3D Touch are trademarks of Apple Inc., registered in the U.S. and other countries.```
+
+
---
-```Copyright (c) 2018 - 2022 valnoxy. By Jonas G. ```
+
+© 2018 - 2023 valnoxy. All Rights Reserved.
+
+By Jonas Günner <jonas@exploitox.de>
+
+
+
Date: Sat, 18 Mar 2023 20:26:03 +0100
Subject: [PATCH 03/17] =?UTF-8?q?=F0=9F=8C=8E=20Localization=20functionali?=
=?UTF-8?q?ty?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
See issue #5
---
CheckIP.Windows/CheckIP/CheckIP.csproj | 8 +-
.../CheckIP/Common/LocalizationManager.cs | 32 ++++++++
.../Localization/ResourceDictionary.xaml | 39 ++++++++++
CheckIP.Windows/CheckIP/Pages/About.xaml | 23 +++---
CheckIP.Windows/CheckIP/Pages/App.xaml | 3 +-
CheckIP.Windows/CheckIP/Pages/FetchIP.xaml | 64 ++++++++-------
CheckIP.Windows/CheckIP/Pages/FetchIP.xaml.cs | 72 +++++++++--------
CheckIP.Windows/CheckIP/Pages/Main.xaml | 9 +--
CheckIP.Windows/CheckIP/Pages/Main.xaml.cs | 26 +++++--
CheckIP.Windows/CheckIP/Pages/MyIP.xaml | 48 ++++++------
CheckIP.Windows/CheckIP/Pages/MyIP.xaml.cs | 77 ++++++++++---------
README.md | 32 +++++++-
12 files changed, 272 insertions(+), 161 deletions(-)
create mode 100644 CheckIP.Windows/CheckIP/Common/LocalizationManager.cs
create mode 100644 CheckIP.Windows/CheckIP/Localization/ResourceDictionary.xaml
diff --git a/CheckIP.Windows/CheckIP/CheckIP.csproj b/CheckIP.Windows/CheckIP/CheckIP.csproj
index eb0cc57..04ec1ca 100644
--- a/CheckIP.Windows/CheckIP/CheckIP.csproj
+++ b/CheckIP.Windows/CheckIP/CheckIP.csproj
@@ -1,4 +1,4 @@
-
+
WinExe
@@ -10,7 +10,7 @@
Get more information about an IP address.
Copyright © 2018 - 2023 Exploitox. All rights reserved.
https://github.com/valnoxy/checkip
- 2.2.0
+ 2.2.1
AnyCPU;ARM32;ARM64;x64;x86
@@ -286,6 +286,7 @@
+
@@ -576,6 +577,9 @@
+
+ MSBuild:Compile
+
\ No newline at end of file
diff --git a/CheckIP.Windows/CheckIP/Common/LocalizationManager.cs b/CheckIP.Windows/CheckIP/Common/LocalizationManager.cs
new file mode 100644
index 0000000..640f6b8
--- /dev/null
+++ b/CheckIP.Windows/CheckIP/Common/LocalizationManager.cs
@@ -0,0 +1,32 @@
+using System.Windows;
+
+namespace CheckIP.Common
+{
+ public class LocalizationManager
+ {
+ public static string LocalizeError(string errorMessage)
+ {
+ switch (errorMessage)
+ {
+ case "Reserved range":
+ Application.Current.Dispatcher.Invoke(() =>
+ {
+ errorMessage = (string)Application.Current.MainWindow.FindResource("ErrorReservedRange");
+ });
+ if (string.IsNullOrEmpty(errorMessage))
+ errorMessage = "Error: Reserved range";
+ break;
+ case "invalid query":
+ Application.Current.Dispatcher.Invoke(() =>
+ {
+ errorMessage = (string)Application.Current.MainWindow.FindResource("ErrorInvalidQuery");
+ });
+ if (string.IsNullOrEmpty(errorMessage))
+ errorMessage = "Error: Invalid query";
+ break;
+ }
+ return errorMessage;
+
+ }
+ }
+}
diff --git a/CheckIP.Windows/CheckIP/Localization/ResourceDictionary.xaml b/CheckIP.Windows/CheckIP/Localization/ResourceDictionary.xaml
new file mode 100644
index 0000000..9e01954
--- /dev/null
+++ b/CheckIP.Windows/CheckIP/Localization/ResourceDictionary.xaml
@@ -0,0 +1,39 @@
+
+ IP Address
+ Fetch
+ Information
+ City / Country
+ Postal
+ Timezone
+ Latitude
+ Longitude
+ ISP or Organization
+ ASN
+ Is Mobile
+ Is Proxy
+ Is Hosting
+ Export Information
+ Unknown
+ My IP
+
+
+ About
+ About this App
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ Third Party Libraries
+ List of all used open-source libraries and images.
+ Source Code on GitHub
+ Homepage
+ License
+
+
+ Error: Reserved range
+ Error: This is not a valid IP address
+ Error: No connection to server
+ Error: Invalid query
+
\ No newline at end of file
diff --git a/CheckIP.Windows/CheckIP/Pages/About.xaml b/CheckIP.Windows/CheckIP/Pages/About.xaml
index 0245a8a..1e02a82 100644
--- a/CheckIP.Windows/CheckIP/Pages/About.xaml
+++ b/CheckIP.Windows/CheckIP/Pages/About.xaml
@@ -38,7 +38,7 @@
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
+
-
+
+ Text="{DynamicResource ThirdPartyLibraries}" />
+ Text="{DynamicResource ThirdPartyLibrariesDescription}" />
@@ -109,19 +104,19 @@
diff --git a/CheckIP.Windows/CheckIP/Pages/App.xaml b/CheckIP.Windows/CheckIP/Pages/App.xaml
index 00cc787..03acf15 100644
--- a/CheckIP.Windows/CheckIP/Pages/App.xaml
+++ b/CheckIP.Windows/CheckIP/Pages/App.xaml
@@ -1,4 +1,4 @@
-
+