FlineDev / BartyCrouch

Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.
MIT License
1.36k stars 120 forks source link

#bc-ignore! for NSLocalizedString #15

Closed kafejo closed 8 years ago

kafejo commented 8 years ago

Is it possible to exclude NSLocalizedStrings that have #bc-ignore! in comment? The use case is that when we use .stringsdict to handle pluralization, we don't need to add these keys into Localizable.strings file.

Example

String.localizedStringWithFormat(NSLocalizedString("%d minute(s) ago", comment: "x minute(s) ago"), components.minute)

The %d minute(s) ago key will be taken from Localizable.stringsdict file, not from Localizable.strings.

Another possible solution is to scan Localizable.stringsdict file for keys and exclude them from Localizable.strings file.

kafejo commented 8 years ago

see #16 pull request

Jeehut commented 8 years ago

This was implemented in version 3.1.0. Thanks for reporting!