sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.2k stars 224 forks source link

Add %n$s support for sudo_lbuf_append_v1 #270

Closed moehanabi closed 1 year ago

moehanabi commented 1 year ago

Some of translations use "%n$s" format to relocate strings, and sudo_lbuf_append_v1 do not support it now, so I just add the support for it.

Related translations I found in plugins/sudoers/po/zh_CN.po:3020 is pasted here.

#: plugins/sudoers/parse.c:876
#, c-format
msgid "Matching Defaults entries for %s on %s:\n"
msgstr "匹配 %2$s 上 %1$s 的默认条目:\n"