On Sat, May 26, 2018 at 7:01 PM, Ken Takata <[email protected]> wrote:
> Hi,
>
> In ex_docmd.c:
>
> #endif
> - if (n == 1)
> - EMSG(_("E173: 1 more file to edit"));
> - else
> - EMSGN(_("E173: %ld more files to edit"), n);
> + EMSGN(NGETTEXT("E173: %d more file to edit",
> + "E173: %d more files to edit", n), n);
> quitmore = 2; /* next try to quit is allowed */
> }
> return FAIL;
>
> Why you changed "%ld" to "%d" here?
> Is it just a mistake or intentional?
>
It is intentional, n is int and in upper before&now n usage it is also "%d":
- if (n == 1)
- vim_strncpy(buff,
- (char_u *)_("1 more file to edit. Quit anyway?"),
- DIALOG_MSG_SIZE - 1);
- else
- vim_snprintf((char *)buff, DIALOG_MSG_SIZE,
- _("%d more files to edit. Quit anyway?"), n);
+ vim_snprintf((char *)buff, DIALOG_MSG_SIZE,
+ NGETTEXT("%d more file to edit. Quit anyway?",
+ "%d more files to edit. Quit anyway?", n), n);
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.