Projects STRLCPY NETworkManager Commits 89a178ed
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    Source/NETworkManager/ViewModels/SettingsLanguageViewModel.cs
    skipped 115 lines
    116 116   {
    117 117   Search = string.Empty;
    118 118   }
    119  - 
    120  - public ICommand OpenWebsiteCommand => new RelayCommand(OpenWebsiteAction);
    121  - 
    122  - private static void OpenWebsiteAction(object url)
    123  - {
    124  - ExternalProcessStarter.OpenUrl((string)url);
    125  - }
    126 119   #endregion
    127 120   }
    128 121  }
  • ■ ■ ■ ■ ■
    Source/NETworkManager/Views/SettingsLanguageView.xaml
    skipped 3 lines
    4 4   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    5 5   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    6 6   xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"
    7  - xmlns:resources="clr-namespace:NETworkManager.Properties"
    8 7   xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
    9 8   xmlns:viewModels="clr-namespace:NETworkManager.ViewModels"
    10  - xmlns:test="clr-namespace:NETworkManager.Localization;assembly=NETworkManager.Localization"
    11 9   xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
    12 10   mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:SettingsLanguageViewModel}">
    13 11   <UserControl.Resources>
    skipped 7 lines
    21 19   <RowDefinition Height="10" />
    22 20   <RowDefinition Height="*" />
    23 21   <RowDefinition Height="10" />
    24  - <RowDefinition Height="Auto" />
    25 22   <RowDefinition Height="Auto" />
    26 23   </Grid.RowDefinitions>
    27 24   <Grid Grid.Row="0">
    skipped 17 lines
    45 42   <ColumnDefinition Width="*" />
    46 43   <ColumnDefinition Width="10" />
    47 44   <ColumnDefinition Width="Auto" />
    48  - <ColumnDefinition Width="10" />
    49  - <ColumnDefinition Width="80" />
    50 45   </Grid.ColumnDefinitions>
    51 46   <Image Grid.Column="0" Width="Auto" Height="48" HorizontalAlignment="Center" VerticalAlignment="Center">
    52 47   <Image.Source>
    skipped 41 lines
    94 89   <TextBlock Text="{x:Static localization:Strings.Community}" VerticalAlignment="Center" Foreground="{DynamicResource MahApps.Brushes.Gray3}" Style="{StaticResource DefaultTextBlock}" Margin="10,0,0,0"/>
    95 90   </StackPanel>
    96 91   </Border>
    97  - <TextBlock Grid.Column="5" Grid.Row="0" Text="{Binding PercentTranslated, StringFormat={}{0} %}" HorizontalAlignment="Right" Style="{StaticResource CenterTextBlock}" />
    98 92   </Grid>
    99 93   </DataTemplate>
    100 94   </ListView.ItemTemplate>
    skipped 31 lines
    132 126   <TextBlock Text="{x:Static localization:Strings.SearchedLanguageNotFound}" Style="{DynamicResource MessageTextBlock}" />
    133 127   </StackPanel>
    134 128   </Grid>
    135  - <StackPanel Grid.Row="4" Orientation="Horizontal" ToolTip="{x:Static localization:Strings.ToolTip_TransifexProjectUrl}">
    136  - <StackPanel.InputBindings>
    137  - <MouseBinding Gesture="LeftClick" Command="{Binding OpenWebsiteCommand}" CommandParameter="{x:Static resources:Resources.NETworkManager_TranslationUrl}" />
    138  - </StackPanel.InputBindings>
    139  - <StackPanel.Style>
    140  - <Style TargetType="{x:Type StackPanel}">
    141  - <Setter Property="TextBlock.Foreground" Value="{DynamicResource MahApps.Brushes.Accent}" />
    142  - <Setter Property="Cursor" Value="Hand" />
    143  - <Style.Triggers>
    144  - <Trigger Property="IsMouseOver" Value="True">
    145  - <Setter Property="TextBlock.Foreground" Value="{DynamicResource MahApps.Brushes.Text}" />
    146  - </Trigger>
    147  - </Style.Triggers>
    148  - </Style>
    149  - </StackPanel.Style>
    150  - <Rectangle Width="16" Height="20">
    151  - <Rectangle.OpacityMask>
    152  - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}"/>
    153  - </Rectangle.OpacityMask>
    154  - <Rectangle.Style>
    155  - <Style TargetType="{x:Type Rectangle}">
    156  - <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Accent}" />
    157  - <Style.Triggers>
    158  - <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type StackPanel}}, Path=IsMouseOver}" Value="True">
    159  - <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Text}" />
    160  - </DataTrigger>
    161  - </Style.Triggers>
    162  - </Style>
    163  - </Rectangle.Style>
    164  - </Rectangle>
    165  - <TextBlock Text="{x:Static localization:Strings.HelpTranslateOnTransifex}" FontSize="14" Margin="10,0,0,0" />
    166  - </StackPanel>
    167  - <Grid Grid.Row="5" Visibility="{Binding RestartRequired, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0">
     129 + <Grid Grid.Row="4" Visibility="{Binding RestartRequired, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}">
    168 130   <Grid.ColumnDefinitions>
    169 131   <ColumnDefinition Width="Auto" />
    170 132   <ColumnDefinition Width="5" />
    skipped 12 lines
  • ■ ■ ■ ■ ■
    Source/NETworkManager.Localization/LocalizationInfo.cs
    skipped 27 lines
    28 28   public string Code { get; set; }
    29 29   
    30 30   /// <summary>
    31  - /// Percentage of how many strings are translated.
    32  - /// </summary>
    33  - public double PercentTranslated { get; set; }
    34  - 
    35  - /// <summary>
    36 31   /// Indicates whether the language has been translated by the maintainer or the community
    37 32   /// </summary>
    38 33   public bool IsOfficial { get; set; }
    skipped 22 lines
    61 56   /// <param name="nativeName"><see cref="NativeName"/>.</param>
    62 57   /// <param name="flagUri"><see cref="FlagUri"/>.</param>
    63 58   /// <param name="code"><see cref="Code"/>.</param>
    64  - /// <param name="percentTranslated"><see cref="PercentTranslated"/>.</param>
    65 59   /// <param name="isOfficial"><see cref="IsOfficial"/>.</param>
    66  - public LocalizationInfo(string name, string nativeName, Uri flagUri, string code, double percentTranslated, bool isOfficial = false)
     60 + public LocalizationInfo(string name, string nativeName, Uri flagUri, string code, bool isOfficial = false)
    67 61   {
    68 62   Name = name;
    69 63   NativeName = nativeName;
    70 64   FlagUri = flagUri;
    71 65   Code = code;
    72  - PercentTranslated = percentTranslated;
    73 66   IsOfficial = isOfficial;
    74 67   }
    75 68   }
    skipped 2 lines
  • ■ ■ ■ ■ ■ ■
    Source/NETworkManager.Localization/LocalizationManager.cs
    skipped 55 lines
    56 56   public static List<LocalizationInfo> List => new List<LocalizationInfo>
    57 57   {
    58 58   // Offical
    59  - new LocalizationInfo("English", "English", GetImageUri("en-US"), "en-US", 100, true),
    60  - new LocalizationInfo("German (Germany)", "Deutsch", GetImageUri("de-DE"), "de-DE", 100, true),
     59 + new LocalizationInfo("English", "English", GetImageUri("en-US"), "en-US", true),
     60 + new LocalizationInfo("German (Germany)", "Deutsch", GetImageUri("de-DE"), "de-DE", true),
    61 61   
    62 62   // Community
    63  - new LocalizationInfo("Chinese (China)", "大陆简体", GetImageUri("zh-CN"), "zh-CN", 65.39),
    64  - new LocalizationInfo("Chinese (Taiwan)", "台灣正體", GetImageUri("zh-TW"), "zh-TW", 82.27),
    65  - new LocalizationInfo("Dutch (Netherlands)", "Nederlands", GetImageUri("nl-NL"), "nl-NL", 36.73),
    66  - new LocalizationInfo("French (France)", "Français", GetImageUri("fr-FR"), "fr-FR", 97.45),
    67  - new LocalizationInfo("Hungarian (Hungary)", "Magyar", GetImageUri("hu-HU"), "hu-HU", 7.11),
    68  - new LocalizationInfo("Italian (Italy)", "Italiano", GetImageUri("it-IT"), "it-IT", 100),
    69  - new LocalizationInfo("Polish (Poland)", "Język polski", GetImageUri("pl-PL"), "pl-PL", 97.45),
    70  - new LocalizationInfo("Portuguese (Brazil)", "português brasileiro", GetImageUri("pt-BR"), "pt-BR", 100),
    71  - new LocalizationInfo("Russian (Russia)", "Русский", GetImageUri("ru-RU"), "ru-RU", 68.26),
    72  - new LocalizationInfo("Slovenian (Slovenia)", "slovenski jezik", GetImageUri("sl-SI"), "sl-SI", 97.45),
    73  - new LocalizationInfo("Spanish (Spain)", "Español", GetImageUri("es-ES"), "es-ES", 98.73)
     63 + new LocalizationInfo("Chinese (China)", "大陆简体", GetImageUri("zh-CN"), "zh-CN"),
     64 + new LocalizationInfo("Chinese (Taiwan)", "台灣正體", GetImageUri("zh-TW"), "zh-TW"),
     65 + new LocalizationInfo("Dutch (Netherlands)", "Nederlands", GetImageUri("nl-NL"), "nl-NL"),
     66 + new LocalizationInfo("French (France)", "Français", GetImageUri("fr-FR"), "fr-FR"),
     67 + new LocalizationInfo("Hungarian (Hungary)", "Magyar", GetImageUri("hu-HU"), "hu-HU"),
     68 + new LocalizationInfo("Italian (Italy)", "Italiano", GetImageUri("it-IT"), "it-IT"),
     69 + new LocalizationInfo("Korean (Korea)", "",GetImageUri("ko-KR"),"ko-KR"),
     70 + new LocalizationInfo("Polish (Poland)", "Język polski", GetImageUri("pl-PL"), "pl-PL"),
     71 + new LocalizationInfo("Portuguese (Brazil)", "português brasileiro", GetImageUri("pt-BR"), "pt-BR"),
     72 + new LocalizationInfo("Russian (Russia)", "Русский", GetImageUri("ru-RU"), "ru-RU"),
     73 + new LocalizationInfo("Slovenian (Slovenia)", "slovenski jezik", GetImageUri("sl-SI"), "sl-SI"),
     74 + new LocalizationInfo("Spanish (Spain)", "Español", GetImageUri("es-ES"), "es-ES")
    74 75   };
    75 76   
    76 77   /// <summary>
    skipped 54 lines
  • ■ ■ ■ ■ ■ ■
    Source/NETworkManager.Localization/NETworkManager.Localization.csproj
    skipped 16 lines
    17 17   <None Remove="Resources\Flags\fr-FR.png" />
    18 18   <None Remove="Resources\Flags\hu-HU.png" />
    19 19   <None Remove="Resources\Flags\it-IT.png" />
     20 + <None Remove="Resources\Flags\ko-KR.png" />
    20 21   <None Remove="Resources\Flags\nl-NL.png" />
    21 22   <None Remove="Resources\Flags\pl-PL.png" />
    22 23   <None Remove="Resources\Flags\pt-BR.png" />
    skipped 12 lines
    35 36   <Resource Include="Resources\Flags\fr-FR.png" />
    36 37   <Resource Include="Resources\Flags\hu-HU.png" />
    37 38   <Resource Include="Resources\Flags\it-IT.png" />
     39 + <Resource Include="Resources\Flags\ko-KR.png" />
    38 40   <Resource Include="Resources\Flags\nl-NL.png" />
    39 41   <Resource Include="Resources\Flags\pl-PL.png" />
    40 42   <Resource Include="Resources\Flags\pt-BR.png" />
    skipped 41 lines
  • Source/NETworkManager.Localization/Resources/Flags/ko-KR.png
  • ■ ■ ■ ■ ■ ■
    Source/NETworkManager.Localization/Resources/Strings.Designer.cs
    skipped 3361 lines
    3362 3362   }
    3363 3363  
    3364 3364   /// <summary>
    3365  - /// Looks up a localized string similar to Help translate on transifex.
    3366  - /// </summary>
    3367  - public static string HelpTranslateOnTransifex {
    3368  - get {
    3369  - return ResourceManager.GetString("HelpTranslateOnTransifex", resourceCulture);
    3370  - }
    3371  - }
    3372  -
    3373  - /// <summary>
    3374 3365   /// Looks up a localized string similar to Hidden applications.
    3375 3366   /// </summary>
    3376 3367   public static string HiddenApplications {
    skipped 5214 lines
  • ■ ■ ■ ■ ■ ■
    Source/NETworkManager.Localization/Resources/Strings.resx
    skipped 2126 lines
    2127 2127   <data name="Official" xml:space="preserve">
    2128 2128   <value>Official</value>
    2129 2129   </data>
    2130  - <data name="HelpTranslateOnTransifex" xml:space="preserve">
    2131  - <value>Help translate on transifex</value>
    2132  - </data>
    2133 2130   <data name="NetworkConnectionType" xml:space="preserve">
    2134 2131   <value>Network connection type</value>
    2135 2132   </data>
    skipped 847 lines
  • ■ ■ ■ ■ ■
    docs/04_Changelog.md
    skipped 16 lines
    17 17  |[:package: Archiv](https://github.com/BornToBeRoot/NETworkManager/releases/download/2021.2.17.0/NETworkManager_2021.2.17.0_Archiv.zip){:target="_blank"}| `9996197F0F58A7A23F0A78DB7336D4201F98F1C6E8CCD7D02BF97095C5A6DDA8` |
    18 18   
    19 19  ## What's new?
     20 +- Korean language added [#584](https://github.com/BornToBeRoot/NETworkManager/issues/584){:target="_blank"}
    20 21   
    21 22  ## Improvements
    22 23   
    skipped 6 lines
    29 30  ## Other
    30 31  - Code refactored / cleanup
    31 32   - async void with async task replaced [#383](https://github.com/BornToBeRoot/NETworkManager/issues/383){:target="_blank"}
    32  - 
     33 +- Percent completed in the settings\language removed, because the statistics are broken and hard to maintain because of the transifex github integration [#584](https://github.com/BornToBeRoot/NETworkManager/issues/584){:target="_blank"}
    33 34  -->
    34 35   
    35 36  # Version 2021.3.14.0
    skipped 483 lines
  • ■ ■ ■ ■ ■
    docs/05_Languages.md
    skipped 18 lines
    19 19  - French
    20 20  - Hungarian
    21 21  - Italy
     22 +- Korean
    22 23  - Polish
    23 24  - Portuguese (Brazilian)
    24 25  - Russian
    skipped 5 lines
Please wait...
Page is in error, reload to recover