Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: change restart lable #34

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 3 additions & 4 deletions Source/EyesGuard/Views/Pages/Settings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,9 @@
Grid.Column="2"
Margin="5,0,0,10"
Orientation="Horizontal">
<TextBlock
FontSize="10"
Foreground="#FFCBCBCB"
Text="{lang:LocalizedString 'EyesGuard.Settings.LanguageSettings.RestartRequired'}" />
<TextBlock x:Name="RestartRequired"
Foreground="#FFEE2828"
Text="{lang:LocalizedString EyesGuard.Settings.LanguageSettings.RestartRequired}" FontSize="10" FontWeight="Bold" />
</StackPanel>

<StackPanel
Expand Down
8 changes: 6 additions & 2 deletions Source/EyesGuard/Views/Pages/Settings.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,13 @@ private void startupCheckbox_Click(object sender, RoutedEventArgs e)
private void LanguagesCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
try
{
{
MaintainersLinks.Inlines.Clear();
var translators = FsLanguageLoader.CreateEnvironment(((LanguageHolder)LanguagesCombo.SelectedItem).Name).Meta.Translators;
LocalizedEnvironment environment = FsLanguageLoader.CreateEnvironment(((LanguageHolder)LanguagesCombo.SelectedItem).Name);
var translators = environment.Meta.Translators;

RestartRequired.Text = environment.Translation.EyesGuard.Settings.LanguageSettings.RestartRequired;

for (int i = 0; i < translators.Count; i++)
{
var translator = translators[i];
Expand Down