刚刚试了下,Python2 好像不行:
Python2
>>> print "%1s and %2s" % ("A", "B")
A and  B
>>> print "%2s and %1s" % ("A", "B")
 A and B

Python3
>>> print("{0} and {1}".format("A", "B"))
A and B
>>> print("{1} and {0}".format("A", "B"))
B and A

语言支持有限,还要从译文上调整。

在 2015-11-03二的 09:17 +0800,Tommy He写道:
没错,增加标识符后应该就没有问题了。

貌似标识符这项功能支持的语言有限,所以为保险期间我个人依然是尝试从译文的角度调整

2015-11-03 3:36 GMT+08:00 Alick Zhao <alick9188@gmail.com>:
我印象中 Python 里是可以的。

2015-11-02 5:47 GMT-06:00 tong hui <tonghuix@gmail.com>:
> 想问一下,如果这时候使用 %1s 和 %2s 来标示顺序可以吗?也就是译文变成:
>
> 文件 %2s 上一次的元数据过期检查在 %1s 之前进行
>
> 2015-11-02 16:48 GMT+08:00 Tommy He <lovenemesis@fedoraproject.org>:
>>
>> 在 dnf 里看到一句翻译,是 zhouxiaobo 童鞋的:
>>
>> Last metadata expiration check performed %s ago on %s.
>>
>> 译成:
>>
>> 文件%s上一次的元数据过期检查在%s之前进行。
>>
>> 请注意由于这里缺乏标识符,所以 %s 的替换会按照先后出现的顺序来。
>> 于是 “文件” 后面会被插入时间,而这恐怕不是你想要的吧……
>>
>> 请以后多多注意哦!
>>
>> 此致敬礼
>> 黑日白月
>>
>> --
>> Take a Deep Breath out of Windows
>>
>> https://fedoraproject.org/wiki/User:Lovenemesis
>>
>> --
>> trans-zh_cn mailing list
>> trans-zh_cn@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
>
>
>
>
> --
> /***
>  * @ 启智开源 编码自由
>  * @ Open Mind, Open Source, Coding for Freedom!
>  * @ 佟辉 Tong Hui (Tony)
>  * @ Email tonghuix@gmail.com
>  * @ Web https://tonghuix.io
>  * @ XMPP/Jabber tonghuix@xmpp.jp
>  */
>
> --
> trans-zh_cn mailing list
> trans-zh_cn@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn



--
Regards,
Alick




--
trans-zh_cn mailing list
trans-zh_cn@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
-- 
Regards,
mosquito
--
Github: https://github.com/1dot75cm
Blog: http://cm.fdzh.org