.net - How to Create a new culture assembly WPF -


i following tutorial on implementing localization in application.

but cant head around step 4, says create new culture assembly.

the loaded assemblies resourcedictionaries used replace default 1 within main assembly.

  1. create normal wpf app, , use resourcedictionary strings
  2. use mergeddictionary in app.resources
  3. make sure localizable controls using dynamicresource <label content=”{dynamicresource label1}”/>
  4. create new culture assembly sensible name, such culture_fr-ca
  5. for assembly created in step 4, create mirror image resourcedictionary matches original assemblies resourcedictionary. translated strings
  6. compile culture assembly folder under main assemblies bin\debug folder. demo assumes folder called “culturefiles”
  7. when main app runs, current culture , load matching assembly disk
  8. from loaded culture assembly, extract resourcedictionary
  9. using extracted resourcedictionary, replace current application.mergedresources dictionary newly extracted culture resourcedictionary
  10. all controls refer dynamic resources should ok new cultural strings

as far can tell means add wpf project solution. add name of culture project's name.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -