From b8787b78e65a3b1ed18c406b0e2ea5232af7ac14 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 15 Apr 2009 19:45:40 +0000 Subject: [Author: dmaclach] Added GTMUILocalizer for localizing UIs. 100% code coverage from tests. DELTA=1956 (1940 added, 8 deleted, 8 changed) R=thomasvl --- AppKit/TestData/GTMUILocalizerMenuState.gtmUTState | 31 +++++ .../TestData/GTMUILocalizerView1State.gtmUTState | 60 +++++++++ .../TestData/GTMUILocalizerView2State.gtmUTState | 40 ++++++ .../TestData/GTMUILocalizerWindow1State.gtmUTState | 147 +++++++++++++++++++++ .../TestData/GTMUILocalizerWindow2State.gtmUTState | 21 +++ .../Resources/English.lproj/Localizable.strings | Bin 0 -> 2122 bytes 6 files changed, 299 insertions(+) create mode 100644 AppKit/TestData/GTMUILocalizerMenuState.gtmUTState create mode 100644 AppKit/TestData/GTMUILocalizerView1State.gtmUTState create mode 100644 AppKit/TestData/GTMUILocalizerView2State.gtmUTState create mode 100644 AppKit/TestData/GTMUILocalizerWindow1State.gtmUTState create mode 100644 AppKit/TestData/GTMUILocalizerWindow2State.gtmUTState create mode 100644 AppKit/TestData/Resources/English.lproj/Localizable.strings (limited to 'AppKit/TestData') diff --git a/AppKit/TestData/GTMUILocalizerMenuState.gtmUTState b/AppKit/TestData/GTMUILocalizerMenuState.gtmUTState new file mode 100644 index 0000000..eb6c495 --- /dev/null +++ b/AppKit/TestData/GTMUILocalizerMenuState.gtmUTState @@ -0,0 +1,31 @@ + + + + + $GTMArchive + GTMUnitTestingArchive + $GTMVersion + 1 + MenuItem 0 + + MenuItemIndentationLevel + 0 + MenuItemIsAlternate + + MenuItemIsEnabled + + MenuItemIsSeparator + + MenuItemKeyEquivalent + + MenuItemState + 0 + MenuItemTag + 0 + MenuItemTitle + Localized Menu Item + + MenuTitle + Localized Menu + + diff --git a/AppKit/TestData/GTMUILocalizerView1State.gtmUTState b/AppKit/TestData/GTMUILocalizerView1State.gtmUTState new file mode 100644 index 0000000..e56930c --- /dev/null +++ b/AppKit/TestData/GTMUILocalizerView1State.gtmUTState @@ -0,0 +1,60 @@ + + + + + $GTMArchive + GTMUnitTestingArchive + $GTMVersion + 1 + ViewIsHidden + + ViewSubView 0 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + ^Polly want a caret? + CellValue + ^Polly want a caret? + + ControlTag + 0 + ControlType + NSTextField + ControlValue + ^Polly want a caret? + ViewIsHidden + + + ViewSubView 1 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Button + CellValue + 0 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 0 + ViewIsHidden + + + + diff --git a/AppKit/TestData/GTMUILocalizerView2State.gtmUTState b/AppKit/TestData/GTMUILocalizerView2State.gtmUTState new file mode 100644 index 0000000..ff80b28 --- /dev/null +++ b/AppKit/TestData/GTMUILocalizerView2State.gtmUTState @@ -0,0 +1,40 @@ + + + + + $GTMArchive + GTMUnitTestingArchive + $GTMVersion + 1 + ViewIsHidden + + ViewSubView 0 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Button + CellValue + 0 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 0 + ViewAccessibilityHelp + Localized ToolTip + ViewIsHidden + + ViewToolTip + Localized ToolTip + + + diff --git a/AppKit/TestData/GTMUILocalizerWindow1State.gtmUTState b/AppKit/TestData/GTMUILocalizerWindow1State.gtmUTState new file mode 100644 index 0000000..4884074 --- /dev/null +++ b/AppKit/TestData/GTMUILocalizerWindow1State.gtmUTState @@ -0,0 +1,147 @@ + + + + + $GTMArchive + GTMUnitTestingArchive + $GTMVersion + 1 + WindowContent + + ViewIsHidden + + ViewSubView 0 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Button + CellValue + 0 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 0 + ViewIsHidden + + + ViewSubView 1 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + ^Button2 + CellValue + 0 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 0 + ViewIsHidden + + + ViewSubView 2 + + TabItem 0 + + TabLabel + Localized Tab + TabView + + ViewIsHidden + + + + TabItem 1 + + TabLabel + ^Tab2 + TabView + + ViewIsHidden + + + + ViewIsHidden + + ViewSubView 0 + + ViewIsHidden + + + + ViewSubView 3 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Label + CellValue + Localized Label + + ControlTag + 0 + ControlType + NSTextField + ControlValue + Localized Label + ViewIsHidden + + + ViewSubView 4 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + ^Label2 + CellValue + ^Label2 + + ControlTag + 0 + ControlType + NSTextField + ControlValue + ^Label2 + ViewIsHidden + + + + WindowIsMain + + WindowIsVisible + + WindowTitle + Window + + diff --git a/AppKit/TestData/GTMUILocalizerWindow2State.gtmUTState b/AppKit/TestData/GTMUILocalizerWindow2State.gtmUTState new file mode 100644 index 0000000..fa3e97a --- /dev/null +++ b/AppKit/TestData/GTMUILocalizerWindow2State.gtmUTState @@ -0,0 +1,21 @@ + + + + + $GTMArchive + GTMUnitTestingArchive + $GTMVersion + 1 + WindowContent + + ViewIsHidden + + + WindowIsMain + + WindowIsVisible + + WindowTitle + Localized Window + + diff --git a/AppKit/TestData/Resources/English.lproj/Localizable.strings b/AppKit/TestData/Resources/English.lproj/Localizable.strings new file mode 100644 index 0000000..d8e1b4c Binary files /dev/null and b/AppKit/TestData/Resources/English.lproj/Localizable.strings differ -- cgit v1.2.3