开发者

How can I escape '%' character in a gettext string?

开发者 https://www.devze.com 2023-01-16 16:13 出处:网络
I use gettext to translate my user interface. I\'d like to write symbol % as part of a UI caption in a string, but since it has a special meaning, does not works as expect开发者_JAVA技巧ed. How can I

I use gettext to translate my user interface. I'd like to write symbol % as part of a UI caption in a string, but since it has a special meaning, does not works as expect开发者_JAVA技巧ed. How can I escape percent symbols?


Use %% to escape %.

0

精彩评论

暂无评论...
验证码 换一张
取 消