Skip to content

Commit

Permalink
Merge pull request #142 from Flamifly/translation2
Browse files Browse the repository at this point in the history
added Translations for #133
  • Loading branch information
FrozenAssassine authored Dec 17, 2024
2 parents 4f59045 + 4a2ec59 commit ea104e8
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 15 deletions.
2 changes: 1 addition & 1 deletion EasePass/Controls/PasswordSafetyChart.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" x:Uid="PW_SafetyChart_Short_LowerCaseLetters" Text="Lower case" HorizontalAlignment="Left" VerticalAlignment="Top" />
<TextBlock Grid.Row="1" x:Uid="PW_SafetyChart_Short_LowerCaseLetters" Text="Upper case" HorizontalAlignment="Left" VerticalAlignment="Top" />
<TextBlock Grid.Row="1" x:Uid="PW_SafetyChart_Short_UpperCaseLetters" Text="Upper case" HorizontalAlignment="Left" VerticalAlignment="Top" />
<TextBlock Grid.Row="2" x:Uid="PW_SafetyChart_PWLength" Text="Password length" HorizontalAlignment="Left" VerticalAlignment="Top" />
<TextBlock Grid.Row="3" x:Uid="PW_SafetyChart_LeakedExploited" Text="Leaked or exploited" HorizontalAlignment="Left" VerticalAlignment="Top" />
</Grid>
Expand Down
7 changes: 4 additions & 3 deletions EasePass/Dialogs/ChangePasswordDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/

using EasePass.Extensions;
using EasePass.Helper;
using EasePass.Models;
using EasePass.Views.DialogPages;
Expand All @@ -33,9 +34,9 @@ public async Task ShowAsync(Database db)
page = new ChangePasswordPage();
dialog = new AutoLogoutContentDialog
{
Title = "Change Password for " + db.Name,
CloseButtonText = "Cancel",
PrimaryButtonText = "Change",
Title = "Change Password for".Localized("Dialog_ChangePassword_Title/Text") + " " + db.Name,
CloseButtonText = "Cancel".Localized("Dialog_Button_Cancel/Text"),
PrimaryButtonText = "Change".Localized("Dialog_Button_Change/Text"),
XamlRoot = App.m_window.Content.XamlRoot,
Content = page
};
Expand Down
7 changes: 3 additions & 4 deletions EasePass/Dialogs/ConfirmDeleteDatabaseDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ public async Task<bool> ShowAsync(Database database)
{
var dialog = new AutoLogoutContentDialog
{
Title = "Confirm delete Database",
PrimaryButtonText = "Delete",
Title = "Confirm delete Database".Localized("Dialog_ConfirmDeleteDatabase_Title/Text"),
PrimaryButtonText = "Delete".Localized("Dialog_Button_Delete/Text"),
CloseButtonText = "Close".Localized("Dialog_Button_Close/Text"),
XamlRoot = App.m_window.Content.XamlRoot,
Content = "Confirm to delete Database:\n" + database.Name + "\n" + database.Path,
Content = "Confirm to delete Database:".Localized("Dialog_ConfirmDeleteDatabase_Content/Text") + "\n" + database.Name + "\n" + database.Path,
};

return await dialog.ShowAsync() == ContentDialogResult.Primary;
}
}
Expand Down
21 changes: 18 additions & 3 deletions EasePass/Strings/de-DE/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
<value>Bereits</value>
</data>
<data name="PW_SafetyChart_Contains.Text" xml:space="preserve">
<value>Beinhaltet</value>
<value>Beinhaltet:</value>
</data>
<data name="PW_SafetyChart_Digits.Text" xml:space="preserve">
<value>Zahlen</value>
Expand All @@ -511,7 +511,7 @@
<value>Veröffentlicht</value>
</data>
<data name="PW_SafetyChart_Low.Text" xml:space="preserve">
<value>Schwach:</value>
<value>Gering:</value>
</data>
<data name="PW_SafetyChart_LowerCaseLetters.Text" xml:space="preserve">
<value>Kleinbuchstaben</value>
Expand All @@ -523,7 +523,7 @@
<value>Fehlend:</value>
</data>
<data name="PW_SafetyChart_Not.Text" xml:space="preserve">
<value>Nicht</value>
<value>Nicht:</value>
</data>
<data name="PW_SafetyChart_NotYet.Text" xml:space="preserve">
<value>Noch nicht</value>
Expand Down Expand Up @@ -990,4 +990,19 @@
<data name="View_SettingsPage_ClipboardClearTimeoutTime.Header" xml:space="preserve">
<value>Sekunden</value>
</data>
<data name="Dialog_AddItem_GeneratePW.ToolTipService.ToolTip" xml:space="preserve">
<value>Passwort generieren</value>
</data>
<data name="Dialog_ConfirmDeleteDatabase_Title.Text" xml:space="preserve">
<value>Datenbank löschen bestätigen</value>
</data>
<data name="Dialog_ConfirmDeleteDatabase_Content.Text" xml:space="preserve">
<value>Bestätigen Sie die Löschung der Datenbank:</value>
</data>
<data name="Dialog_ChangePassword_Title.Text" xml:space="preserve">
<value>Passwort ändern für</value>
</data>
<data name="Dialog_Button_Change.Text" xml:space="preserve">
<value>Ändern</value>
</data>
</root>
23 changes: 19 additions & 4 deletions EasePass/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@
<data name="Dialog_AddItem_Export2FA.Content" xml:space="preserve">
<value>Export 2FA</value>
</data>
<data name="Dialog_AddItem_GeneratePW.ToolTipService.ToolTip" xml:space="preserve">
<value>Generate a Password</value>
</data>
<data name="Dialog_AddItem_Headline.Text" xml:space="preserve">
<value>Add Password</value>
</data>
Expand Down Expand Up @@ -213,6 +216,9 @@
<data name="Dialog_Button_Cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="Dialog_Button_Change.Text" xml:space="preserve">
<value>Change</value>
</data>
<data name="Dialog_Button_Close.Text" xml:space="preserve">
<value>Close</value>
</data>
Expand Down Expand Up @@ -240,6 +246,15 @@
<data name="Dialog_Button_Rename.Text" xml:space="preserve">
<value>Rename</value>
</data>
<data name="Dialog_ChangePassword_Title.Text" xml:space="preserve">
<value>Change Password for</value>
</data>
<data name="Dialog_ConfirmDeleteDatabase_Content.Text" xml:space="preserve">
<value>Confirm to delete Database:</value>
</data>
<data name="Dialog_ConfirmDeleteDatabase_Title.Text" xml:space="preserve">
<value>Confirm delete Database</value>
</data>
<data name="Dialog_ConfirmDelete_Extension.Text" xml:space="preserve">
<value>Are you sure you want to delete the extension: </value>
</data>
Expand Down Expand Up @@ -502,7 +517,7 @@
<value>Already</value>
</data>
<data name="PW_SafetyChart_Contains.Text" xml:space="preserve">
<value>Contains</value>
<value>Contains:</value>
</data>
<data name="PW_SafetyChart_Digits.Text" xml:space="preserve">
<value>Digits</value>
Expand All @@ -520,7 +535,7 @@
<value>Leaked or exploited</value>
</data>
<data name="PW_SafetyChart_Low.Text" xml:space="preserve">
<value>Low</value>
<value>Low:</value>
</data>
<data name="PW_SafetyChart_LowerCaseLetters.Text" xml:space="preserve">
<value>Lower case letters</value>
Expand All @@ -529,10 +544,10 @@
<value>Meets the minimum</value>
</data>
<data name="PW_SafetyChart_Missing.Text" xml:space="preserve">
<value>Missing</value>
<value>Missing:</value>
</data>
<data name="PW_SafetyChart_Not.Text" xml:space="preserve">
<value>Not</value>
<value>Not:</value>
</data>
<data name="PW_SafetyChart_NotYet.Text" xml:space="preserve">
<value>Not yet</value>
Expand Down
Binary file modified EasePass/Views/DialogPages/AddItemPage.xaml
Binary file not shown.

0 comments on commit ea104e8

Please sign in to comment.