Comments (13)
Originally posted by Erdal Ronahi:
By the way, I am using version 0.8rc5 now.
from translate.
Why do you have a file ooo-writer.po? It doesn’t occur in my PO tree.
Could you norrow this down the problem or provide a place where we can download
your tree and GSI to validate this?
from translate.
Originally posted by Erdal Ronahi:
We don’t have a tree, we are the poor team that uses the —multifile=onefile
option. :)
The files are here:
http://www.ferheng.org/data/po/
The one big po is the one at the bottom: ooo2_kurdish.po (14 MB). It is the
original template with three of the po-files merged into it (writer, math ve basic)
The GSI file we use as a template is the one in
http://ooomisc.services.openoffice.org/pub/OpenOffice.org/ooomisc/POT/OpenOffice.org-SRC680_m149-POT.tar.gz
from translate.
Ok there seem to be a few problems here:
Firstly looking at working with toplevel files:
\ This works as long as the files are named correctly and you specify
—multifile=toplevel **
If you rename ooo-writer.po to sw.po then the following will work
po2oo -l ku —multifile=toplevel -t en-US.sdf ku-toplevel ku.sdf
If the files are incorrectly named then you will get this error message:
po2oo: warning: Couldn’t handle input file ooo-writer.po: don’t know what to do
with input format .po, no template file
If you don’t specify the —multifile option you get this error:
po2oo: warning: Couldn’t handle input file sw.po: don’t know what to do with
input format .po, no template file
from translate.
Next looking at the onefile option:
\ onefile input file does not work **
No matter whether you supply the —multifile option or not the files are not
merged back.
[dwayne@laptop-wifi convert]$ po2oo -l ku -t en-US.sdf ku-onefile/ku.po ku.sdf
processing 1 files…
po2oo: warning: Couldn’t handle input file ku.po: don’t know what to do with
input format .po, no template file
[dwayne@laptop-wifi convert]$ po2oo —multifile=onefile -l ku -t en-US.sdf
ku-onefile/ku.po ku.sdf
processing 1 files…
po2oo: warning: Couldn’t handle input file ku.po: don’t know what to do with
input format .po, no template file
from translate.
My notes on testing:
You can generate a single-file pot file from the SDF like so:
oo2po -P —multifile=onefile —nonrecursiveinput —duplicates=msgid_comment
en-US.sdf ooo2.pot
Note that nonrecursiveinput is currently required, otherwise a directory is
produced.
We should automatically handle this with multifile=onefile
I’ve now got a test framework in place, so this should be fixed shortly
from translate.
OK —nonrecursiveinput is now assumed for —multifile=onefile
from translate.
Originally posted by Erdal Ronahi:
Rail Aliev from OOo has helped out with a script and a how-to. I have moved that
to our wiki:
http://www.ferheng.org/wiki/doku.php/wergerandin:rail_aliev
There is also an ongoing discussion about the problem on the
[email protected] mailinglist.
from translate.
Originally posted by Oscar Manuel Gómez Senovilla:
I think I’ve reproduced this with a mozilla properties file using po2prop.py:
warning: Couldn’t handle input file chatzilla.properties.po: don’t know what to
do with input format .po, no template file. It looks something general in
po2prop.py (I might be wrong, of course).
from translate.
Originally posted by Oscar Manuel Gómez Senovilla:
Created [attachment 60](http://bugs.locamotion.org/attachment.cgi?id=60)
The properties file (zip) causing the problem
from translate.
Oscar, I’m sure your comment 9 and comment 10 here were meant for somewhere else!
Can you add them to whichever other bug they were meant for?
from translate.
Comment on attachment 60
The properties file (zip) causing the problem
Marking properties file as obsolete – its for a different bug
from translate.
Fixes where added to make sure we choose sane defaults when outputing to and
from files ie —nonrecursiveinput etc. The bug is difficult to decipher and
replicate though. Thus marking this as fixed.
If you find other issues please submit a new bug and do not reopen this one.
from translate.
Related Issues (20)
- support several input parameters for pofilter (and other commands)
- Support for Android resource converter HOT 4
- prop2po: support for different encodings for both the input file and the template
- prop2po: personality given in command line is ignored for .strings files HOT 2
- Locate tests and test data outside 'translate' module HOT 2
- 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
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.