- #172 Localized Media Quality UI

This commit is contained in:
Mehrooz Khan 2021-12-11 16:39:53 +05:00
parent 78b75ed41e
commit e8f2744038
10 changed files with 135 additions and 2 deletions

View file

@ -277,6 +277,12 @@
/* No comment provided by engineer. */
"General" = "General";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
/* No comment provided by engineer. */
"History" = "History";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Login and password do not match.";
/* Image or Video Quality */
"Low" = "Low";
/* Alert title for storage usage */
"Manage Storage" = "Manage Storage";
/* No comment provided by engineer. */
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
/* No comment provided by engineer. */
"Member" = "Member";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "operation timed out";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device.";

View file

@ -277,6 +277,12 @@
/* Section heading: general settings about contacts */
"General" = "Allgemein";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
/* Section heading for chat history controls */
"History" = "Verlauf";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Anmeldename oder Passwort falsch.";
/* Image or Video Quality */
"Low" = "Low";
/* Alert title for storage usage */
"Manage Storage" = "Speicher verwalten";
/* No comment provided by engineer. */
"Media" = "Medien";
/* Image or Video Quality */
"Medium" = "Medium";
/* No comment provided by engineer. */
"Member" = "Teilnehmer:in";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "Aktion aufgrund einer Zeitüberschreitung abgebrochen";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Bei Originalqualität wird das Bild in dem ursprünglichen Format in dem es auf dem Telefon gespeichert ist gesendet. Das wird ggfs. nicht von jedem Empfangsgerät unterstützt.";

View file

@ -277,6 +277,12 @@
/* No comment provided by engineer. */
"General" = "General";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
/* No comment provided by engineer. */
"History" = "History";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Login and password do not match.";
/* Image or Video Quality */
"Low" = "Low";
/* Alert title for storage usage */
"Manage Storage" = "Manage Storage";
/* No comment provided by engineer. */
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
/* No comment provided by engineer. */
"Member" = "Member";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "operation timed out";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device.";

View file

@ -277,6 +277,12 @@
/* No comment provided by engineer. */
"General" = "General";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
/* No comment provided by engineer. */
"History" = "History";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Login and password do not match.";
/* Image or Video Quality */
"Low" = "Low";
/* Alert title for storage usage */
"Manage Storage" = "Manage Storage";
/* No comment provided by engineer. */
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
/* No comment provided by engineer. */
"Member" = "Member";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "operation timed out";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device.";

View file

@ -277,6 +277,12 @@
/* Section heading: general settings about contacts */
"General" = "Général";
/* Image or Video Quality */
"High" = "Haut";
/* Image or Video Quality */
"Highest" = "Plus haut";
/* Section heading for chat history controls */
"History" = "Historique";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Login and password do not match.";
/* Image or Video Quality */
"Low" = "Meugler";
/* Alert title for storage usage */
"Manage Storage" = "Gestion du stockage";
/* No comment provided by engineer. */
"Media" = "Média";
/* Image or Video Quality */
"Medium" = "Moyen";
/* No comment provided by engineer. */
"Member" = "Membre";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "délais dattente dépassé";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device.";

View file

@ -277,6 +277,12 @@
/* No comment provided by engineer. */
"General" = "General";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
/* No comment provided by engineer. */
"History" = "History";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Login and password do not match.";
/* Image or Video Quality */
"Low" = "Low";
/* Alert title for storage usage */
"Manage Storage" = "Manage Storage";
/* No comment provided by engineer. */
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
/* No comment provided by engineer. */
"Member" = "Member";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "operation timed out";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device.";

View file

@ -277,6 +277,12 @@
/* Section heading: general settings about contacts */
"General" = "General";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
/* Section heading for chat history controls */
"History" = "Historia";
@ -352,12 +358,18 @@
/* No comment provided by engineer. */
"Login and password do not match." = "Användarnamn och lösenord matchar inte.";
/* Image or Video Quality */
"Low" = "Low";
/* Alert title for storage usage */
"Manage Storage" = "Hantera Lagring";
/* No comment provided by engineer. */
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
/* No comment provided by engineer. */
"Member" = "Medlem";
@ -444,6 +456,9 @@
/* No comment provided by engineer. */
"operation timed out" = "operationen fick time out";
/* Image or Video Quality */
"Original" = "Original";
/* No comment provided by engineer. */
"Original quality will share image in the format in which it is stored on your phone and it may not be supported by every device." = "Originalkvalité delar bilden i det format den är lagrad på din telefon vilket kanske inte stöds på alla enheter.";

View file

@ -64,4 +64,19 @@ enum ImageQuality: String {
return 0.6;
}
}
var localized: String {
switch self {
case .original:
return NSLocalizedString("Original", comment: "Image or Video Quality")
case .highest:
return NSLocalizedString("Highest", comment: "Image or Video Quality")
case .high:
return NSLocalizedString("High", comment: "Image or Video Quality")
case .medium:
return NSLocalizedString("Medium", comment: "Image or Video Quality")
case .low:
return NSLocalizedString("Low", comment: "Image or Video Quality")
}
}
}

View file

@ -33,7 +33,7 @@ class MediaHelper {
let values: [ImageQuality] = [.original, .highest, .high, .medium, .low];
for value in values {
alert.addAction(UIAlertAction(title: value.rawValue.capitalized, style: .default, handler: { _ in
alert.addAction(UIAlertAction(title: value.localized, style: .default, handler: { _ in
completionHandler(.success(value));
}));
}
@ -54,7 +54,7 @@ class MediaHelper {
let values: [VideoQuality] = [.original, .high, .medium, .low];
for value in values {
alert.addAction(UIAlertAction(title: value.rawValue.capitalized, style: .default, handler: { _ in
alert.addAction(UIAlertAction(title: value.localized, style: .default, handler: { _ in
completionHandler(.success(value));
}));
}

View file

@ -47,4 +47,17 @@ enum VideoQuality: String {
return AVAssetExportPresetLowQuality;
}
}
var localized: String {
switch self {
case .original:
return NSLocalizedString("Original", comment: "Image or Video Quality")
case .high:
return NSLocalizedString("High", comment: "Image or Video Quality")
case .medium:
return NSLocalizedString("Medium", comment: "Image or Video Quality")
case .low:
return NSLocalizedString("Low", comment: "Image or Video Quality")
}
}
}