From 1204639d4aeeac3d3dda7b0c53b8941266b9e685 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 2 Nov 2011 18:30:18 +0000 Subject: [Author: thomasvl] - Support for localizing non datasource versions of NSComboxBox (http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=77). - Fix up some category names. - Avoid conflicting category names. - Move placeholder string support down to NSTextField instead of NSSearchField. - Support for NSTextField placeholder in unittesting state. - Support for non datasource combobox values in unittesting state. - Fix NSSegmentControl localization support. - Add explicit tests for no localized values and document it in the strings file. - Unittesting for as much as possible of the above. R=dmaclach DELTA=762 (660 added, 55 deleted, 47 changed) --- .../GTMUILocalizerWindow3State.10_4_SDK.gtmUTState | 40 +++++++++++++++++++++ .../TestData/GTMUILocalizerWindow3State.gtmUTState | 42 +++++++++++++++++++++- .../Resources/English.lproj/Localizable.strings | 8 ++++- 3 files changed, 88 insertions(+), 2 deletions(-) (limited to 'AppKit/TestData') diff --git a/AppKit/TestData/GTMUILocalizerWindow3State.10_4_SDK.gtmUTState b/AppKit/TestData/GTMUILocalizerWindow3State.10_4_SDK.gtmUTState index ed88b68..ea1d10c 100644 --- a/AppKit/TestData/GTMUILocalizerWindow3State.10_4_SDK.gtmUTState +++ b/AppKit/TestData/GTMUILocalizerWindow3State.10_4_SDK.gtmUTState @@ -293,6 +293,46 @@ + ViewSubView 3 + + ComboBoxNumberOfItems + 5 + ComboBoxNumberOfVisibleItems + 4 + ComboBoxObjectValue 0 + Localized Choice 1 + ComboBoxObjectValue 1 + Localized Choice 2 + ComboBoxObjectValue 2 + Localized Choice 3 + ComboBoxObjectValue 3 + ^Choice4 + ComboBoxObjectValue 4 + ^Choice5 + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Label + CellValue + Localized Label + + ControlTag + 0 + ControlType + NSComboBox + ControlValue + Localized Label + PlaceHolderString + Localized Placeholder + ViewIsHidden + + WindowIsMain diff --git a/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState b/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState index 8352b5e..6958e6e 100644 --- a/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState +++ b/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState @@ -319,12 +319,52 @@ Segment 1 Localized Segment 2 Segment 2 - Localized Segment 3 + ^Seg3 SegmentCount 3 ViewIsHidden + ViewSubView 4 + + ComboBoxNumberOfItems + 5 + ComboBoxNumberOfVisibleItems + 4 + ComboBoxObjectValue 0 + Localized Choice 1 + ComboBoxObjectValue 1 + Localized Choice 2 + ComboBoxObjectValue 2 + Localized Choice 3 + ComboBoxObjectValue 3 + ^Choice4 + ComboBoxObjectValue 4 + ^Choice5 + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Label + CellValue + Localized Label + + ControlTag + 0 + ControlType + NSComboBox + ControlValue + Localized Label + PlaceHolderString + Localized Placeholder + ViewIsHidden + + WindowIsMain diff --git a/AppKit/TestData/Resources/English.lproj/Localizable.strings b/AppKit/TestData/Resources/English.lproj/Localizable.strings index e6452a8..b45dc87 100644 --- a/AppKit/TestData/Resources/English.lproj/Localizable.strings +++ b/AppKit/TestData/Resources/English.lproj/Localizable.strings @@ -16,6 +16,9 @@ // the License. // +// NOTE: Some things in the UI aren't here to confirm that they get left +// along instead of replaced with an empty string. + // GTMUILocalizerTest strings "Button1" = "Localized Button"; "Label1" = "Localized Label"; @@ -39,7 +42,10 @@ "Box" = "Localized Box"; "Seg1" = "Localized Segment 1"; "Seg2" = "Localized Segment 2"; -"Seg3" = "Localized Segment 3"; +"Choice1" = "Localized Choice 1"; +"Choice2" = "Localized Choice 2"; +"Choice3" = "Localized Choice 3"; +"Placeholder1" = "Localized Placeholder"; // Binding localization strings. "MultipleValuesPlaceholder" = "MultipleValuesPlaceholder"; -- cgit v1.2.3