summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-28 06:23:37 +0000
committerPaul Smith <psmith@gnu.org>1999-07-28 06:23:37 +0000
commit28ef4c4dacc6fee628e65f07b52a4d2f0efe7fb3 (patch)
tree8c221f1b16a2ce3281898476bd46f35b7290a197 /expand.c
parent3a945a665e3d06aa02e9e1e5843d2b8fa61f1e52 (diff)
downloadgunmake-28ef4c4dacc6fee628e65f07b52a4d2f0efe7fb3.tar.gz
* Add gettext macros to start i18n support.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/expand.c b/expand.c
index 0b1d41d..29e3674 100644
--- a/expand.c
+++ b/expand.c
@@ -98,7 +98,8 @@ recursively_expand (v)
if (v->expanding)
/* Expanding V causes infinite recursion. Lose. */
fatal (reading_file,
- "Recursive variable `%s' references itself (eventually)", v->name);
+ _("Recursive variable `%s' references itself (eventually)"),
+ v->name);
v->expanding = 1;
value = allocated_variable_expand (v->value);
@@ -119,7 +120,7 @@ warn_undefined (name, length)
{
if (warn_undefined_variables_flag)
error (reading_file,
- "warning: undefined variable `%.*s'", (int)length, name);
+ _("warning: undefined variable `%.*s'"), (int)length, name);
}
/* Expand a simple reference to variable NAME, which is LENGTH chars long. */
@@ -231,7 +232,7 @@ variable_expand_string (line, string, length)
end = index (beg, closeparen);
if (end == 0)
/* Unterminated variable reference. */
- fatal (reading_file, "unterminated variable reference");
+ fatal (reading_file, _("unterminated variable reference"));
p1 = lindex (beg, end, '$');
if (p1 != 0)
{