Skip to content

Commit

Permalink
Add missing translations for password generator profile 'At least 1 p…
Browse files Browse the repository at this point in the history
…er set *'
  • Loading branch information
Rookiestyle committed Jan 23, 2022
1 parent 27412a1 commit b92a0c0
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
12 changes: 10 additions & 2 deletions Translations/PasswordChangeAssistant.de.language.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Increment the TranslationVersion every time the translation file is updated
Also update the version.info file
-->
<TranslationVersion>7</TranslationVersion>
<TranslationVersion>8</TranslationVersion>
<item>
<key>OldPW</key>
<value>Altes Passwort:</value>
Expand Down Expand Up @@ -121,4 +121,12 @@
Soll diese Funktion aktiviert werden?
Du kannst das jederzeit in den Einstellungen ändern.</value>
</item>
</Translation>
<item>
<key>ProfileUsageHint</key>
<value>Bitte nutze die Optionen in '{0}' zum Definieren der Passwortregeln</value>
</item>
<item>
<key>ProfileAtLeast1PerSet</key>
<value>Mindestens 1 Zeichen je gewähltem Set *</value>
</item>
</Translation>
8 changes: 8 additions & 0 deletions Translations/PasswordChangeAssistant.template.language.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,12 @@ Overwrite?</value>
Do you want this to be active?
You can change this in the plugin's options anytime.</value>
</item>
<item>
<key>ProfileUsageHint</key>
<value>Please use the options inside '{0}' to define password details</value>
</item>
<item>
<key>ProfileAtLeast1PerSet</key>
<value>At least one per set *</value>
</item>
</Translation>
8 changes: 8 additions & 0 deletions src/PluginTranslation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ public static class PluginTranslate
Do you want this to be active?
You can change this in the plugin's options anytime.";
/// <summary>
/// Please use the options inside '{0}' to define password details
/// </summary>
public static readonly string ProfileUsageHint = @"Please use the options inside '{0}' to define password details";
/// <summary>
/// At least 1 per set *
/// </summary>
public static readonly string ProfileAtLeast1PerSet = @"At least one per set *";
#endregion

#region NO changes in this area
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.13")]
[assembly: AssemblyFileVersion("2.13")]
[assembly: AssemblyVersion("2.13.1")]
[assembly: AssemblyFileVersion("2.13.1")]
[assembly: Guid ("5d5cc62b-d6f6-4e0b-a7ff-3d5ef21dd656")]
7 changes: 3 additions & 4 deletions src/PwProfile1PerSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace PasswordChangeAssistant
{
internal class PwProfile1PerSet : CustomPwGenerator
{
public const string MyName = "At least 1 per set *";
private static string MyName = PluginTranslation.PluginTranslate.ProfileAtLeast1PerSet;
public override string Name { get { return MyName; } }
public override bool SupportsOptions { get { return true; } }

Expand Down Expand Up @@ -113,7 +113,7 @@ public override string GetOptions(string strCurrentOptions)
s = s.Replace("&&", "\n");
s = s.Replace("&", string.Empty);
s = s.Replace("\n", "&");
Tools.ShowInfo(string.Format("Please use '{0}' to define password details", s));
Tools.ShowInfo(string.Format(PluginTranslation.PluginTranslate.ProfileUsageHint, s));
}
}
return base.GetOptions(strCurrentOptions);
Expand All @@ -127,7 +127,7 @@ public static void EnablePwGeneratorControls(object sender, EventArgs e)
if (cmbCustomAlgo == null) return;
if (!cmbCustomAlgo.Enabled) return;
if (cmbCustomAlgo.SelectedIndex < 0) return;
if ((cmbCustomAlgo.Items[cmbCustomAlgo.SelectedIndex] as string) != MyName) return;
if ((cmbCustomAlgo.Items[cmbCustomAlgo.SelectedIndex] as string) != PwProfile1PerSet.MyName) return;

Control cGroup = Tools.GetControl("m_grpCurOpt", f);
foreach (Control c in cGroup.Controls)
Expand All @@ -152,5 +152,4 @@ public static void EnablePwGeneratorControls(object sender, EventArgs e)
}
}
}

}
4 changes: 2 additions & 2 deletions version.info
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:
PasswordChangeAssistant:2.13
PasswordChangeAssistant!de:7
PasswordChangeAssistant:2.13.1
PasswordChangeAssistant!de:8
PasswordChangeAssistant!it:3
PasswordChangeAssistant!pt:3
PasswordChangeAssistant!ru:5
Expand Down

0 comments on commit b92a0c0

Please sign in to comment.