Re: the ultimate solution to the i18n problem...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 15, 1999 at 12:11:19PM +0100, David Monniaux <David.Monniaux@xxxxxx> wrote:
> I have an easy solution. Let us change gettext a little so that it takes
> another argument, context. This argument would be ignored when no i18n
> takes place, but would be taken into account for the indexing in the .po
> files. For instance, we could have:

This sounds (technically) ugly. However, if you can embed that info in the
string (i.e. technically only one arguments), then it sounds nice.

> free | beer    -> gratuit

i.e. "free\0beer" (although C will have problems with \0 so we might need
some other delimiter).

OTOH, if the extra argument is a string I could only do this in perl and
leave the ugly C detals to Daniel ;)

Another way to view this would be to embed some meta-comment into the
string, which is in addition used to key the translation.

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg@xxxxxxxxxxxxx |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux