I’m currently working on a portable object (*.po) file – I’m doing it this because I found to be much faster to me, rather than working on the individual smaller *.pot files.

My question now is; how do I create the drupal’s pot folder with all the module-specific portable object template files from this unique portable object file.

Thanks

p.s. I've read the read-me text and tried searching within this site for an answer. So, sorry if this has already been answered.... many times :)

Comments

goncalo.dumas’s picture

I already found some information here, but the example given relates to a unix/linux environment - I work in a windows environment... :(

wulff’s picture

Download the file po2pot.bat from my sandbox: http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/wulff/po2pot_...

After downloading the file, put it in a temporary dir along with the drupal-pot folder (get it from http://drupal.org/project/drupal-pot) and your .po file:

<temp-dir>\
    drupal-pot\
    language.po
    po2pot.bat

Now run the script with the command po2pot language.po — all .po files will be placed in a directory named output under temp-dir.

You need to install UnixUtils and the GetText package, and the binaries need to be in your PATH environment variable. You can download the packages from http://gnuwin32.sourceforge.net/packages/gettext.htm and http://unxutils.sourceforge.net/

goncalo.dumas’s picture

Today I'll give it a try.

goncalo.dumas’s picture

I'm stuck ;)

I downloaded your bat file and placed it in a temp folder on the root of a drive.
D:\
---TMP\
------drupal-pot\
------pt.po
------po2pot.bat
I downloaded and executed the gettext win32 exe file.
I downloaded and unpacked the UnixUtils.zip file.
=== but ===
binaries? I know how to create a PATH environment variable, but where does it goes to?
Are these binaries located in the folder ...\UnixUtils\usr\local\wbin?
;)
either way, I ran the script and it returned me an empty output folder, and two txt files.
can you help me with this one
thanks
Goncalo

wulff’s picture

The paths you need to add to the PATH environment variable are:

<unixutils install dir>\usr\local\wbin

and

<gnuwin32 install dir>\bin

You can test if it works by running the commands basename and msgmerge from the tmp dir.

goncalo.dumas’s picture

It worked fine!! The unique *.po file was divided into all the module specific *.po's.