[FZH] yum问题说明

Tiansworld tiansworld at fedoraproject.org
Fri Aug 3 13:52:21 UTC 2012


On 2012-8-3, at 21:18, Alick Zhao <alick9188在gmail.com> wrote:

> On Fri, 3 Aug 2012 14:38:32 +0800, Christopher Meng wrote:
>> 但是应用后能识别吗?
>> 
>> 换句话说,如果pot没有给出带数字的macro,我们可以手工添加么?
>> 
> 
> 哦,我原以为是可以的。不过经过测试,Python 中这么做是错误的。
> 这种 %1$d 的指定位置的占位符是 C 中 printf 支持的,Python
> 的字符串内插不支持这种写法。
> 
> Python 中支持 mapping key 的写法:
> 
>    "%(hello)s, %(world)!\n"
> 
> 可以翻译成:
> 
>    "%(world)s,%(hello)!\n"
> 
> 所以看来的确最好让上游把字串改动一下便于翻译。
> 
> Christopher Meng, 能提供之前向上游反应该问题的链接吗?
> 
以前 anaconda 在这个问题上出过好多。提交完 bug 后解决了。开发人员改成了后者的写法。


More information about the Chinese mailing list