mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 09:53:23 +00:00
fix(i18n): new localized strings for SQL-based password policies
This commit is contained in:
@@ -257,6 +257,12 @@
|
||||
"Confirmation" = "Confirmation";
|
||||
"Change" = "Change";
|
||||
"Passwords don't match" = "Passwords don't match";
|
||||
"POLICY_MIN_LOWERCASE_LETTER" = "Minimum of %{0} lowercase letter";
|
||||
"POLICY_MIN_UPPERCASE_LETTER" = "Minimum of %{0} uppercase letter";
|
||||
"POLICY_MIN_DIGIT" = "Minimum of %{0} digit";
|
||||
"POLICY_MIN_SPECIAL_SYMBOLS" = "Minimum of %{0}special symbols";
|
||||
"POLICY_MIN_LENGTH" = "Minimum length of %{0} characters";
|
||||
|
||||
|
||||
/* Event+task classifications */
|
||||
"Default events classification" = "Default events classification";
|
||||
|
||||
@@ -257,6 +257,11 @@
|
||||
"Confirmation" = "Confirmation";
|
||||
"Change" = "Changer";
|
||||
"Passwords don't match" = "Les mots de passe ne correspondent pas";
|
||||
"POLICY_MIN_LOWERCASE_LETTER" = "Au moins %{0} lettre(s) minuscule(s)";
|
||||
"POLICY_MIN_UPPERCASE_LETTER" = "Au moins %{0} lettre(s) majuscule(s)";
|
||||
"POLICY_MIN_DIGIT" = "Au moins %{0} chiffre(s)";
|
||||
"POLICY_MIN_SPECIAL_SYMBOLS" = "Au moins %{0} caractère(s) special(aux)";
|
||||
"POLICY_MIN_LENGTH" = "Longueur d'au moins %{0} caractère(s)";
|
||||
|
||||
/* Event+task classifications */
|
||||
"Default events classification" = "Classification par défaut des événements";
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#import <SOGo/SOGoTextTemplateFile.h>
|
||||
#import <SOGo/WOResourceManager+SOGo.h>
|
||||
#import <SOGo/SOGoBuild.h>
|
||||
#import <SOGo/SOGoPasswordPolicy.h>
|
||||
#import <Mailer/SOGoMailAccount.h>
|
||||
#import <Mailer/SOGoMailAccounts.h>
|
||||
|
||||
@@ -257,9 +258,21 @@ static NSArray *reminderValues = nil;
|
||||
- (NSArray *) passwordPolicy
|
||||
{
|
||||
NSObject <SOGoSource> *userSource;
|
||||
|
||||
NSMutableDictionary *translations = [[NSMutableDictionary alloc] init];
|
||||
NSDictionary *policy;
|
||||
NSDictionary *translatedUserPolicy;
|
||||
|
||||
userSource = [user authenticationSource];
|
||||
return [userSource userPasswordPolicy];
|
||||
|
||||
for(policy in [userSource userPasswordPolicy]) {
|
||||
[translations setObject:[self labelForKey:[policy objectForKey:@"label"]]
|
||||
forKey: [policy objectForKey:@"label"]];
|
||||
}
|
||||
translatedUserPolicy = [SOGoPasswordPolicy createPasswordPolicyLabels: [userSource userPasswordPolicy]
|
||||
withTranslations: translations];
|
||||
[translations release];
|
||||
|
||||
return translatedUserPolicy;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user