Packaging or po checker script?

View: New views
4 Messages — Rating Filter:   Alert me  

Packaging or po checker script?

by Jim Li-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It has happened quite a few times to me that after committing new po files, the next morning only to find it fails drupal.org packaging script. The error could simply be a typo in header, or mismatching line breaks. PoEdit doesn't seem to be able to catch the latter. The fact I had to file a support request to have  release node removed before I could cvs untag it, makes it more frustrating.

So I am wondering if the drupal.org packaging script available for download, or is there a similar checker script I can run before committing to CVS?

_______________________________________________
translations mailing list
translations@...
http://lists.drupal.org/mailman/listinfo/translations

Re: Packaging or po checker script?

by Gerhard Killesreiter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Li schrieb:
> It has happened quite a few times to me that after committing new po files,
> the next morning only to find it fails drupal.org packaging script. The
> error could simply be a typo in header, or mismatching line breaks. PoEdit
> doesn't seem to be able to catch the latter. The fact I had to file a
> support request to have  release node removed before I could cvs untag it,
> makes it more frustrating.
>
> So I am wondering if the drupal.org packaging script available for download,
> or is there a similar checker script I can run before committing to CVS?

The script is part of project.module:

modules/project/release/package-release-nodes.php

Cheers,
        Gerhard

>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> translations mailing list
> translations@...
> http://lists.drupal.org/mailman/listinfo/translations

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIiXofg6TFvELooQRAlzRAJsE5pblwLGqIS+u9DsgeL222kVq9ACfX/IR
gNeQKPR8uOMXzv/XYHspRbY=
=hYwF
-----END PGP SIGNATURE-----
_______________________________________________
translations mailing list
translations@...
http://lists.drupal.org/mailman/listinfo/translations

Re: Packaging or po checker script?

by Konstantin Käfer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

you can also run the following command if you're on Linux/Mac OS X/
Cygwin:

for i in *.po; do echo -n "$i: " ; msgfmt --statistics $i ; done

That will display any errors with files as well as statistics for all  
po files in the current directory.

Konstantin

On 07.05.2008, at 22:57, Jim Li wrote:

> It has happened quite a few times to me that after committing new po  
> files, the next morning only to find it fails drupal.org packaging  
> script. The error could simply be a typo in header, or mismatching  
> line breaks. PoEdit doesn't seem to be able to catch the latter. The  
> fact I had to file a support request to have  release node removed  
> before I could cvs untag it, makes it more frustrating.
>
> So I am wondering if the drupal.org packaging script available for  
> download, or is there a similar checker script I can run before  
> committing to CVS?
> _______________________________________________
> translations mailing list
> translations@...
> http://lists.drupal.org/mailman/listinfo/translations

_______________________________________________
translations mailing list
translations@...
http://lists.drupal.org/mailman/listinfo/translations

Re: Packaging or po checker script?

by Jim Li-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks! I was just reading the package_release_contrib_d6_translation() function and starting to realize msgfmt is what I need.

On Wed, May 7, 2008 at 6:19 PM, Konstantin Käfer <kkaefer@...> wrote:
Hi,

you can also run the following command if you're on Linux/Mac OS X/
Cygwin:

for i in *.po; do echo -n "$i: " ; msgfmt --statistics $i ; done

That will display any errors with files as well as statistics for all
po files in the current directory.

Konstantin

On 07.05.2008, at 22:57, Jim Li wrote:

> It has happened quite a few times to me that after committing new po
> files, the next morning only to find it fails drupal.org packaging
> script. The error could simply be a typo in header, or mismatching
> line breaks. PoEdit doesn't seem to be able to catch the latter. The
> fact I had to file a support request to have  release node removed
> before I could cvs untag it, makes it more frustrating.
>
> So I am wondering if the drupal.org packaging script available for
> download, or is there a similar checker script I can run before
> committing to CVS?
> _______________________________________________
> translations mailing list
> translations@...
> http://lists.drupal.org/mailman/listinfo/translations

_______________________________________________
translations mailing list
translations@...
http://lists.drupal.org/mailman/listinfo/translations


_______________________________________________
translations mailing list
translations@...
http://lists.drupal.org/mailman/listinfo/translations