From 964eb74d7c536a45172722bbdad027c0920fb020 Mon Sep 17 00:00:00 2001 From: Kyle Sluder Date: Tue, 29 Oct 2013 16:37:31 -0700 Subject: [PATCH] If you try to reference the stringsdict configuration directly within the strings file, it crashes. --- StringDictTest/StringsDictTest.strings | 2 +- StringDictTest/StringsDictTest.stringsdict | 35 ++++++++++------------ 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/StringDictTest/StringsDictTest.strings b/StringDictTest/StringsDictTest.strings index 8c55913..35c0ece 100644 --- a/StringDictTest/StringsDictTest.strings +++ b/StringDictTest/StringsDictTest.strings @@ -6,4 +6,4 @@ Copyright (c) 2013 Kyle Sluder. All rights reserved. */ -"%d items" = "Unlocalized: %d items"; \ No newline at end of file +"%d items" = "%#@num_items@"; \ No newline at end of file diff --git a/StringDictTest/StringsDictTest.stringsdict b/StringDictTest/StringsDictTest.stringsdict index f8b49a8..7436b87 100644 --- a/StringDictTest/StringsDictTest.stringsdict +++ b/StringDictTest/StringsDictTest.stringsdict @@ -2,27 +2,22 @@ - %d items + num_items - NSStringLocalizedFormatKey - %#@num_items@ - num_items - - NSStringFormatSpecTypeKey - NSStringPluralRuleType - NSStringFormatValueTypeKey - d - zero - No items - one - One item - few - A few (aka %d) items - many - Many (aka %d) items - other - Multiple (aka %d) items - + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + zero + No items + one + One item + few + A few (aka %d) items + many + Many (aka %d) items + other + Multiple (aka %d) items