{"id":99,"date":"2016-09-15T14:03:16","date_gmt":"2016-09-15T13:03:16","guid":{"rendered":"http:\/\/www.contentecontent.com\/blog\/?p=99"},"modified":"2016-09-15T14:07:39","modified_gmt":"2016-09-15T13:07:39","slug":"xcode-localize-ios-project-strings","status":"publish","type":"post","link":"https:\/\/www.contentecontent.com\/blog\/2016\/09\/xcode-localize-ios-project-strings\/","title":{"rendered":"Xcode &#8211; localize iOS project strings"},"content":{"rendered":"<p>Writing this down as I usually forget how to localize text in <code>MyProject-Info.plist<\/code>.<\/p>\n<ul>\n<li>\n<p>Left hand column, select Resources folder<\/p>\n<\/li>\n<li>\n<p>Right click > New file&#8230; > Resource, Strings File<\/p>\n<\/li>\n<li>\n<p>Save file as <code>InfoPlist.strings<\/code><\/p>\n<\/li>\n<li>\n<p>Open the file in the editor, enter strings to localize, like<\/p>\n<p><code>NSLocationWhenInUseUsageDescription = \u201cShow your location on the map\u201d;<\/code><\/p>\n<\/li>\n<li>\n<p>Save file<\/p>\n<\/li>\n<li>\n<p>In right hand column, click Localize button (makes the file localizable)<\/p>\n<\/li>\n<li>\n<p>Now go to the project\u2019s Localizations settings (under Project > Info)<\/p>\n<\/li>\n<li>\n<p>Click Add language and select InfoPlist.strings<\/p>\n<\/li>\n<li>\n<p>In the left hand column, there now are two entries under InfoPlist.strings. Edit as you please.<\/p>\n<\/li>\n<\/ul>\n<p>Works in Xcode 7 and 8.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Writing this down as I usually forget how to localize text in MyProject-Info.plist. Left hand column, select Resources folder Right click > New file&#8230; > Resource, Strings File Save file as InfoPlist.strings Open the file in the editor, enter strings to localize, like NSLocationWhenInUseUsageDescription = \u201cShow your location on the map\u201d; Save file In right &hellip; <a href=\"https:\/\/www.contentecontent.com\/blog\/2016\/09\/xcode-localize-ios-project-strings\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Xcode &#8211; localize iOS project strings<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[15,16],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-misc","tag-ios","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":4,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}