[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs in xgettext compared with msgcat
From: |
Bruno Haible |
Subject: |
Re: Bugs in xgettext compared with msgcat |
Date: |
Mon, 30 Apr 2007 10:46:29 +0200 |
User-agent: |
KMail/1.5.4 |
Marc Bauer wrote:
> from the programmers part I must
> extract the strings from Drupal CMS - PHP files first. This is done with a
> "Drupal-pot" extractor. This one extracts the translatable strings and
> create one single pot's per PHP file, btw it creates a general.pot for files
> with less then 10 strings. There are some Drupal modules that consists of 10
> files for example. So I get for e.g. ~10 POT files from the extractor. After
> this extraction step I must merge this 10 files into one big file. This one
> file is the basis for ongoing translations.
In this case I recommend to use xgettext, not msgcat. msgcat is better for
the case when you are the translator and the inputs are PO files (not POT
files).
This Drupal extractor is
http://cvs.drupal.org/viewcvs/drupal/contributions/translations/drupal-pot/extractor.php?rev=1.25&view=markup
right? You surely also know that xgettext also supports PHP input files
directly.
Try "xgettext -k t -k format_plural:2,3"...
Bruno