-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowing msgctxt lines without quotes #4
Conversation
Thank you for sharing, @MpDzik |
Hi, I was working on PO localization files using for Orchard CMS using the Better PO Editor. All the PO files had msgctx without double quotes and I was unable to use the editor since I could not open any PO file. I don't know if the standard requires the quotes but maybe it would be a good idea to also parse PO files without quotes. Maybe I could add a setting to the options dialog so this behavior can be enabled only for some users? |
I downloaded the Italian .po files and in the few .po files that I tested I can see that contexts have double quotes... For instance:
Nevertheless BetterPOEditor is not able to open those files, and I'm going to investigate this. Which language are you working on? Can you provide me the link one of the .po files with msgctxt that don't have double quotes? |
Polish language. Below is a sample file: #: ~/Modules/Libreo.Reports/Module.txt #: ~/Modules/Libreo.Reports/Module.txt #: ~/Modules/Libreo.Reports/Module.txt #: ~/Modules/Libreo.Reports/Module.txt #: ~/Modules/Libreo.Reports/Module.txt #: Libreo.Reports.Controllers.ReportsController #: Libreo.Reports.Controllers.ReportsController #: Libreo.Reports.Controllers.ReportsController #: Libreo.Reports.Controllers.ReportsController #: Libreo.Reports.Controllers.ReportsController #: Libreo.Reports.Controllers.ReportsController #: ~/Modules/Libreo.Reports/Views/Parts/Widget.ReportsLinks.cshtml #: ~/Modules/Libreo.Reports/Views/Reports/Index.cshtml #: ~/Modules/Libreo.Reports/Views/Reports/ReportParameters.cshtml |
In which file is this text in? I downloaded the file from http://www.orchardproject.net/localize/download/pl-PL but there is a ton of .po files... |
The file is named orchard.module.po. It's encoded in UTF-8 without BOM. It's not published with the Orchard repository, because I'm working on a private project based on Orchard. I shared the file on my SkyDrive: |
It seems that $ msgfmt orchard.module.po
orchard.module.po:3:10: syntax error
orchard.module.po:3: keyword "Modules" unknown
orchard.module.po:10:10: syntax error
orchard.module.po:10: keyword "Modules" unknown
orchard.module.po:17:10: syntax error
orchard.module.po:17: keyword "Modules" unknown
orchard.module.po:24:10: syntax error
orchard.module.po:24: keyword "Modules" unknown
orchard.module.po:31:10: syntax error
orchard.module.po:31: keyword "Modules" unknown
orchard.module.po:39: keyword "Libreo" unknown
orchard.module.po:39:15: syntax error
orchard.module.po:45: keyword "Libreo" unknown
orchard.module.po:45:15: syntax error
orchard.module.po:51: keyword "Libreo" unknown
orchard.module.po:51:15: syntax error
orchard.module.po:57: keyword "Libreo" unknown
orchard.module.po:57:15: syntax error
orchard.module.po:63: keyword "Libreo" unknown
orchard.module.po:63:15: syntax error
msgfmt: too many errors, aborting I added double quotes around $ msgfmt orchard.module-msgctx-with-quotes.po
(no errors) IMHO you should fix the procedure that is used to generate this .po file... I'm going to close this pull request because BetterPOEditor is not meant to work with broken .po fils, but I'm going to open an issue because it can't open official Orchard .po files (that have double-quotes in msgctxs)... |
No description provided.