Giter Club home page Giter Club logo

Comments (13)

transl8bzimport avatar transl8bzimport commented on May 12, 2024

Originally posted by Erdal Ronahi:

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

from translate.

dwaynebailey avatar dwaynebailey commented on May 12, 2024

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.

transl8bzimport avatar transl8bzimport commented on May 12, 2024

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.

dwaynebailey avatar dwaynebailey commented on May 12, 2024

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.

dwaynebailey avatar dwaynebailey commented on May 12, 2024

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.

davidfraser avatar davidfraser commented on May 12, 2024

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.

davidfraser avatar davidfraser commented on May 12, 2024

OK —nonrecursiveinput is now assumed for —multifile=onefile

from translate.

transl8bzimport avatar transl8bzimport commented on May 12, 2024

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.

transl8bzimport avatar transl8bzimport commented on May 12, 2024

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.

transl8bzimport avatar transl8bzimport commented on May 12, 2024

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.

davidfraser avatar davidfraser commented on May 12, 2024

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.

davidfraser avatar davidfraser commented on May 12, 2024

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

Marking properties file as obsolete – its for a different bug

from translate.

dwaynebailey avatar dwaynebailey commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.