From 39cdfdf63c5516b2f710351185a46a83b51c70e8 Mon Sep 17 00:00:00 2001 From: Evadne Wu Date: Wed, 16 May 2012 21:03:56 +0800 Subject: [PATCH] supports Storyboards --- localize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localize.py b/localize.py index aefc83a..b11d7f8 100755 --- a/localize.py +++ b/localize.py @@ -132,7 +132,7 @@ def export_xibs(language): # XIBs localization = open(language + os.path.sep + 'xib.strings.new', encoding='utf_16', mode='w+') - ibs = [name for name in os.listdir(os.getcwd()) if name.endswith('.xib') and not os.path.isdir(name)] + ibs = [name for name in os.listdir(os.getcwd()) if (name.endswith('.xib') or name.endswith('.storyboard')) and not os.path.isdir(name)] for ib in ibs: ib_strings = "en.lproj/" + ib + ".strings.new"