[GRASS-dev] String standardization

Jachym Cepicky jachym.cepicky at centrum.cz
Wed Jul 19 04:24:54 EDT 2006


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"

jachym

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

-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------   
OFFICE:                                     
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060719/b121e8eb/attachment.bin


More information about the grass-dev mailing list