Skip to content
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

po2oo says: "don't know what to do with input format .po" #174

Closed
transl8bzimport opened this issue Jan 12, 2006 · 13 comments
Closed

po2oo says: "don't know what to do with input format .po" #174

transl8bzimport opened this issue Jan 12, 2006 · 13 comments

Comments

@transl8bzimport
Copy link

Version: 0.8rc5

Originally posted by Erdal Ronahi:

I tried to use po2oo to make an kurdish sdf-file from .po files. All I get with
commands like

po2oo -i ooo2 -l ku -t en_US.sdf -o ku.sdf
po2oo -l ku -t en_US.sdf —nofuzzy -i ooo2 ku.sdf
po2oo -i ooo2 -l ku -t en_US.sdf -o ku.sdf

are error messages like

po2oo: warning: Couldn’t handle input file ooo-writer.po: don’t know what to do
with input format .po, template format .sdf

for every .po-file in the directory and the subdirectories.

Funny that po2oo shouldn’t know the input format .po, isn’t it there to convert
.po files?

It makes no difference whether the directory ooo2 does either contain small
.po-files (Rosetta style) or one big .po-file (14,1 MB) with all the
translations, the result is always the same.

@transl8bzimport
Copy link
Author

Originally posted by Erdal Ronahi:

By the way, I am using version 0.8rc5 now.

@dwaynebailey
Copy link
Member

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?

@transl8bzimport
Copy link
Author

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

@dwaynebailey
Copy link
Member

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

@dwaynebailey
Copy link
Member

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

@davidfraser
Copy link

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

@davidfraser
Copy link

OK —nonrecursiveinput is now assumed for —multifile=onefile

@transl8bzimport
Copy link
Author

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
dev@l10n.openoffice.org mailinglist.

@transl8bzimport
Copy link
Author

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).

@transl8bzimport
Copy link
Author

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

@davidfraser
Copy link

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?

@davidfraser
Copy link

Comment on attachment 60
The properties file (zip) causing the problem

Marking properties file as obsolete – its for a different bug

@dwaynebailey
Copy link
Member

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants