Last active
April 1, 2016 15:32
-
-
Save dodikk/e57e45d4a6887b7ef37ac0e95e7cbffe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>REMINDER_PREVIEW_FORMAT</key> | |
<dict> | |
<key>NSStringLocalizedFormatKey</key> | |
<string>Take %1$#@lu_pills@ at %2$@</string> | |
<key>lu_pills</key> | |
<dict> | |
<key>NSStringFormatSpecTypeKey</key> | |
<string>NSStringPluralRuleType</string> | |
<key>NSStringFormatValueTypeKey</key> | |
<string>lu</string> | |
<key>one</key> | |
<string>Take %1$lu pill at %2$@</string> | |
<key>other</key> | |
<string>Take %1$lu pills at %2$@</string> | |
</dict> | |
</dict> | |
</dict> | |
</plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Take %1$#@lu_pills@ at %2$@ | |
NSString* format = NSLocalizedString(@"REMINDER_PREVIEW_FORMAT", nil); | |
NSString* result = [NSString localizedStringWithFormat:format | |
(unsigned long long)[reminder numberOfPills], | |
txtDate]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>REMINDER_PREVIEW_FORMAT</key> | |
<dict> | |
<key>NSStringLocalizedFormatKey</key> | |
<string>Take %1$#@lu_pills@ at %2$@</string> | |
<key>lu_total_runs</key> | |
<dict> | |
<key>NSStringFormatSpecTypeKey</key> | |
<string>NSStringPluralRuleType</string> | |
<key>NSStringFormatValueTypeKey</key> | |
<string>lu</string> | |
<key>one</key> | |
<string>Take %1$lu pill at %2$@</string> | |
<key>other</key> | |
<string>Take %1$lu pills at %2$@</string> | |
</dict> | |
</dict> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment