Merge feature/localized-media-quality-UI (PR #173) (fixes #172)

This commit is contained in:
Matthew Wild 2021-12-13 15:47:18 +00:00
commit c8c9f5fd96
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

@ -181,6 +181,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";
"Info" = "Info";
@ -220,9 +226,15 @@
"Log Out" = "Abmelden";
"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";
"Media" = "Medien";
/* Image or Video Quality */
"Medium" = "Medium";
"Member" = "Teilnehmer:in";
"Message Archiving" = "Nachrichtenarchiv";
@ -275,6 +287,9 @@
"Open URL" = "URL öffnen";
"Operation timed out" = "Aktion wegen Zeitüberschreitung abgebrochen";
"operation timed out" = "Aktion aufgrund einer Zeitüberschreitung abgebrochen";
/* Image or Video Quality */
"Original" = "Original";
"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.";
"Original quality will share video in the format in which video is stored on your phone and it may not be supported by every device." = "Bei Originalqualität wird das Video in dem ursprünglichen Format in dem es auf dem Telefon gespeichert ist gesendet. Das wird ggfs. nicht von jedem Empfangsgerät unterstützt.";
"Other devices fingerprints" = "Fingerabdrücke anderer Geräte";

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

@ -167,6 +167,12 @@
"Fingerprint of this device" = "Fingerprint of this device";
"Free for chat" = "Free for chat";
"General" = "General";
/* Image or Video Quality */
"High" = "High";
/* Image or Video Quality */
"Highest" = "Highest";
"History" = "History";
"Info" = "Info";
"Invitation" = "Invitation";
@ -205,9 +211,15 @@
"Log Out" = "Log Out";
"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";
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
"Member" = "Member";
"Message Archiving" = "Message Archiving";
"Message Archiving Error" = "Message Archiving Error";
@ -250,6 +262,9 @@
"Open URL" = "Open URL";
"Operation timed out" = "Operation timed out";
"operation timed out" = "operation timed out";
/* Image or Video Quality */
"Original" = "Original";
"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.";
"Original quality will share video in the format in which video is stored on your phone and it may not be supported by every device." = "Original quality will share video in the format in which video is stored on your phone and it may not be supported by every device.";
"Other devices fingerprints" = "Other devices fingerprints";

View file

@ -181,6 +181,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";
"Info" = "Info";
@ -220,9 +226,15 @@
"Log Out" = "Logga Ut";
"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";
"Media" = "Media";
/* Image or Video Quality */
"Medium" = "Medium";
"Member" = "Medlem";
"Message Archiving" = "Meddelandearkivering";
@ -275,6 +287,9 @@
"Open URL" = "Öppna URL";
"Operation timed out" = "Operationen fick time out";
"operation timed out" = "operationen fick time out";
/* Image or Video Quality */
"Original" = "Original";
"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.";
"Original quality will share video in the format in which video is stored on your phone and it may not be supported by every device." = "Originalkvalité delar videon i det format den är lagrad på din telefon vilket kanske inte stöds på alla enheter.";
"Other devices fingerprints" = "Andra enheters fingeravtryck";

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")
}
}
}