Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
sarvatathagata
V2EX  ›  Linux

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

  •  
  •   sarvatathagata ·
    2o181o28 · Mar 30, 2021 · 2111 views
    This topic created in 1896 days ago, the information mentioned may be changed or developed.

    中文环境下sudo -l的输出

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

    LANG= sudo -l的输出

    Matching Defaults entries for A on B:
    
    1 replies    2021-03-31 14:18:16 +08:00
    zlowly
        1
    zlowly  
       Mar 31, 2021
    对 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"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 116ms · UTC 19:52 · PVG 03:52 · LAX 12:52 · JFK 15:52
    ♥ Do have faith in what you're doing.