Lines Matching +refs:po +refs:set +refs:msgid
65 msgid: str = msg.msgid
68 before = msgid[:m.start(0)]
88 in_msgid = re.findall('%<[^%]+%>', msgid)
91 if set(in_msgid) != set(in_msgstr):
99 for match in re.finditer(r'\S+', msgid):
119 for match in re.finditer("[^%]'", msgid):
130 for match in re.finditer('(.?[a-zA-Z0-9])%<', msgid):
146 for match in re.finditer('_', msgid):
160 if re.search(r'\bmay not\b', msgid):
166 if msgid.count('%<') != msgid.count('%>'):
182 if re.search(r'[.] [A-Z]', msgid):
191 match = re.search("%<%s%>|'%s'|\"%s\"|`%s'", msgid)
208 def lint_diagnostics_differing_only_in_placeholders(po: polib.POFile):
220 for msg in po:
222 msgid = msg.msgid
224 normalized = re.sub('%<[^%]+%>', '%qs', msgid)
227 seen[msgid] = msg
238 def lint_file(po: polib.POFile):
239 for msg in po:
246 lint_diagnostics_differing_only_in_placeholders(po)
255 po = polib.pofile(args.file)
256 lint_file(po)