[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#487517: indent: [rfe] better support for gettext macros (fwd)
From: |
Santiago Vila |
Subject: |
Bug#487517: indent: [rfe] better support for gettext macros (fwd) |
Date: |
Fri, 24 Jul 2009 20:27:39 +0200 (CEST) |
Hello.
Received this from the Debian BTS:
---------- Forwarded message ----------
From: Hamish <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Sun, 22 Jun 2008 23:39:09 +1200
Subject: Bug#487517: indent: [rfe] better support for gettext macros
Package: indent
Version: 2.2.9-7
Severity: wishlist
Tags: l10n
Hi,
At the GRASS GIS project (grass.osgeo.org) we are preparing to re-indent
our c. 1M SLOC codebase. Trials have shown that indent sometimes does
not do well with the _("") gettext macros used for i18n of messages.
For example,
indent produces:
G_fatal_error
(_
("Can't get projection info of current location
better would be to break lines like:
G_fatal_error(
_("Can't get projection info ....
CLI rules used:
$ indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \
-nbbo -nbc -nbfda -nbfde -ncdb -ncdw -nce -nfca -npcs -nprs \
-npsl -nsc -nsob -saf -sai -saw -sbi0 -ss -ts8 -ut main.c
Example code which upon indent'ing shows the behaviour:
http://trac.osgeo.org/grass/browser/grass/trunk/raster/r.sun/main.c
refs:
http://thread.gmane.org/gmane.comp.gis.grass.devel/26820/focus=27382
http://trac.osgeo.org/grass/browser/grass/trunk/SUBMITTING#L229
thanks,
Hamish
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug#487517: indent: [rfe] better support for gettext macros (fwd),
Santiago Vila <=