Clicky

iOS Dev Nugget 163 Testing Localization Using Launch Arguments (II)

.

Need to run a code review on your codebase? Hire me

In #103 Testing Localization Using Launch Arguments, we talked about using launch arguments to run your app to test your app's localization strings against specific languages. Often, when you are developing an app and laying out a screen, you don't have the localized strings for various languages ready yet. Changing layout to accommodate a label for another language later is harder and easy to miss. There's a launch argument that can help. Specify -NSDoubleLocalizedStrings YES and every string returned by NSLocalizedString will be doubled in width, effectively stimulating how localized text may look like.


Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues