10 我用gettext來翻譯我的用戶界面。我想將符號%作爲字符串中的UI標題的一部分,但由於它具有特殊含義,因此無法按預期工作。我如何逃避百分比符號?如何在gettext字符串中轉義'%'字符? 來源 2010-09-16 Török Gábor
14 使用%%轉義%。 來源 2010-09-16 19:09:07 bialix +0 如果我是對的,這裏適用的規則與'sprintf'-like字符串格式相同。 – 2010-09-17 07:25:30 +0 這似乎並非如此,蟒蛇雖然 http://stackoverflow.com/questions/41730770/translating-with-gettext-and-jinja2-and-pyramid – boatcoder 2017-01-19 14:48:16
如果我是對的,這裏適用的規則與'sprintf'-like字符串格式相同。 – 2010-09-17 07:25:30
這似乎並非如此,蟒蛇雖然 http://stackoverflow.com/questions/41730770/translating-with-gettext-and-jinja2-and-pyramid – boatcoder 2017-01-19 14:48:16