为什么 sudo -l 的格式字符串未被展开

2021-03-30 19:35:25 +08:00
 sarvatathagata

中文环境下sudo -l的输出

匹配 %2$s 上 %1$s 的默认条目:

LANG= sudo -l的输出

Matching Defaults entries for A on B:
1297 次点击
所在节点    Linux
1 条回复
zlowly
2021-03-31 14:18:16 +08:00
对 gettext 不熟悉,看源码的中文 po 好像是有问题,zh_CN.po 和 zh_TW.po 都是这样写法
#: plugins/sudoers/parse.c:805
#, c-format
msgid "Matching Defaults entries for %s on %s:\n"
msgstr "匹配 %2$s 上 %1$s 的默认条目:\n"
看其它语言例如德文就不是这样写的这样
#: plugins/sudoers/parse.c:805
#, c-format
msgid "Matching Defaults entries for %s on %s:\n"
msgstr "Passende Defaults-Einträge für %s auf %s:\n"

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/766624

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX