Closed
Bug 451649
Opened 16 years ago
Closed 16 years ago
[silme] properties parser ignores entities which beginns with spaces
Categories
(Mozilla Localizations :: Infrastructure, defect)
Mozilla Localizations
Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: adriank, Unassigned)
References
Details
(Whiteboard: [compare-locales compat])
The properties parser in Silme ignores entities which beginns with spaces like " stateBlockedPolicy=This download has been blocked by your Security Zone Policy" in toolkit/locales/en-US/chrome/mozapps/downloads/downloads.properties. I think that we need to change this regexp: entityPattern = re.compile('^([^#!\s\r\n][^=:\r\n]*?)\s*[:=][ \t]*(.*?)[ \t]*$',re.M) to solve the problem.
Reporter | ||
Updated•16 years ago
|
Whiteboard: [compare-locales compat]
Comment 1•16 years ago
|
||
Oh, sure. Please, take a look at Pike's regexp for properties and also make sure that your regexp covers multiline properties. Then give me a patch and we're done :)
Reporter | ||
Comment 2•16 years ago
|
||
thanks Gandalf :)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•