4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Some error messages are not translated.
12 Solution: Add _() around the messages. (Dominique Pelle)
16 *** ../vim-7.2.091/src/eval.c Sun Dec 21 13:02:47 2008
17 --- src/eval.c Sat Jan 24 12:22:47 2009
22 if (argcount == MAX_FUNC_ARGS)
23 ! emsg_funcname("E740: Too many arguments for function %s", name);
25 ! emsg_funcname("E116: Invalid arguments for function %s", name);
28 while (--argcount >= 0)
32 if (argcount == MAX_FUNC_ARGS)
33 ! emsg_funcname(N_("E740: Too many arguments for function %s"), name);
35 ! emsg_funcname(N_("E116: Invalid arguments for function %s"), name);
38 while (--argcount >= 0)
44 * Give an error message with a function name. Handle <SNR> things.
45 + * "ermsg" is to be passed without translation, use N_() instead of _().
48 emsg_funcname(ermsg, name)
54 ! emsg_funcname("E123: Undefined function: %s", name);
62 ! emsg_funcname(N_("E123: Undefined function: %s"), name);
68 : eval_isnamec(arg[j])))
71 ! emsg_funcname(_(e_invarg2), arg);
76 : eval_isnamec(arg[j])))
79 ! emsg_funcname(e_invarg2, arg);
85 v = find_var(name, &ht);
86 if (v != NULL && v->di_tv.v_type == VAR_FUNC)
88 ! emsg_funcname("E707: Function name conflicts with variable: %s",
93 v = find_var(name, &ht);
94 if (v != NULL && v->di_tv.v_type == VAR_FUNC)
96 ! emsg_funcname(N_("E707: Function name conflicts with variable: %s"),
103 if (fp->uf_calls > 0)
105 ! emsg_funcname("E127: Cannot redefine function %s: It is in use",
111 if (fp->uf_calls > 0)
113 ! emsg_funcname(N_("E127: Cannot redefine function %s: It is in use"),
121 * Return TRUE if items in "fc" do not have "copyID". That means they are not
122 ! * referenced from anywyere.
125 can_free_funccal(fc, copyID)
129 * Return TRUE if items in "fc" do not have "copyID". That means they are not
130 ! * referenced from anywhere.
133 can_free_funccal(fc, copyID)
134 *** ../vim-7.2.091/src/version.c Wed Jan 28 16:03:51 2009
135 --- src/version.c Wed Jan 28 19:05:47 2009
139 { /* Add new patch number below this line */
146 Now it is such a bizarrely improbable coincidence that anything as
147 mind-bogglingly useful as the Babel fish could have evolved purely by chance
148 that some thinkers have chosen to see it as a final and clinching proof of the
149 NON-existence of God.
150 The argument goes something like this: 'I refuse to prove that I exist,' says
151 God, 'for proof denies faith, and without faith I am nothing.'
152 'But,' says Man, 'the Babel fish is a dead giveaway, isn't it? It could not
153 have evolved by chance. It proves you exist, and so therefore, by your own
154 arguments, you don't. QED.'
155 'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
157 'Oh, that was easy,' says Man, and for an encore goes on to prove that black
158 is white and gets himself killed on the next pedestrian crossing.
159 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
161 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
162 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
163 \\\ download, build and distribute -- http://www.A-A-P.org ///
164 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///