.net - Globalization in WPF without using LocBaml -
i need implement globalization feature in wpf application.i referred many forums suggesting use locbaml in msdn.i don't want use locbaml.we have own localization tool create satellite assemblies.
now have satellite assembly.how works in wpf framework.if take asp.net web application,we recommended deploy satellite assembly @ bin folder.if culture set,worker process loads localized string satellite assembly @ run time
whereas in wpf application not happening.i have deployed satellite assembly @ exe location.
resourcecheck.exe myapplication.resources.dll - default culture de-ch\myapplication.resources.dll - german culture
i not seeing localized strings.i displaying string resource assembly in code.
<window x:class="resourcecheck.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:resources="clr-namespace:resourcecheck.resources;assembly=resourcecheck.resources" title="mainwindow" height="350" width="525"> <window.resources> <resources:stringresources x:key="resourcestrings"/> </window.resources> <grid> <textblock text="{binding path=resources.helloworld, source={staticresource resourcekey=resourcestrings}}"/> </grid> </window>
please me
thanks in advance
Comments
Post a Comment