Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Path of an Objective-C project.
#### Output

1. warnings for untranslated strings in *.m
2. warnings for unused keys in Localization.strings
2. warnings for unused keys in Localization.strings (except lines ending with //#ignore)
)
3. errors for keys defined twice or more in the same .strings file

#### Typical usage
Expand Down
4 changes: 4 additions & 0 deletions objc_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def language_code_in_strings_path(p):
return None

def key_in_string(s):
m = re.search("\/\/#ignore\s*$", s);
if m: # Lines ending with "//#ignore" will be ignored
return None

m = re.search("(?u)^\"(.*?)\"\s*=", s)
if not m:
return None
Expand Down