]> granicus.if.org Git - handbrake/commitdiff
MacGui: make some more strings of HBPicture+UIAdditions accessible for localization
authorNomis101 <Nomis101@web.de>
Mon, 24 Dec 2018 22:01:27 +0000 (23:01 +0100)
committerDamiano Galassi <galad87@users.noreply.github.com>
Tue, 1 Jan 2019 13:58:31 +0000 (14:58 +0100)
Make it possible to localize some more strings of the Preview window.

macosx/HBPicture+UIAdditions.m

index 23d3e8b0fa449b1f15566fb8f176839a3a68eb59..369de103bde568cd73f3ad7397cbc5d51a4ed949 100644 (file)
 {
     NSString *sizeInfo = @"";
 
-    sizeInfo = [NSString stringWithFormat:
-                @"Source: %dx%d, ",
+    sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
+                (@"Source: %dx%d, ", @"HBPicture -> short info"),
                 self.sourceWidth, self.sourceHeight];
 
     if (self.anamorphicMode == HB_ANAMORPHIC_AUTO)
     {
-        sizeInfo = [NSString stringWithFormat:
-                    @"%@Output: %dx%d, Anamorphic: %dx%d Auto",
+        sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
+                    (@"%@Output: %dx%d, Anamorphic: %dx%d Auto", @"HBPicture -> short info"),
                     sizeInfo, self.width, self.height, self.displayWidth, self.height];
     }
     else if (self.anamorphicMode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic
     {
-        sizeInfo = [NSString stringWithFormat:
-                    @"%@Output: %dx%d, Anamorphic: %dx%d Loose",
+        sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
+                    (@"%@Output: %dx%d, Anamorphic: %dx%d Loose", @"HBPicture -> short info"),
                     sizeInfo, self.width, self.height, self.displayWidth, self.height];
     }
     else if (self.anamorphicMode == HB_ANAMORPHIC_CUSTOM) // Custom Anamorphic
     {
-        sizeInfo = [NSString stringWithFormat:
-                    @"%@Output: %dx%d, Anamorphic: %dx%d Custom",
+        sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
+                    (@"%@Output: %dx%d, Anamorphic: %dx%d Custom", @"HBPicture -> short info"),
                     sizeInfo, self.width, self.height, self.displayWidth, self.height];
     }
     else // No Anamorphic
     {
-        sizeInfo = [NSString stringWithFormat:
-                    @"%@Output: %dx%d",
+        sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
+                    (@"%@Output: %dx%d", @"HBPicture -> short info"),
                     sizeInfo, self.width, self.height];
     }