By goncalo.dumas on
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
Is it possible?
I already found some information here, but the example given relates to a unix/linux environment - I work in a windows environment... :(
A solution is in my sandbox
Download the file
po2pot.batfrom 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:
Now run the script with the command
po2pot language.po— all .po files will be placed in a directory namedoutputundertemp-dir.You need to install UnixUtils and the GetText package, and the binaries need to be in your
PATHenvironment variable. You can download the packages from http://gnuwin32.sourceforge.net/packages/gettext.htm and http://unxutils.sourceforge.net/Thanks
Today I'll give it a try.
I'm stuck.
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
Paths to add to the PATH env var
The paths you need to add to the PATH environment variable are:
<unixutils install dir>\usr\local\wbinand
<gnuwin32 install dir>\binYou can test if it works by running the commands
basenameandmsgmergefrom the tmp dir.Thanks, once again.
It worked fine!! The unique *.po file was divided into all the module specific *.po's.