TxTranslation icon indicating copy to clipboard operation
TxTranslation copied to clipboard

Use dictionary file with project?

Open JoshWobbles opened this issue 8 years ago • 2 comments

What am I missing, the documentation does not contain an actual guide on how to set up so I had to feel around in the dark. I have the library and am correctly (i think) trying to translate a peice of text using <TextBlock Text="{Tx:T Announcements}"/> I also created and saved a dictionary to my bin/debug folder called localization.txd, but how do I actually tie this dictionary to my project?

JoshWobbles avatar Jan 22 '17 13:01 JoshWobbles

Do you load a txd file into the Tx when your program starts ?

Tx.LoadFromXmlFile(Path.Combine(FileService.GetPathToApplicationFolder(), "Dictionary.txd"));

vlkam avatar Jan 22 '17 13:01 vlkam

@JoshWobbles This should be the chapter "2.1.1 Initialisation" in the documentation. I agree it could be more verbose though.

ygoe avatar Jan 22 '17 15:01 ygoe