Comments (9)
Created [attachment 28](http://bugs.locamotion.org/attachment.cgi?id=28)
3 dirs with 2 po’s , templates and outputs in each, respectively
from translate.
Yet worse case when the record is dropped after some complicated comment contents…
from translate.
Created [attachment 29](http://bugs.locamotion.org/attachment.cgi?id=29)
snippet of dtd demonstrating how credit.translation is dropped after moz2po
The testcase or the previous comment.
from translate.
credit.translation being dropped was bug #15, and related to the emptiness of the
string rather than the comments. that is fixed in CVS and I have tested it comes
through properly.
from translate.
I have added a test for the comment duplication to test_dtd.py, so this is
reproducible and should be fixed shortly
from translate.
We were adding \n to the comment before stripping the comment from the line with
the result that if it had a trailing space, it came out as an unparsed line, and
so was repeated.
Doing the add after the stripping makes it work, this is now fixed in CVS and
the test passes (and your files seem to work) – can you verify when the next
snapshot is available / from CVS?
from translate.
\ Bug #73 has been marked as a duplicate of this bug. *
from translate.
Well, with rc5.20051129 all my submitted examples work correctly… with some minor discrepancies,
however… Newlines are being re-distributed after cdonversion, differently in different examples. I
did both conversion from existing (formerly attached) example .po’s and also complete moz2po-po2
moz roundtrips.
So, I feel somewhat uneasy about it. I understand that this is tedious and ungrateful work, but
perhaps it’d be worth to iron this out now, while we are at it?..
In example #1 (msgFolderPickerOverlay.dtd) result is:
…
→<!- Labels —>
and the template dtd looks like:
…
—>
<— Labels —>
In example #2 (pref-notifications.dtd) everything is okay!
In example #3 (selectAddresses.dtd) output is:
…
- ****\* END LICENSE BLOCK ****\* →<!- Select addresses for mail message dialog —>
<!ENTITY…
and the template dtd is:
…
- ****\* END LICENSE BLOCK ****\* —>
<!ENTITY…
In example #4 (calendar.dtd) output is:
…>
<!ENTITY…
and template dtd is:
…>
<!ENTITY…
.
from translate.
Thanks yury, I agree this shold be sorted out. Would you mind opening a fresh
bug with those comments? This bug is definitely fixed in terms of producing
invalid syntax…
I think it may be good to get 0.8 released first and then I want to totally redo
the dtd parsing and regeneration which should make it much simpler and cleaner
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.