You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Erik Huelsmann <e....@gmx.net> on 2004/04/25 20:32:42 UTC
Adapting build system for subversion.pot
Hi Tobias,
To answer your question about adding pot generation targets to the build
system:
I was unable to decide between adding the following to Makefile.in and let
someone else handle win32, or try to write a platform-independent python
script.
This will generate the right pot from the Makefile:
locale-pot:
find $abs_srcdir/subversion \
-name bindings -prune -or \
-name tests -prune -or \
-name "*.c" -print -or \
-name "svn_error_codes.h -print | \
xgettext -k_ -kN_ \
-o $abs_srcdir/subversion/po/subversion.pot
Comments?
bye,
Erik.
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Adapting build system for subversion.pot
Posted by Erik Huelsmann <e....@gmx.net>.
> > locale-pot:
> > find $abs_srcdir/subversion \
> > -name bindings -prune -or \
> > -name tests -prune -or \
> > -name "*.c" -print -or \
> > -name "svn_error_codes.h -print | \
> > xgettext -k_ -kN_ \
> > -o $abs_srcdir/subversion/po/subversion.pot
> >
> You could also add -kSVN_ERRDEF:3 to this command line to actually extract
> the error messages from svn_error_codes.h. Then you don't need to pub N_:s
> in it. As I understand it, this is included in the public API, so it is
> good not to need to include svn_private_config.h or redefine N_ there.
Just what I was looking for! Thanks. I was having trouble finding a solution
whicb did not require exporting N_()
bye,
Erik.
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Adapting build system for subversion.pot
Posted by "Peter N. Lundblad" <lu...@linux.nu>.
On Sun, 25 Apr 2004, Erik Huelsmann wrote:
...
> locale-pot:
> find $abs_srcdir/subversion \
> -name bindings -prune -or \
> -name tests -prune -or \
> -name "*.c" -print -or \
> -name "svn_error_codes.h -print | \
> xgettext -k_ -kN_ \
> -o $abs_srcdir/subversion/po/subversion.pot
>
You could also add -kSVN_ERRDEF:3 to this command line to actually extract
the error messages from svn_error_codes.h. Then you don't need to pub N_:s
in it. As I understand it, this is included in the public API, so it is
good not to need to include svn_private_config.h or redefine N_ there.
Regards,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Adapting build system for subversion.pot
Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
Erik Huelsmann wrote:
> Hi Tobias,
>
> To answer your question about adding pot generation targets to the build
> system:
>
> I was unable to decide between adding the following to Makefile.in and let
> someone else handle win32, or try to write a platform-independent python
> script.
We need consistent pot generation now, so I think it's fine to have a
simple solution for unix. If there is interest to do this in Windows
later, there can either be a specific solution for Windows, or a new
platform independent solution can be created.
> This will generate the right pot from the Makefile:
>
> locale-pot:
> find $abs_srcdir/subversion \
> -name bindings -prune -or \
> -name tests -prune -or \
> -name "*.c" -print -or \
> -name "svn_error_codes.h -print | \
> xgettext -k_ -kN_ \
> -o $abs_srcdir/subversion/po/subversion.pot
>
> Comments?
I think you missed a "-" option to xgettext to make it read filenames
from stdin.
It would be nice to have a "-name .svn -prune -or" as well to make it a
little faster.
It's bad to use absolute paths because those paths will propagate to the
po files which means that source browsing of the po files will only work
on the machine that created the pot file. It should work to cd to
$abs_srcdir/subversion before running find.
It's probably a good idea to use -F with xgettext or add a sort in the
pipe to get stable results on different machines. It is of course
better to use -F with msgmerge, but it's nice to use it with xgettext as
well to get stable results even if you forget it or don't know about it.
/Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org