diff --git a/WeatherProphet/Icons/Afrikaans.png b/WeatherProphet/Icons/Afrikaans.png new file mode 100644 index 0000000..647ed06 Binary files /dev/null and b/WeatherProphet/Icons/Afrikaans.png differ diff --git a/WeatherProphet/Icons/Albanian.png b/WeatherProphet/Icons/Albanian.png new file mode 100644 index 0000000..8a32b9d Binary files /dev/null and b/WeatherProphet/Icons/Albanian.png differ diff --git a/WeatherProphet/Icons/Arabic.png b/WeatherProphet/Icons/Arabic.png new file mode 100644 index 0000000..748fd45 Binary files /dev/null and b/WeatherProphet/Icons/Arabic.png differ diff --git a/WeatherProphet/Icons/Azerbaijani.png b/WeatherProphet/Icons/Azerbaijani.png new file mode 100644 index 0000000..738090e Binary files /dev/null and b/WeatherProphet/Icons/Azerbaijani.png differ diff --git a/WeatherProphet/Icons/Basque.png b/WeatherProphet/Icons/Basque.png new file mode 100644 index 0000000..c4a0f9f Binary files /dev/null and b/WeatherProphet/Icons/Basque.png differ diff --git a/WeatherProphet/Icons/Bulgarian.png b/WeatherProphet/Icons/Bulgarian.png new file mode 100644 index 0000000..8229c61 Binary files /dev/null and b/WeatherProphet/Icons/Bulgarian.png differ diff --git a/WeatherProphet/Icons/Catalan.png b/WeatherProphet/Icons/Catalan.png new file mode 100644 index 0000000..f84dcf4 Binary files /dev/null and b/WeatherProphet/Icons/Catalan.png differ diff --git a/WeatherProphet/Icons/Chinese.png b/WeatherProphet/Icons/Chinese.png new file mode 100644 index 0000000..621c25c Binary files /dev/null and b/WeatherProphet/Icons/Chinese.png differ diff --git a/WeatherProphet/Icons/Croatian.png b/WeatherProphet/Icons/Croatian.png new file mode 100644 index 0000000..3727739 Binary files /dev/null and b/WeatherProphet/Icons/Croatian.png differ diff --git a/WeatherProphet/Icons/Czech.png b/WeatherProphet/Icons/Czech.png new file mode 100644 index 0000000..affb578 Binary files /dev/null and b/WeatherProphet/Icons/Czech.png differ diff --git a/WeatherProphet/Icons/Danish.png b/WeatherProphet/Icons/Danish.png new file mode 100644 index 0000000..bb66c8b Binary files /dev/null and b/WeatherProphet/Icons/Danish.png differ diff --git a/WeatherProphet/Icons/Dutch.png b/WeatherProphet/Icons/Dutch.png new file mode 100644 index 0000000..06fe4c8 Binary files /dev/null and b/WeatherProphet/Icons/Dutch.png differ diff --git a/WeatherProphet/Icons/English.png b/WeatherProphet/Icons/English.png new file mode 100644 index 0000000..e2f5680 Binary files /dev/null and b/WeatherProphet/Icons/English.png differ diff --git a/WeatherProphet/Icons/Finnish.png b/WeatherProphet/Icons/Finnish.png new file mode 100644 index 0000000..3e2a12e Binary files /dev/null and b/WeatherProphet/Icons/Finnish.png differ diff --git a/WeatherProphet/Icons/French.png b/WeatherProphet/Icons/French.png new file mode 100644 index 0000000..3053a95 Binary files /dev/null and b/WeatherProphet/Icons/French.png differ diff --git a/WeatherProphet/Icons/Galician.png b/WeatherProphet/Icons/Galician.png new file mode 100644 index 0000000..ecceba5 Binary files /dev/null and b/WeatherProphet/Icons/Galician.png differ diff --git a/WeatherProphet/Icons/German.png b/WeatherProphet/Icons/German.png new file mode 100644 index 0000000..1c94138 Binary files /dev/null and b/WeatherProphet/Icons/German.png differ diff --git a/WeatherProphet/Icons/Greek.png b/WeatherProphet/Icons/Greek.png new file mode 100644 index 0000000..5c0c18f Binary files /dev/null and b/WeatherProphet/Icons/Greek.png differ diff --git a/WeatherProphet/Icons/Hebrew.png b/WeatherProphet/Icons/Hebrew.png new file mode 100644 index 0000000..5132201 Binary files /dev/null and b/WeatherProphet/Icons/Hebrew.png differ diff --git a/WeatherProphet/Icons/Hindi.png b/WeatherProphet/Icons/Hindi.png new file mode 100644 index 0000000..1c1aa50 Binary files /dev/null and b/WeatherProphet/Icons/Hindi.png differ diff --git a/WeatherProphet/Icons/Hungarian.png b/WeatherProphet/Icons/Hungarian.png new file mode 100644 index 0000000..0a2c54b Binary files /dev/null and b/WeatherProphet/Icons/Hungarian.png differ diff --git a/WeatherProphet/Icons/Indonesian.png b/WeatherProphet/Icons/Indonesian.png new file mode 100644 index 0000000..06281d2 Binary files /dev/null and b/WeatherProphet/Icons/Indonesian.png differ diff --git a/WeatherProphet/Icons/Italian.png b/WeatherProphet/Icons/Italian.png new file mode 100644 index 0000000..ee6c2a1 Binary files /dev/null and b/WeatherProphet/Icons/Italian.png differ diff --git a/WeatherProphet/Icons/Japanese.png b/WeatherProphet/Icons/Japanese.png new file mode 100644 index 0000000..a0194e7 Binary files /dev/null and b/WeatherProphet/Icons/Japanese.png differ diff --git a/WeatherProphet/Icons/Korean.png b/WeatherProphet/Icons/Korean.png new file mode 100644 index 0000000..ce91c99 Binary files /dev/null and b/WeatherProphet/Icons/Korean.png differ diff --git a/WeatherProphet/Icons/Latvian.png b/WeatherProphet/Icons/Latvian.png new file mode 100644 index 0000000..53fa4fe Binary files /dev/null and b/WeatherProphet/Icons/Latvian.png differ diff --git a/WeatherProphet/Icons/Lithuanian.png b/WeatherProphet/Icons/Lithuanian.png new file mode 100644 index 0000000..c6b5afb Binary files /dev/null and b/WeatherProphet/Icons/Lithuanian.png differ diff --git a/WeatherProphet/Icons/Macedonian.png b/WeatherProphet/Icons/Macedonian.png new file mode 100644 index 0000000..2f40f43 Binary files /dev/null and b/WeatherProphet/Icons/Macedonian.png differ diff --git a/WeatherProphet/Icons/Norwegian.png b/WeatherProphet/Icons/Norwegian.png new file mode 100644 index 0000000..c1d3674 Binary files /dev/null and b/WeatherProphet/Icons/Norwegian.png differ diff --git a/WeatherProphet/Icons/Persian.png b/WeatherProphet/Icons/Persian.png new file mode 100644 index 0000000..1e8bf74 Binary files /dev/null and b/WeatherProphet/Icons/Persian.png differ diff --git a/WeatherProphet/Icons/Polish.png b/WeatherProphet/Icons/Polish.png new file mode 100644 index 0000000..61d7993 Binary files /dev/null and b/WeatherProphet/Icons/Polish.png differ diff --git a/WeatherProphet/Icons/PortuguesBr.png b/WeatherProphet/Icons/PortuguesBr.png new file mode 100644 index 0000000..2bef188 Binary files /dev/null and b/WeatherProphet/Icons/PortuguesBr.png differ diff --git a/WeatherProphet/Icons/Portuguese.png b/WeatherProphet/Icons/Portuguese.png new file mode 100644 index 0000000..2486cc0 Binary files /dev/null and b/WeatherProphet/Icons/Portuguese.png differ diff --git a/WeatherProphet/Icons/Romanian.png b/WeatherProphet/Icons/Romanian.png new file mode 100644 index 0000000..29c4bb1 Binary files /dev/null and b/WeatherProphet/Icons/Romanian.png differ diff --git a/WeatherProphet/Icons/Russian.png b/WeatherProphet/Icons/Russian.png new file mode 100644 index 0000000..cae143a Binary files /dev/null and b/WeatherProphet/Icons/Russian.png differ diff --git a/WeatherProphet/Icons/Serbian.png b/WeatherProphet/Icons/Serbian.png new file mode 100644 index 0000000..3a47b39 Binary files /dev/null and b/WeatherProphet/Icons/Serbian.png differ diff --git a/WeatherProphet/Icons/Slovak.png b/WeatherProphet/Icons/Slovak.png new file mode 100644 index 0000000..060c70f Binary files /dev/null and b/WeatherProphet/Icons/Slovak.png differ diff --git a/WeatherProphet/Icons/Slovenian.png b/WeatherProphet/Icons/Slovenian.png new file mode 100644 index 0000000..b3605a8 Binary files /dev/null and b/WeatherProphet/Icons/Slovenian.png differ diff --git a/WeatherProphet/Icons/Spanish.png b/WeatherProphet/Icons/Spanish.png new file mode 100644 index 0000000..96b5e0a Binary files /dev/null and b/WeatherProphet/Icons/Spanish.png differ diff --git a/WeatherProphet/Icons/Swedish.png b/WeatherProphet/Icons/Swedish.png new file mode 100644 index 0000000..5f1c5dc Binary files /dev/null and b/WeatherProphet/Icons/Swedish.png differ diff --git a/WeatherProphet/Icons/Thai.png b/WeatherProphet/Icons/Thai.png new file mode 100644 index 0000000..2273ad1 Binary files /dev/null and b/WeatherProphet/Icons/Thai.png differ diff --git a/WeatherProphet/Icons/Turkish.png b/WeatherProphet/Icons/Turkish.png new file mode 100644 index 0000000..a46ef0c Binary files /dev/null and b/WeatherProphet/Icons/Turkish.png differ diff --git a/WeatherProphet/Icons/Ukrainian.png b/WeatherProphet/Icons/Ukrainian.png new file mode 100644 index 0000000..6d34787 Binary files /dev/null and b/WeatherProphet/Icons/Ukrainian.png differ diff --git a/WeatherProphet/Icons/Vietnamese.png b/WeatherProphet/Icons/Vietnamese.png new file mode 100644 index 0000000..b7ca112 Binary files /dev/null and b/WeatherProphet/Icons/Vietnamese.png differ diff --git a/WeatherProphet/Language.cs b/WeatherProphet/Language.cs new file mode 100644 index 0000000..6f1f096 --- /dev/null +++ b/WeatherProphet/Language.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; + +namespace WeatherProphet +{ + public class Language + { + public string DisplayName { get; set; } + public string FlagIcon { get; set; } + + public Language(string displayName, string flagIcon) + { + DisplayName = displayName; + FlagIcon = flagIcon; + } + private static List GetAvailableLanguages() + { + var languages = new List(); + + foreach (var country in new List { "Afrikaans", "Albanian", "Arabic", "Azerbaijani", "Bulgarian", "Catalan", "Czech", "Danish", "German", "Greek", "English", + "Basque", "Persian (Farsi)", "Finnish", "French", "Galician", "Hebrew", "Hindi", "Croatian", "Hungarian", "Indonesian", "Italian", "Japanese", "Korean", "Latvian", + "Lithuanian", "Macedonian", "Norwegian", "Dutch", "Polish", "Portuguese", "Português Brasil", "Romanian", "Russian", "Swedish", "Slovak", "Slovenian", "Spanish", + "Serbian", "Thai", "Turkish", "Ukrainian", "Vietnamese", "Chinese Simplified", "Chinese Traditional", "Zulu" }) + languages.Add(new Language(country, $"/Icons/{country}.png")); + + return languages; + } + } +} diff --git a/WeatherProphet/MainWindow.xaml b/WeatherProphet/MainWindow.xaml index be3ef77..95cb478 100644 --- a/WeatherProphet/MainWindow.xaml +++ b/WeatherProphet/MainWindow.xaml @@ -14,23 +14,39 @@ -