[GRASS-dev] String standardization

Stephan Holl holl at gdf-hannover.de
Wed Jul 19 05:53:37 EDT 2006


Hello Jachym,

On Wed, 19 Jul 2006 10:24:54 +0200 Jachym Cepicky
<jachym.cepicky at centrum.cz> wrote:

> I raise my hand for all translators! 
> 
>  cat grassmods_cs.po|grep open|grep raster
>  msgid "Cannot open raster map"
>  msgid "error opening raster map [%s]."
>  msgid "Unable to open raster map [%s]"
>  msgid "Unable to open raster map [%s] in [%s]"
>  msgid "Unable to open raster map [%s]."
>  msgid "%s: %s - Unable to open the input raster map\n"
>  msgid "Cannot open raster map [%s]"
>  msgid "Unable to open raster map <%s>"
>  msgid "<%s> unable to open raster file"
>  msgid "%s - can't open raster file"
>  msgid "Can't open raster file %s"
>  msgid "Cannot open terrain raster map <%s@%s>!"
>  msgid "Cannot open raster file [%s]!"
>  msgid "can't open raster file [%s] needed for input coordinates"
>  msgid "%s - can't open raster map"
>

jupp, thanks for pointing this out. I vote for this to standardize!

Cheers

	Stephan

> 
> On Wed, Jul 19, 2006 at 07:50:45PM +1200, Hamish wrote:
> > Brad wrote:
> > > I've noticed that there is a wide range of output string
> > > formatting throughout GRASS.  Should we standardize on how text
> > > in formatted for various situations (warnings, errors, etc)?
> > > 
> > > For instance, I've seen mapsets displayed in '[]', '<>', or no
> > > separation at all from the rest of the text.
> > > 
> > > Also, I see that text may begin capitalized or lower case and may
> > > or may not end with punctuation.
> > 
> > I fully agree.
> > 
> > For i18n reasons mostly I have taken to copying strings from other
> > modules rather than reinvent my own when doing something new or
> > i18n'zing a module.
> > 
> > e.g.
> > 
> > raster$ grep -rI -A5 G_open_raster_new * | grep fatal | cut -f2-
> > -d'('
> > 
> > and then pick my favorite:
> >   _("Unable to create raster map <%s>")
> > 
> > 
> > same issue with italicized module names and bolded option
> > convensions used in the help pages.
> > 
> > 
> > Hamish
> > 
> > _______________________________________________
> > grass-dev mailing list
> > grass-dev at grass.itc.it
> > http://grass.itc.it/mailman/listinfo/grass-dev
> 



-- 
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office      -     Mengendamm 16d      -     D-30177 Hannover
Internet: www.gdf-hannover.de      -      Email: holl at gdf-hannover.de
Phone : ++49-(0)511.39088507       -        Fax: ++49-(0)511.39088508




More information about the grass-dev mailing list