{"id":2118,"date":"2016-09-27T02:00:25","date_gmt":"2016-09-27T06:00:25","guid":{"rendered":"http:\/\/www.rexfeng.com\/blog\/?p=2118"},"modified":"2016-09-27T02:00:25","modified_gmt":"2016-09-27T06:00:25","slug":"use-nslocalizedstring-for-user-facing-strings","status":"publish","type":"post","link":"https:\/\/www.rexfeng.com\/blog\/2016\/09\/use-nslocalizedstring-for-user-facing-strings\/","title":{"rendered":"Use NSLocalizedString for user facing strings"},"content":{"rendered":"<p>Just a quick iOS tip I wish I knew earlier. Would&#8217;ve saved me some time &amp; headache:<\/p>\n<blockquote><p>Always wrap user-facing strings with NSLocalizedString.<\/p>\n<p>Even if you don\u2019t plan to localize your app into any other languages, there is immense utility in being able to easily review all of the strings that a user will see. And if localization is in the cards, it\u2019s significantly easier to NSLocalize your strings as you go along the first time, then try to find all of them after-the-fact.<\/p><\/blockquote>\n<p>via\u00a0<a href=\"http:\/\/nshipster.com\/nslocalizedstring\/\">http:\/\/nshipster.com\/nslocalizedstring\/<\/a><\/p>\n<p>The advice is sound. It won&#8217;t cost you any time to use\u00a0NSLocalizedString the first time, but it will help save time if\/when you localize.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a quick iOS tip I wish I knew earlier. Would&#8217;ve saved me some time &amp; headache: Always wrap user-facing strings with NSLocalizedString. Even if you don\u2019t plan to localize your app into any other languages, there is immense utility in being able to easily review all of the strings that a user will see. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1029],"tags":[966,1301,1300,1302],"class_list":["post-2118","post","type-post","status-publish","format-standard","hentry","category-programming","tag-ios","tag-localize","tag-nslocalizedstring","tag-translation"],"_links":{"self":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/comments?post=2118"}],"version-history":[{"count":3,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions"}],"predecessor-version":[{"id":2121,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions\/2121"}],"wp:attachment":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/media?parent=2118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/categories?post=2118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/tags?post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}