Comments (4)
I got a response from Václav Slavík (Poedit):
You observed a design shortcoming in GNU gettext (not Poedit) which uses whitespace as delimiters for multiple source code references (under the not-entirely-unreasonable assumption of source code using sane paths, i.e. without spaces) as well as a bug in GetText.NET Extractor (PO files’s references are Unix paths, not Windows ones).
There really isn’t anything Poedit can do about it. GNU gettext might, but I suspect they’re opinion would be pragmatic: just don’t use spaces in source code paths, it’s just asking for problems everywhere. And the PO spec is too old and too widespread to be amended to handle this edge case.
Regards, Václav
from gettext.net.
available in 0.9.7 using commandline paramater -u or --unixstyle
from gettext.net.
This seems to be an issue in PoEdit, either style (forward slash or backslash path separator) works well on Windows systems, and PoEdit can open the references just fine even with blanks in the path.
The issue only happends when PoEdit saves the file.
Doesn't even work to quote the path like #: ".\Path with spaces\2.cs":13, PoEdit still breaks on the second reference when saved in PoEdit, but furthermore can't open the path when quoted.
Therefore I'd suggest to open an issue with PoEdit.
If you have a reference or documentation if/how path with blanks shall be quoted, I'm open to adapt, else I see this working well from Extractor-side but somehow failing in PoEdit.
from gettext.net.
I'm thinking to make the path separator configurable via command line option, but that wouldn't help anything with spaces in code path. Hence the pragmatical solution as recommended is just to avoid spaces in the source code path.
from gettext.net.
Related Issues (20)
- Another control properties HOT 5
- ObjectListView columns' header title doesn't localize HOT 4
- Non-localizable controls
- Escaped strings are not correctly handled HOT 7
- Language headers are not parsed HOT 8
- ContextMenuStrip is not localized HOT 3
- Extractor fails when enum description not applied on all members
- GetText.Extractor: bug with ternary operator ?: HOT 6
- Non-localizable control-content
- Unhandled exception: System.ArgumentException: The SetHandler call for command 'GetText.Extractor' is missing an Argument or Option for the parameter at position 4 HOT 2
- PathExtension requires Windows dll import HOT 6
- Bug (?) with aliases requiring member syntax HOT 2
- GetText.Extractor output is nondetererministic HOT 2
- Extractor wrongly extracts interpolated strings with strings inside of them HOT 3
- Refactor commandline options for CommandLine package upgrade limiting options to 8
- Upgrade (Extractor) to .NET 6 HOT 2
- Strong name signing assemblies HOT 2
- Wrong text extraction HOT 6
- Ignore wrongly extracted string HOT 3
- This can work with GtkSharp and glade file?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gettext.net.