Skip to content

Commit

Permalink
Localize ssh profiles gui
Browse files Browse the repository at this point in the history
  • Loading branch information
felixse committed Jun 16, 2019
1 parent 94855b7 commit 1b1e29c
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 58 deletions.
26 changes: 13 additions & 13 deletions FluentTerminal.App/Dialogs/SshInfoDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
</ContentDialog.Resources>
<Grid Width="500">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="140" />
<ColumnDefinition Width="22" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="8" />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
Expand All @@ -77,6 +77,7 @@
x:Uid="UserTextBox"
Grid.Row="0"
Grid.Column="0"
Width="140"
PlaceholderText="user"
Text="{Binding Username, Mode=TwoWay}" />
<TextBlock
Expand All @@ -101,7 +102,8 @@
x:Uid="PortTextBox"
Grid.Row="0"
Grid.Column="4"
Width="76"
Margin="0,0,4,0"
HorizontalAlignment="Stretch"
BeforeTextChanging="Port_OnBeforeTextChanging"
PlaceholderText="port"
Text="{Binding SshPort, Mode=TwoWay}" />
Expand All @@ -118,8 +120,8 @@
x:Uid="BrowseButton"
Grid.Row="1"
Grid.Column="4"
Width="76"
Margin="0,10,0,0"
Margin="0,10,4,0"
HorizontalAlignment="Stretch"
Click="BrowseButtonOnClick"
Content="Browse" />
<CheckBox
Expand Down Expand Up @@ -208,7 +210,7 @@
Visibility="{Binding UseMosh}" />

<TextBlock
x:Uid="TabColor1"
x:Uid="SshInfoDialog_TabColor"
Grid.Row="2"
Grid.Column="0"
Margin="0,8,8,0"
Expand Down Expand Up @@ -242,21 +244,19 @@
SelectedItem="{Binding SelectedTerminalTheme, Mode=TwoWay}" />

<CheckBox
x:Uid="UseConPtyCheckBox"
Grid.Row="4"
Grid.Column="0"
Grid.ColumnSpan="4"
Margin="0,8,0,0"
Content="Use ConPty"
Content="{x:Bind Converter={StaticResource I18NConverter}, ConverterParameter=UseConPty}"
IsChecked="{Binding UseConPty, Mode=TwoWay}" />

</Grid>
</controls:Expander>
<Grid
Grid.Row="4"
Grid.Column="0"
Grid.ColumnSpan="5"
Margin="0,10,0,0">
Grid.ColumnSpan="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
Expand All @@ -265,7 +265,7 @@
x:Uid="SaveShortcutButton"
Grid.Row="0"
Grid.Column="1"
Margin="0,0,2,0"
Margin="0,10,4,0"
HorizontalAlignment="Stretch"
Click="SaveLink_OnClick"
Content="Save Shortcut" />
Expand Down
48 changes: 42 additions & 6 deletions FluentTerminal.App/Strings/de/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ Fuzzy</comment>
<comment>ThemeSettings.xaml</comment>
</data>
<data name="CopiedNotification.Header" xml:space="preserve">
<value>Text kopiert</value>
<value>Informieren wenn Text kopiert wurde</value>
<comment>TerminalSettings.xaml</comment>
</data>
<data name="CopyOnSelect.Header" xml:space="preserve">
Expand Down Expand Up @@ -396,7 +396,7 @@ Fuzzy</comment>
<comment>ThemeSettings.xaml</comment>
</data>
<data name="KeyboardShortcut.Header" xml:space="preserve">
<value>Tastaturkürzel</value>
<value>Tastaturbelegung</value>
<comment>ShellProfileSettings.xaml</comment>
</data>
<data name="KeyboardShortcut1.Text" xml:space="preserve">
Expand All @@ -416,7 +416,7 @@ Fuzzy</comment>
<comment>ShellProfileSettings.xaml</comment>
</data>
<data name="LineEndingModeOnPaste.Text" xml:space="preserve">
<value>Zeilenenden-Anpassung bei Einfügen</value>
<value>Zeilenenden-Anpassung beim Einfügen:</value>
<comment>ShellProfileSettings.xaml</comment>
</data>
<data name="MiddleButtonAction.Text" xml:space="preserve">
Expand All @@ -436,7 +436,7 @@ Fuzzy</comment>
<comment>MouseSettings.xaml</comment>
</data>
<data name="MousePaste.Content" xml:space="preserve">
<value>EInfügen</value>
<value>Einfügen</value>
<comment>MouseSettings.xaml</comment>
</data>
<data name="NewTheme.Text" xml:space="preserve">
Expand Down Expand Up @@ -512,7 +512,7 @@ Fuzzy</comment>
<comment>TerminalSettings.xaml</comment>
</data>
<data name="Theme.Text" xml:space="preserve">
<value>Theme</value>
<value>Theme:</value>
<comment>ThemeSettings.xaml</comment>
</data>
<data name="ThemeAuthor.Header" xml:space="preserve">
Expand Down Expand Up @@ -637,7 +637,7 @@ Fuzzy</comment>
<comment>Command</comment>
</data>
<data name="Command.Clear" xml:space="preserve">
<value>Leeren</value>
<value>Bildschirm leeren</value>
<comment>Command</comment>
</data>
<data name="Command.CloseTab" xml:space="preserve">
Expand Down Expand Up @@ -832,4 +832,40 @@ Fuzzy</comment>
<data name="ConfirmDeleteProfile" xml:space="preserve">
<value>Sind Sie sicher dass Sie dieses Profil löschen wollen?</value>
</data>
<data name="Command.NewSshWindow" xml:space="preserve">
<value>Neues SSH-Fenster</value>
</data>
<data name="Command.SavedSshNewTab" xml:space="preserve">
<value>Neuer Tab mit SSH-Profil</value>
</data>
<data name="Command.SavedSshNewWindow" xml:space="preserve">
<value>Neues Fenster mit SSH-Profil</value>
</data>
<data name="Setting_SShProfiles.Content" xml:space="preserve">
<value>SSH-Profile</value>
<comment>Fuzzy</comment>
</data>
<data name="SshInfoDialog_TabColor.Text" xml:space="preserve">
<value>Tab-Farbe:</value>
<comment>Fuzzy</comment>
</data>
<data name="UseConPty" xml:space="preserve">
<value>ConPty verwenden</value>
<comment>Fuzzy</comment>
</data>
<data name="Username.Header" xml:space="preserve">
<value>Benutzer</value>
<comment>Fuzzy</comment>
</data>
<data name="MoshPortFrom.Header" xml:space="preserve">
<value>Von Port</value>
<comment>Fuzzy</comment>
</data>
<data name="MoshPortTo.Header" xml:space="preserve">
<value>bis Port</value>
<comment>Fuzzy</comment>
</data>
<data name="MoshPortRange.Text" xml:space="preserve">
<value>Mosh-Ports</value>
</data>
</root>
31 changes: 29 additions & 2 deletions FluentTerminal.App/Strings/en/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ Fuzzy</comment>
<comment>ShellProfileSettings.xaml</comment>
</data>
<data name="LineEndingModeOnPaste.Text" xml:space="preserve">
<value>Line ending translation mode on paste</value>
<value>Line ending translation mode on paste:</value>
<comment>ShellProfileSettings.xaml</comment>
</data>
<data name="MiddleButtonAction.Text" xml:space="preserve">
Expand Down Expand Up @@ -522,7 +522,7 @@ Fuzzy</comment>
<comment>TerminalSettings.xaml</comment>
</data>
<data name="Theme.Text" xml:space="preserve">
<value>Theme</value>
<value>Theme:</value>
<comment>ThemeSettings.xaml</comment>
</data>
<data name="ThemeAuthor.Header" xml:space="preserve">
Expand Down Expand Up @@ -879,4 +879,31 @@ Fuzzy</comment>
<data name="Command.SavedSshNewWindow" xml:space="preserve">
<value>New window for SSH profile</value>
</data>
<data name="Setting_SShProfiles.Content" xml:space="preserve">
<value>SSH Profiles</value>
<comment>Fuzzy</comment>
</data>
<data name="SshInfoDialog_TabColor.Text" xml:space="preserve">
<value>Tab color:</value>
<comment>Fuzzy</comment>
</data>
<data name="UseConPty" xml:space="preserve">
<value>Use ConPty</value>
<comment>Fuzzy</comment>
</data>
<data name="Username.Header" xml:space="preserve">
<value>Username</value>
<comment>Fuzzy</comment>
</data>
<data name="MoshPortFrom.Header" xml:space="preserve">
<value>From port</value>
<comment>Fuzzy</comment>
</data>
<data name="MoshPortTo.Header" xml:space="preserve">
<value>to port</value>
<comment>Fuzzy</comment>
</data>
<data name="MoshPortRange.Text" xml:space="preserve">
<value>Mosh port range</value>
</data>
</root>
39 changes: 34 additions & 5 deletions FluentTerminal.App/Strings/es/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@
</data>
<data name="RunOnStartup.Header" xml:space="preserve">
<value>Arrancar al encender</value>
<comment>GeneralSettings.xaml
Fuzzy</comment>
<comment>GeneralSettings.xaml</comment>
</data>
<data name="Setting" xml:space="preserve">
<value>Opciones</value>
Expand Down Expand Up @@ -822,12 +821,42 @@ Fuzzy</comment>
<value>Ninguno</value>
</data>
<data name="NewOutput.ToolTipService.ToolTip" xml:space="preserve">
<value>New output</value>
<value>Nueva entrada</value>
</data>
<data name="ExitedWithError.ToolTipService.ToolTip" xml:space="preserve">
<value>Exited with error</value>
<value>Se salió con error</value>
</data>
<data name="ConfirmDeleteProfile" xml:space="preserve">
<value>Are you sure you want to delete this profile?</value>
<value>¿Quieres eliminar este perfil?</value>
</data>
<data name="Command.NewSshWindow" xml:space="preserve">
<value>New SSH window</value>
</data>
<data name="Command.SavedSshNewTab" xml:space="preserve">
<value>New tab for SSH profile</value>
</data>
<data name="Command.SavedSshNewWindow" xml:space="preserve">
<value>New window for SSH profile</value>
</data>
<data name="Setting_SShProfiles.Content" xml:space="preserve">
<value>SSH Profiles</value>
</data>
<data name="SshInfoDialog_TabColor.Text" xml:space="preserve">
<value>Tab color:</value>
</data>
<data name="UseConPty" xml:space="preserve">
<value>Use ConPty</value>
</data>
<data name="Username.Header" xml:space="preserve">
<value>Username</value>
</data>
<data name="MoshPortFrom.Header" xml:space="preserve">
<value>From port</value>
</data>
<data name="MoshPortTo.Header" xml:space="preserve">
<value>to port</value>
</data>
<data name="MoshPortRange.Text" xml:space="preserve">
<value>Mosh port range</value>
</data>
</root>
36 changes: 33 additions & 3 deletions FluentTerminal.App/Strings/zh-CN/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -862,12 +862,42 @@ Fuzzy</comment>
<value>无</value>
</data>
<data name="NewOutput.ToolTipService.ToolTip" xml:space="preserve">
<value>New output</value>
<value>新输出</value>
</data>
<data name="ExitedWithError.ToolTipService.ToolTip" xml:space="preserve">
<value>Exited with error</value>
<value>进程退出错误</value>
</data>
<data name="ConfirmDeleteProfile" xml:space="preserve">
<value>Are you sure you want to delete this profile?</value>
<value>确定删除这个配置文件吗?</value>
</data>
<data name="Command.NewSshWindow" xml:space="preserve">
<value>New SSH window</value>
</data>
<data name="Command.SavedSshNewTab" xml:space="preserve">
<value>New tab for SSH profile</value>
</data>
<data name="Command.SavedSshNewWindow" xml:space="preserve">
<value>New window for SSH profile</value>
</data>
<data name="Setting_SShProfiles.Content" xml:space="preserve">
<value>SSH Profiles</value>
</data>
<data name="SshInfoDialog_TabColor.Text" xml:space="preserve">
<value>Tab color:</value>
</data>
<data name="UseConPty" xml:space="preserve">
<value>Use ConPty</value>
</data>
<data name="Username.Header" xml:space="preserve">
<value>Username</value>
</data>
<data name="MoshPortFrom.Header" xml:space="preserve">
<value>From port</value>
</data>
<data name="MoshPortTo.Header" xml:space="preserve">
<value>to port</value>
</data>
<data name="MoshPortRange.Text" xml:space="preserve">
<value>Mosh port range</value>
</data>
</root>
Loading

0 comments on commit 1b1e29c

Please sign in to comment.