Comments (10)
\ Bug #80 has been marked as a duplicate of this bug. *
from translate.
Hmmm, not sure what the best thing to do here is, so will look at this later.
Thanks for reporting.
from translate.
Created [attachment 35](http://bugs.locamotion.org/attachment.cgi?id=35)
Mozilla DTD with spaces
This is a cut down version of update.dtd from Mozilla Firefox 1.5. It contains
only pretty printed entries that have uneeded spaces, everything else has been
deleted.
from translate.
There is also a second problem. Items that are converted seem to be using CRLF
within the entity so when we transfer this to PO we have ^M characters carried
over. These should be removed.
I haven’t created a seperate bug report as this can probably be fixed with the
same effort to fix the preceding spaces.
from translate.
Created a test and patch. Committed to CVS. This solves the starting
whitespace but not the line endings problem.
from translate.
See Bug #79 for the line ending problem.
from translate.
That was Bug #86 for the line ending problem!
from translate.
This needs some more thinking in terms of the followin:
- spaces at the start of the string (test committed to 0.8 branch)
- how to wrap subsequent strings together (my guess is we convert the newline
and subsequent whitespace into a single whitespace character)
So reopening this bug
from translate.
Comitted a fix to CVS with tests. We now do the following:
- Single line elements are left untreated
- Multiline
\* Space at the start of the first line are preserved
\* Whitespace at the start of all subsequent lines is removed
\* All lines except the last have one whitespace character
(ensures that when join lines we don’t join words inadvertantly.)
from translate.
Comitted a test to 0.8 branch test_po2dtd.py v 1.7.2.3 to validate merging
translations back into a pretty printed entity
from translate.
Related Issues (20)
- Ben
- Android: Some strings marked as `translatable="false"` still treated as translatable HOT 2
- Code block not parsed from Markdown HOT 3
- Proposal to use mdit-py-i18n (along with markdown-it-py) for Markdown support HOT 7
- Reduce question mark escaping in Android
- tests/translate/convert/test_rc2po.py failures with Python 3.12 HOT 7
- Translate
- Use Windows newlines for resx files
- Do not include "Explanation" field in iOS strings files HOT 2
- Add support for Mobile Kotlin resources HOT 3
- Locations for Markdown HOT 1
- Add support for Apple String Catalogs HOT 3
- Weird handling of C1 control characters in .properties files HOT 3
- Translate org app requests HOT 3
- Removing items during iteration can result in bugs HOT 1
- Inconsistent indentation / no indentation preservation HOT 2
- po2prop ignore personality argument when processing strings file. HOT 1
- More consistent line breaks in generated po files HOT 8
- po2csv | How to convert multiple files
- Support for metainfo files
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 translate.