Op za 29 apr. 2023 16:50 schreef Christ van Willegen <[email protected]>:
> Hi, > > Op za 29 apr. 2023 13:10 schreef Bram Moolenaar <[email protected]>: > >> >> Patch 9.0.1497 >> Problem: The ruler percentage can't be localized. >> Solution: Use a string that can be translated. (Emir Sari, closes >> #12311) >> > > Couldn't you use a bare > > vim_snprintf(p, l, _("%d%%"), perc); > > And specify %3d%% or %%%-3d in the format string? > > Ah, I think not, because you need the space _before_ the %... > > I did create #12140 to be able to specify the %$ format, but that doesn't > handle this, either. > It's a hack, but... vim_snprintf(p, l, _("%d%%"), perc); vim_snprintf(p2, l, _("%4s"), p); ... and make the %4s a %-4s in the translation Christ van Willegen > -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CA%2BOt1OxZ9OcsJCV%2BSKi2aSPW3qOLJJgBdKnMSAnv0gLrpoX3_w%40mail.gmail.com.
