Re: What does _( do to a string?
- From: Dom Lachowicz <dominicl seas upenn edu>
- To: "Russell, Patrick" <patrick russell lmco com>
- Cc: gnumeric-list gnome org
- Subject: Re: What does _( do to a string?
- Date: Mon, 29 Oct 2001 15:19:32 -0500 (EST)
Quoting "Russell, Patrick" <patrick russell lmco com>:
Hello All,
I was digging through some of the gnumeric impot/export routines and
noticed that some of the string values appear with _( ) around them,
Why?
An example of this is at the bottom of the file
/opt/freeware/src/packages/BUILD/gnumeric(whatever build)/src/stf.c. It
reads:
desc = _("CSV File import");
Hi Patrick,
_() and N_() are part of gettext, the standard GNU tool for translation (i18n).
In code, you might see _("color"), which is an en-US string. At runtime, this
might translate the string to "Farbe" if your locale is de-DE, or "colour" if
you're in en-GB.
Dom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]