viam0Zah
viam0Zah

Reputation: 26312

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

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?

Upvotes: 14

Views: 6059

Answers (1)

bialix
bialix

Reputation: 21463

Use %% to escape %.

Upvotes: 18

Related Questions