This repository has been archived by the owner on May 1, 2024. It is now read-only.
How to use xct:Translate with {0} inside localized string? #743
Unanswered
maxkoshevoi
asked this question in
Q&A
Replies: 2 comments 10 replies
-
@maxkoshevoi you can construct your string on C#. Is that possible in your scenario? |
Beta Was this translation helpful? Give feedback.
5 replies
-
@maxkoshevoi might not be ideal you could create a converter to handle it. The string in the resx is passed in as a command parameter |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a label that displays app version like so "Version: 1.2". Previously I used this xmal to describe it:
(
Version
string looks like thisVersion: {0}
)With
xct:Translate
I cannot do this since it returnsBindingBase
instead ofstring
.What is the recommended way of doing this sort of thing using
xct:Translate
?The only workaround I can see is to remove
{0}
from localized strings and split label into multiple spans, but that's not ideal since different localized values can have placeholder in different places (not in my case, but still).Beta Was this translation helpful? Give feedback.
All reactions