From c40d56967fe4ce644fa0b537a0214ec405134d0f Mon Sep 17 00:00:00 2001 From: Gunter Hager Date: Tue, 15 Mar 2016 19:01:16 +0100 Subject: [PATCH] Implemented deleting nodes with outlets in IB --- lib/fame/interface_builder.rb | 14 ++++- lib/fame/version.rb | 2 +- .../Example/Example.xcodeproj/project.pbxproj | 60 +++++++++++++++++++ .../Example/Base.lproj/Main.storyboard | 2 +- .../Example/de.lproj/InfoPlist.strings | 1 + .../Example/de.lproj/LaunchScreen.strings | 1 + .../Example/de.lproj/Localizable.strings | 1 + .../Example/Example/de.lproj/Main.strings | 21 +++---- .../Example/Example/de.lproj/View.strings | 2 +- .../Example/en.lproj/InfoPlist.strings | 6 ++ .../Example/en.lproj/LaunchScreen.strings | 1 + .../Example/en.lproj/Localizable.strings | 6 ++ .../Example/Example/en.lproj/Main.strings | 35 ++++++----- .../Example/Example/en.lproj/View.strings | 5 +- .../ExampleTests/de.lproj/InfoPlist.strings | 1 + .../ExampleTests/en.lproj/InfoPlist.strings | 6 ++ .../ExampleUITests/de.lproj/InfoPlist.strings | 1 + .../ExampleUITests/en.lproj/InfoPlist.strings | 6 ++ platform/Example/{ => Localizations}/de.xliff | 7 +-- platform/Example/{ => Localizations}/en.xliff | 8 +-- 20 files changed, 145 insertions(+), 41 deletions(-) create mode 100644 platform/Example/Example/de.lproj/InfoPlist.strings create mode 100644 platform/Example/Example/de.lproj/LaunchScreen.strings create mode 100644 platform/Example/Example/de.lproj/Localizable.strings create mode 100644 platform/Example/Example/en.lproj/InfoPlist.strings create mode 100644 platform/Example/Example/en.lproj/LaunchScreen.strings create mode 100644 platform/Example/Example/en.lproj/Localizable.strings create mode 100644 platform/Example/ExampleTests/de.lproj/InfoPlist.strings create mode 100644 platform/Example/ExampleTests/en.lproj/InfoPlist.strings create mode 100644 platform/Example/ExampleUITests/de.lproj/InfoPlist.strings create mode 100644 platform/Example/ExampleUITests/en.lproj/InfoPlist.strings rename platform/Example/{ => Localizations}/de.xliff (94%) rename platform/Example/{ => Localizations}/en.xliff (94%) diff --git a/lib/fame/interface_builder.rb b/lib/fame/interface_builder.rb index e4d24ae..e31713c 100644 --- a/lib/fame/interface_builder.rb +++ b/lib/fame/interface_builder.rb @@ -34,7 +34,7 @@ def nodes raw_nodes = doc.xpath("//userDefinedRuntimeAttribute[@keyPath='#{LOCALIZATION_ENABLED_KEYPATH}']") # Map raw nodes info to instances of LocalizedNode - raw_nodes.map do |node| + user_defined_nodes = raw_nodes.map do |node| parent = node.parent.parent # i.e. UILabel, UISwitch, etc. vc = parent.xpath("ancestor::viewController") # the view controller of the element (only available in .storyboard files) element_name = parent.name # i.e. label, switch @@ -46,6 +46,18 @@ def nodes LocalizedNode.new(node, original_id, vc_name, element_name, i18n_enabled, i18n_comment) end + + # Grab raw nodes that have outlets (i.e. they are dynamically set in code) + raw_outlet_nodes = doc.xpath("//outlet") + + # Map raw nodes info to instances of LocalizedNode (they will all have i18n_enabled set to false) + outlet_nodes = raw_outlet_nodes.map do |node| + original_id = node['destination'] + i18n_enabled = false + LocalizedNode.new(node, original_id, nil, nil, i18n_enabled, nil) + end + + user_defined_nodes + outlet_nodes end # diff --git a/lib/fame/version.rb b/lib/fame/version.rb index ff0df5f..f861525 100644 --- a/lib/fame/version.rb +++ b/lib/fame/version.rb @@ -1,3 +1,3 @@ module Fame - VERSION = "0.1" + VERSION = "0.1.1" end diff --git a/platform/Example/Example.xcodeproj/project.pbxproj b/platform/Example/Example.xcodeproj/project.pbxproj index f98fb3f..1769ee6 100644 --- a/platform/Example/Example.xcodeproj/project.pbxproj +++ b/platform/Example/Example.xcodeproj/project.pbxproj @@ -17,6 +17,10 @@ 4D8D894B1C8073FE004DD23A /* View.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4D8D89491C8073FE004DD23A /* View.xib */; }; 4DA64ECD1C85E53A00894E22 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DA64ECC1C85E53A00894E22 /* SecondViewController.swift */; }; 4DE85E1D1C8478D50073D5A0 /* Fame.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DE85E1C1C8478D50073D5A0 /* Fame.swift */; }; + BC3D81001C91C8DE0040AF2A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BC3D81021C91C8DE0040AF2A /* InfoPlist.strings */; }; + BC3D81051C91C8DE0040AF2A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = BC3D81071C91C8DE0040AF2A /* Localizable.strings */; }; + BC3D810A1C91C8DF0040AF2A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BC3D810C1C91C8DF0040AF2A /* InfoPlist.strings */; }; + BC3D81101C91C8E00040AF2A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BC3D81121C91C8E00040AF2A /* InfoPlist.strings */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -57,6 +61,16 @@ 4D8D894F1C80743C004DD23A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/View.strings; sourceTree = ""; }; 4DA64ECC1C85E53A00894E22 /* SecondViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = ""; }; 4DE85E1C1C8478D50073D5A0 /* Fame.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Fame.swift; path = ../../Fame.swift; sourceTree = ""; }; + BC3D81011C91C8DE0040AF2A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; + BC3D81061C91C8DE0040AF2A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; + BC3D810B1C91C8DF0040AF2A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; + BC3D810D1C91C8DF0040AF2A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/LaunchScreen.strings; sourceTree = ""; }; + BC3D81111C91C8E00040AF2A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; + BC3D81131C91C9030040AF2A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + BC3D81141C91C9030040AF2A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + BC3D81151C91C9040040AF2A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + BC3D81161C91C9040040AF2A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/LaunchScreen.strings; sourceTree = ""; }; + BC3D81171C91C9040040AF2A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -107,6 +121,8 @@ 4D01B0B61C7EFB0F00AAD90C /* Example */ = { isa = PBXGroup; children = ( + BC3D81071C91C8DE0040AF2A /* Localizable.strings */, + BC3D81021C91C8DE0040AF2A /* InfoPlist.strings */, 4D01B0B71C7EFB0F00AAD90C /* AppDelegate.swift */, 4D01B0B91C7EFB0F00AAD90C /* FirstViewController.swift */, 4DA64ECC1C85E53A00894E22 /* SecondViewController.swift */, @@ -123,6 +139,7 @@ 4D01B0CB1C7EFB1000AAD90C /* ExampleTests */ = { isa = PBXGroup; children = ( + BC3D810C1C91C8DF0040AF2A /* InfoPlist.strings */, 4D01B0CC1C7EFB1000AAD90C /* ExampleTests.swift */, 4D01B0CE1C7EFB1000AAD90C /* Info.plist */, ); @@ -132,6 +149,7 @@ 4D01B0D61C7EFB1000AAD90C /* ExampleUITests */ = { isa = PBXGroup; children = ( + BC3D81121C91C8E00040AF2A /* InfoPlist.strings */, 4D01B0D71C7EFB1000AAD90C /* ExampleUITests.swift */, 4D01B0D91C7EFB1000AAD90C /* Info.plist */, ); @@ -244,9 +262,11 @@ buildActionMask = 2147483647; files = ( 4D8D894B1C8073FE004DD23A /* View.xib in Resources */, + BC3D81051C91C8DE0040AF2A /* Localizable.strings in Resources */, 4D01B0F91C7F15D500AAD90C /* Main.storyboard in Resources */, 4D01B0BF1C7EFB1000AAD90C /* Assets.xcassets in Resources */, 4D01B0F81C7F15D500AAD90C /* LaunchScreen.storyboard in Resources */, + BC3D81001C91C8DE0040AF2A /* InfoPlist.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -254,6 +274,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + BC3D810A1C91C8DF0040AF2A /* InfoPlist.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -261,6 +282,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + BC3D81101C91C8E00040AF2A /* InfoPlist.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -314,6 +336,8 @@ isa = PBXVariantGroup; children = ( 4D01B1041C7F160000AAD90C /* Base */, + BC3D810D1C91C8DF0040AF2A /* de */, + BC3D81161C91C9040040AF2A /* en */, ); name = LaunchScreen.storyboard; sourceTree = ""; @@ -338,6 +362,42 @@ name = View.xib; sourceTree = ""; }; + BC3D81021C91C8DE0040AF2A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + BC3D81011C91C8DE0040AF2A /* de */, + BC3D81131C91C9030040AF2A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + BC3D81071C91C8DE0040AF2A /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + BC3D81061C91C8DE0040AF2A /* de */, + BC3D81141C91C9030040AF2A /* en */, + ); + name = Localizable.strings; + sourceTree = ""; + }; + BC3D810C1C91C8DF0040AF2A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + BC3D810B1C91C8DF0040AF2A /* de */, + BC3D81151C91C9040040AF2A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + BC3D81121C91C8E00040AF2A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + BC3D81111C91C8E00040AF2A /* de */, + BC3D81171C91C9040040AF2A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ diff --git a/platform/Example/Example/Base.lproj/Main.storyboard b/platform/Example/Example/Base.lproj/Main.storyboard index 1c893dc..8441934 100644 --- a/platform/Example/Example/Base.lproj/Main.storyboard +++ b/platform/Example/Example/Base.lproj/Main.storyboard @@ -126,7 +126,7 @@ diff --git a/platform/Example/Example/de.lproj/InfoPlist.strings b/platform/Example/Example/de.lproj/InfoPlist.strings new file mode 100644 index 0000000..dc62739 --- /dev/null +++ b/platform/Example/Example/de.lproj/InfoPlist.strings @@ -0,0 +1 @@ +/* No Localized Strings */ \ No newline at end of file diff --git a/platform/Example/Example/de.lproj/LaunchScreen.strings b/platform/Example/Example/de.lproj/LaunchScreen.strings new file mode 100644 index 0000000..dc62739 --- /dev/null +++ b/platform/Example/Example/de.lproj/LaunchScreen.strings @@ -0,0 +1 @@ +/* No Localized Strings */ \ No newline at end of file diff --git a/platform/Example/Example/de.lproj/Localizable.strings b/platform/Example/Example/de.lproj/Localizable.strings new file mode 100644 index 0000000..dc62739 --- /dev/null +++ b/platform/Example/Example/de.lproj/Localizable.strings @@ -0,0 +1 @@ +/* No Localized Strings */ \ No newline at end of file diff --git a/platform/Example/Example/de.lproj/Main.strings b/platform/Example/Example/de.lproj/Main.strings index 1e9f112..fdbd99e 100644 --- a/platform/Example/Example/de.lproj/Main.strings +++ b/platform/Example/Example/de.lproj/Main.strings @@ -1,23 +1,24 @@ -/* label.text: A fancy Label */ -"R52-bk-905.text" = "Label (de)"; +/* Class = "UINavigationItem"; title = "First ViewController"; ObjectID = "4Bk-Mt-SxL"; */ +"4Bk-Mt-SxL.title" = "First ViewController (de)"; -/* button.normalTitle: An awesome Button */ +/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "JOe-j0-s5G"; */ "JOe-j0-s5G.normalTitle" = "Button (de)"; -/* textField.placeholder: A gorgeous TextField */ +/* Class = "UILabel"; text = "Label"; ObjectID = "R52-bk-905"; */ +"R52-bk-905.text" = "Label (de)"; + +/* Class = "UITextField"; placeholder = "Placeholder Text"; ObjectID = "gwT-Xy-34b"; */ "gwT-Xy-34b.placeholder" = "Placeholder Text (de)"; -/* textField.text: A gorgeous TextField */ +/* Class = "UITextField"; text = "Text"; ObjectID = "gwT-Xy-34b"; */ "gwT-Xy-34b.text" = "Text (de)"; -/* segmentedControl.segmentTitles[0]: An outstanding SegmentedControl */ +/* Class = "UISegmentedControl"; l0d-C1-RK1.segmentTitles[0] = "First"; ObjectID = "l0d-C1-RK1"; */ "l0d-C1-RK1.segmentTitles[0]" = "First (de)"; -/* segmentedControl.segmentTitles[1]: An outstanding SegmentedControl */ +/* Class = "UISegmentedControl"; l0d-C1-RK1.segmentTitles[1] = "Second"; ObjectID = "l0d-C1-RK1"; */ "l0d-C1-RK1.segmentTitles[1]" = "Second (de)"; -/* barButtonItem.title: An unbelievable BarButtonItem */ +/* Class = "UIBarButtonItem"; title = "BarButtonItem"; ObjectID = "lFA-pn-E9n"; */ "lFA-pn-E9n.title" = "BarButtonItem (de)"; -/* navigationItem.title: An uber NavigationItem */ -"4Bk-Mt-SxL.title" = "First ViewController (de)"; \ No newline at end of file diff --git a/platform/Example/Example/de.lproj/View.strings b/platform/Example/Example/de.lproj/View.strings index 3bffd29..5c31867 100644 --- a/platform/Example/Example/de.lproj/View.strings +++ b/platform/Example/Example/de.lproj/View.strings @@ -1,3 +1,3 @@ - /* Class = "UILabel"; text = "Label in XIB"; ObjectID = "Rfi-2u-xEd"; */ "Rfi-2u-xEd.text" = "Label in XIB"; + diff --git a/platform/Example/Example/en.lproj/InfoPlist.strings b/platform/Example/Example/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..c9c9bb2 --- /dev/null +++ b/platform/Example/Example/en.lproj/InfoPlist.strings @@ -0,0 +1,6 @@ +/* (No Commment) */ +"CFBundleName" = "$(PRODUCT_NAME)"; + +/* (No Commment) */ +"CFBundleShortVersionString" = "1.0"; + diff --git a/platform/Example/Example/en.lproj/LaunchScreen.strings b/platform/Example/Example/en.lproj/LaunchScreen.strings new file mode 100644 index 0000000..dc62739 --- /dev/null +++ b/platform/Example/Example/en.lproj/LaunchScreen.strings @@ -0,0 +1 @@ +/* No Localized Strings */ \ No newline at end of file diff --git a/platform/Example/Example/en.lproj/Localizable.strings b/platform/Example/Example/en.lproj/Localizable.strings new file mode 100644 index 0000000..ffba74b --- /dev/null +++ b/platform/Example/Example/en.lproj/Localizable.strings @@ -0,0 +1,6 @@ +/* First dynamic text, should be short */ +"secondViewController.dynamicLabel.text" = "First Dynamic Label Text"; + +/* Second dynamic text, can be longer */ +"secondViewController.dynamicLabel2.text" = "Second Dynamic Label Text"; + diff --git a/platform/Example/Example/en.lproj/Main.strings b/platform/Example/Example/en.lproj/Main.strings index 57f6b4d..e6412bd 100644 --- a/platform/Example/Example/en.lproj/Main.strings +++ b/platform/Example/Example/en.lproj/Main.strings @@ -1,29 +1,36 @@ -/* FirstViewController label text: A fancy Label */ -"R52-bk-905.text" = "Label"; +/* Class = "UINavigationItem"; title = "First ViewController"; ObjectID = "4Bk-Mt-SxL"; */ +"4Bk-Mt-SxL.title" = "First ViewController"; -/* FirstViewController button normalTitle: An awesome Button */ +/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "JOe-j0-s5G"; */ "JOe-j0-s5G.normalTitle" = "Button"; -/* FirstViewController textField placeholder: A gorgeous TextField */ +/* Class = "UILabel"; text = "Dynamic label"; ObjectID = "Pgq-eq-Uvk"; */ +"Pgq-eq-Uvk.text" = "Dynamic label"; + +/* Class = "UILabel"; text = "Label"; ObjectID = "R52-bk-905"; */ +"R52-bk-905.text" = "Label"; + +/* Class = "UINavigationItem"; title = "Second ViewController"; ObjectID = "SAx-7C-11b"; */ +"SAx-7C-11b.title" = "Second ViewController"; + +/* Class = "UITextField"; placeholder = "Placeholder Text"; ObjectID = "gwT-Xy-34b"; */ "gwT-Xy-34b.placeholder" = "Placeholder Text"; -/* FirstViewController textField text: A gorgeous TextField */ +/* Class = "UITextField"; text = "Text"; ObjectID = "gwT-Xy-34b"; */ "gwT-Xy-34b.text" = "Text"; -/* FirstViewController segmentedControl segmentTitles[0]: An outstanding SegmentedControl */ +/* Class = "UISegmentedControl"; l0d-C1-RK1.segmentTitles[0] = "First"; ObjectID = "l0d-C1-RK1"; */ "l0d-C1-RK1.segmentTitles[0]" = "First"; -/* FirstViewController navigationItem title: An uber NavigationItem */ -"4Bk-Mt-SxL.title" = "First ViewController"; +/* Class = "UISegmentedControl"; l0d-C1-RK1.segmentTitles[1] = "Second"; ObjectID = "l0d-C1-RK1"; */ +"l0d-C1-RK1.segmentTitles[1]" = "Second"; -/* FirstViewController barButtonItem title: An unbelievable BarButtonItem */ +/* Class = "UIBarButtonItem"; title = "BarButtonItem"; ObjectID = "lFA-pn-E9n"; */ "lFA-pn-E9n.title" = "BarButtonItem"; -/* FirstViewController segmentedControl segmentTitles[1]: An outstanding SegmentedControl */ -"l0d-C1-RK1.segmentTitles[1]" = "Second"; +/* Class = "UILabel"; text = "Dynamic label 2"; ObjectID = "si2-WH-Hr5"; */ +"si2-WH-Hr5.text" = "Dynamic label 2"; -/* SecondViewController label text: A fancy label in a second view controller */ +/* Class = "UILabel"; text = "Second view controller label"; ObjectID = "uHO-0u-WyN"; */ "uHO-0u-WyN.text" = "Second view controller label"; -/* SecondViewController navigationItem title: Second navigation item */ -"SAx-7C-11b.title" = "Second ViewController"; \ No newline at end of file diff --git a/platform/Example/Example/en.lproj/View.strings b/platform/Example/Example/en.lproj/View.strings index b16fe57..5c31867 100644 --- a/platform/Example/Example/en.lproj/View.strings +++ b/platform/Example/Example/en.lproj/View.strings @@ -1,2 +1,3 @@ -/* label text: A fancy view in a xib file */ -"Rfi-2u-xEd.text" = "Label in XIB"; \ No newline at end of file +/* Class = "UILabel"; text = "Label in XIB"; ObjectID = "Rfi-2u-xEd"; */ +"Rfi-2u-xEd.text" = "Label in XIB"; + diff --git a/platform/Example/ExampleTests/de.lproj/InfoPlist.strings b/platform/Example/ExampleTests/de.lproj/InfoPlist.strings new file mode 100644 index 0000000..dc62739 --- /dev/null +++ b/platform/Example/ExampleTests/de.lproj/InfoPlist.strings @@ -0,0 +1 @@ +/* No Localized Strings */ \ No newline at end of file diff --git a/platform/Example/ExampleTests/en.lproj/InfoPlist.strings b/platform/Example/ExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..c9c9bb2 --- /dev/null +++ b/platform/Example/ExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,6 @@ +/* (No Commment) */ +"CFBundleName" = "$(PRODUCT_NAME)"; + +/* (No Commment) */ +"CFBundleShortVersionString" = "1.0"; + diff --git a/platform/Example/ExampleUITests/de.lproj/InfoPlist.strings b/platform/Example/ExampleUITests/de.lproj/InfoPlist.strings new file mode 100644 index 0000000..dc62739 --- /dev/null +++ b/platform/Example/ExampleUITests/de.lproj/InfoPlist.strings @@ -0,0 +1 @@ +/* No Localized Strings */ \ No newline at end of file diff --git a/platform/Example/ExampleUITests/en.lproj/InfoPlist.strings b/platform/Example/ExampleUITests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..c9c9bb2 --- /dev/null +++ b/platform/Example/ExampleUITests/en.lproj/InfoPlist.strings @@ -0,0 +1,6 @@ +/* (No Commment) */ +"CFBundleName" = "$(PRODUCT_NAME)"; + +/* (No Commment) */ +"CFBundleShortVersionString" = "1.0"; + diff --git a/platform/Example/de.xliff b/platform/Example/Localizations/de.xliff similarity index 94% rename from platform/Example/de.xliff rename to platform/Example/Localizations/de.xliff index bd89c7e..5a895d4 100644 --- a/platform/Example/de.xliff +++ b/platform/Example/Localizations/de.xliff @@ -56,10 +56,7 @@ BarButtonItem (de) [FirstViewController barButtonItem] An unbelievable BarButtonItem - - Dynamic label 2 - Class = "UILabel"; text = "Dynamic label 2"; ObjectID = "si2-WH-Hr5"; - + Second view controller label [SecondViewController label] A fancy label in a second view controller @@ -91,7 +88,7 @@ - +
diff --git a/platform/Example/en.xliff b/platform/Example/Localizations/en.xliff similarity index 94% rename from platform/Example/en.xliff rename to platform/Example/Localizations/en.xliff index 2c9df42..708bca7 100644 --- a/platform/Example/en.xliff +++ b/platform/Example/Localizations/en.xliff @@ -57,11 +57,7 @@ BarButtonItem [FirstViewController barButtonItem] An unbelievable BarButtonItem - - Dynamic label 2 - Dynamic label 2 - Class = "UILabel"; text = "Dynamic label 2"; ObjectID = "si2-WH-Hr5"; - + Second view controller label Second view controller label @@ -96,7 +92,7 @@
- +