<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Localization on The Dangling Pointer</title><link>https://aaron.blog/tags/localization/</link><description>Recent content in Localization on The Dangling Pointer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 22 Jan 2016 14:09:31 +0000</lastBuildDate><atom:link href="https://aaron.blog/tags/localization/index.xml" rel="self" type="application/rss+xml"/><item><title>Swizzling in AFNetworking somehow breaks iOS' NSDoubleLocalizedStrings</title><link>https://aaron.blog/swizzling-in-afnetworking-somehow-breaks-ios-nsdoublelocalizedstrings/</link><pubDate>Fri, 22 Jan 2016 14:09:31 +0000</pubDate><guid>https://aaron.blog/swizzling-in-afnetworking-somehow-breaks-ios-nsdoublelocalizedstrings/</guid><description>&lt;h1 id="tools-to-help-test-localization"&gt;Tools to Help Test Localization&lt;/h1&gt;&lt;p&gt;Apple provides some pretty slick tools to help with localization testing in your apps. I had completely forgotten about two launch parameters that make it possible to find those pesky layout problems early:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;code&gt;NSDoubleLocalizedStrings&lt;/code&gt; - Any calls made to &lt;code&gt;NSLocalizedString&lt;/code&gt; will double the strings to simulate languages with longer words, like German.&lt;/li&gt;&lt;li&gt;&lt;code&gt;NSShowNonLocalizedStrings&lt;/code&gt; - Replaces any text from &lt;code&gt;NSLocalizedString&lt;/code&gt; that doesn't have an entry in a strings file.&lt;/li&gt;&lt;li&gt;&lt;code&gt;AppleTextDirection&lt;/code&gt; - Simulates a Left to Right language.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;In Xcode 7 there is an easier way to provide these options. Edit the scheme for your app, click on the Run section, then the Options tab. You'll see Application Language has two options - &lt;em&gt;Double Length Pseudolanguage&lt;/em&gt; and &lt;em&gt;Right to Left Pseudolanguage&lt;/em&gt;. There is also a check box for &lt;em&gt;Show non-localized strings&lt;/em&gt;. These three options are equivalent to the launch arguments above.&lt;/p&gt;</description></item></channel></rss>