OSDN Git Service

merge 0.9.4 to jp
[handbrake-jp/handbrake-jp.git] / macosx / PictureController.mm
index d631074..209cf0e 100644 (file)
 
     /* Populate the Anamorphic NSPopUp button here */
     [fAnamorphicPopUp removeAllItems];
-    [fAnamorphicPopUp addItemWithTitle: @"None"];
-    [fAnamorphicPopUp addItemWithTitle: @"Strict"];
+    [fAnamorphicPopUp addItemWithTitle: NSLocalizedStringFromTable(@"None", @"Picture", @"")];
+    [fAnamorphicPopUp addItemWithTitle: NSLocalizedStringFromTable(@"Strict", @"Picture", @"")];
     if (allowLooseAnamorphic)
     {
-    [fAnamorphicPopUp addItemWithTitle: @"Loose"];
+    [fAnamorphicPopUp addItemWithTitle: NSLocalizedStringFromTable(@"Loose", @"Picture", @"")];
     }
     [fAnamorphicPopUp selectItemAtIndex: job->pixel_ratio];
     
@@ -130,28 +130,28 @@ are maintained across different sources */
 {
        /* we use a popup to show the deinterlace settings */
        [fDeinterlacePopUp removeAllItems];
-    [fDeinterlacePopUp addItemWithTitle: @"None"];
-    [fDeinterlacePopUp addItemWithTitle: @"Fast"];
-    [fDeinterlacePopUp addItemWithTitle: @"Slow"];
-       [fDeinterlacePopUp addItemWithTitle: @"Slower"];
+    [fDeinterlacePopUp addItemWithTitle: NSLocalizedStringFromTable(@"None", @"Picture", @"")];
+    [fDeinterlacePopUp addItemWithTitle: NSLocalizedStringFromTable(@"Fast", @"Picture", @"")];
+    [fDeinterlacePopUp addItemWithTitle: NSLocalizedStringFromTable(@"Slow", @"Picture", @"")];
+       [fDeinterlacePopUp addItemWithTitle: NSLocalizedStringFromTable(@"Slower", @"Picture", @"")];
     
        /* Set deinterlaces level according to the integer in the main window */
        [fDeinterlacePopUp selectItemAtIndex: fPictureFilterSettings.deinterlace];
 
        /* we use a popup to show the denoise settings */
        [fDenoisePopUp removeAllItems];
-    [fDenoisePopUp addItemWithTitle: @"None"];
-    [fDenoisePopUp addItemWithTitle: @"Weak"];
-       [fDenoisePopUp addItemWithTitle: @"Medium"];
-    [fDenoisePopUp addItemWithTitle: @"Strong"];
+    [fDenoisePopUp addItemWithTitle: NSLocalizedStringFromTable(@"None", @"Picture", @"")];
+    [fDenoisePopUp addItemWithTitle: NSLocalizedStringFromTable(@"Weak", @"Picture", @"")];
+       [fDenoisePopUp addItemWithTitle: NSLocalizedStringFromTable(@"Medium", @"Picture", @"")];
+    [fDenoisePopUp addItemWithTitle: NSLocalizedStringFromTable(@"Strong", @"Picture", @"")];
        /* Set denoises level according to the integer in the main window */
        [fDenoisePopUp selectItemAtIndex: fPictureFilterSettings.denoise];
     
     /* we use a popup to show the decomb settings */
        [fDecombPopUp removeAllItems];
-    [fDecombPopUp addItemWithTitle: @"None"];
-    [fDecombPopUp addItemWithTitle: @"Default"];
-    [fDecombPopUp addItemWithTitle: @"Custom"];
+    [fDecombPopUp addItemWithTitle: NSLocalizedStringFromTable(@"None", @"Picture", @"")];
+    [fDecombPopUp addItemWithTitle: NSLocalizedStringFromTable(@"Default", @"Picture", @"")];
+    [fDecombPopUp addItemWithTitle: NSLocalizedStringFromTable(@"Custom", @"Picture", @"")];
        /* Set denoises level according to the integer in the main window */
        [fDecombPopUp selectItemAtIndex: fPictureFilterSettings.decomb];
 
@@ -171,7 +171,7 @@ are maintained across different sources */
         output_height = fTitle->height-fTitle->job->crop[0]-fTitle->job->crop[1];
         display_width = output_width * fTitle->job->pixel_aspect_width / fTitle->job->pixel_aspect_height;
         [fInfoField setStringValue:[NSString stringWithFormat:
-                                    @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d",
+                                    NSLocalizedStringFromTable(@"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d", @"Picture", @""),
                                     fTitle->width, fTitle->height, output_width, output_height, display_width, output_height]];
         displaySize.width *= ( ( CGFloat )fTitle->job->pixel_aspect_width ) / ( ( CGFloat )fTitle->job->pixel_aspect_height );   
     }
@@ -179,7 +179,7 @@ are maintained across different sources */
     {
         display_width = output_width * output_par_width / output_par_height;
         [fInfoField setStringValue:[NSString stringWithFormat:
-                                    @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d",
+                                    NSLocalizedStringFromTable(@"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d", @"Picture", @""),
                                     fTitle->width, fTitle->height, output_width, output_height, display_width, output_height]];
         
         displaySize.width = display_width;
@@ -187,7 +187,7 @@ are maintained across different sources */
     else // No Anamorphic
     {
         [fInfoField setStringValue: [NSString stringWithFormat:
-                                     @"Source: %dx%d, Output: %dx%d", fTitle->width, fTitle->height,
+                                     NSLocalizedStringFromTable(@"Source: %dx%d, Output: %dx%d", @"Picture", @""), fTitle->width, fTitle->height,
                                      fTitle->job->width, fTitle->job->height]];
     }
 
@@ -222,7 +222,7 @@ are maintained across different sources */
 {
     if ([fDeblockSlider floatValue] == 4.0)
     {
-    [fDeblockField setStringValue: [NSString stringWithFormat: @"Off"]];
+    [fDeblockField setStringValue: [NSString stringWithFormat: NSLocalizedStringFromTable(@"Off", @"Picture", @"")]];
     }
     else
     {
@@ -346,7 +346,7 @@ are maintained across different sources */
     
     fPictureFilterSettings.detelecine  = [fDetelecineCheck state];
     
-    if ([fDeblockField stringValue] == @"Off")
+    if ([fDeblockField stringValue] == NSLocalizedStringFromTable(@"Off", @"Picture", @""))
     {
     fPictureFilterSettings.deblock  = 0;
     }