问题
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 expected. How can I escape percent symbols?
回答1:
Use %%
to escape %.
来源:https://stackoverflow.com/questions/3728272/how-can-i-escape-character-in-a-gettext-string