Questions tagged [locbaml]

18 questions
10
votes
3 answers

How does Locbaml work?

I created a WPF test project, single Window with a single button in it. I then unloaded the project and modified the csproj to contain the following en-US. After rebuilding the build folder now contains a subfolder named en-US…
Rubio
  • 1,067
  • 1
  • 14
  • 25
5
votes
1 answer

Manage localization with Baml

I'm developping a little application in WPF and I want to localize my resources. I've always used resources files (.resx), but I heard about BAML that was suppose to change the way of manage localization in a WPF application. I made my research…
esylvestre
  • 1,850
  • 4
  • 21
  • 30
4
votes
2 answers

What is the best way of localization LOCBaml or Resx based localization?

I came through this What is the best way to localize a WPF application, sans LocBAML? . But, this didn't answer what I'm looking for. I'm creating a CustomControl in WPF. I would like to provide localization support. The control contains, images,…
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
3
votes
0 answers

MultiBinding with StringFormat and localization using VisualBaml

I am writing a WPF application, which is then translated using VisualLocBaml. VisualLocBaml works mostly fine and allow me to translate all relevant strings, except for the StringFormat I use for a multibinding. Here is the XAML portion of the code…
2
votes
2 answers

Can I use WPF window constructor to change culture?

I use the well known LocBaml approach to change culture. It works fine here: public App() { // Test code bool override_current_ui_language = true; string locale = "es-ES"; if (override_current_ui_language) { …
NoWar
  • 36,338
  • 80
  • 323
  • 498
2
votes
2 answers

Access system:string resource dictionary XAML in C#

How do I access the contents in a resource dictionary using C#? For example, here is my code in XAML: New Group Name And I want to access it here in C#: private void OnAddGroup(object sender,…
JB.
  • 21
  • 2
2
votes
1 answer

WPF locbaml-ed application and runtime language switch?

i wonder if there is a simple solution to change language of a wpf application during runtime. i used locbaml to globalize all the resources. Setting the Current Thread's UICulture in the App-constructor works fine, but when i try to chang it a…
Joachim Kerschbaumer
  • 9,695
  • 7
  • 49
  • 84
1
vote
1 answer

Localization of a WPF ClickOnce application with LocBaml

I'm trying to use the LocBaml way (this might be my mistake) to localize a WPF application, but this application is deployed with ClickOnce and the publishing process doesn't pick up the localized .resource.dll. I do add the files to my ClickOnce…
dee-see
  • 23,668
  • 5
  • 58
  • 91
1
vote
1 answer

Can't use LocBaml with WPF .Net 5.0 project in Visual Studio 2019

I have a very simple WPF project (.Net 5.0) that I'm trying to localize. I downloaded the locbaml tool project as part of the wpf samples and I built it in Visual Studio 2019 - Release mode. This built OK. I've run "MSBuild" to add the UID's…
Beqa Latsabidze
  • 212
  • 4
  • 12
1
vote
1 answer

Locbaml /generate gives error "Type reference cannot find public type named '...'"

I'm using Locbaml to generate localization files in my WPF application. Yesterday, I've upgraded my solutions from VS2008 to VS2010, and since then Locbaml throws an error in two of my assemblies saying "Type reference cannot find public type named…
Captain
  • 713
  • 1
  • 7
  • 20
1
vote
1 answer

MSBuild delete generated UIds

After I generated the Uid's with the following command: msbuild /t:updateuid MyProject.csproj How can I delete them all. I know how I can check the generated Uid's like this but I want to really delete them: msbuild /t:checkuid Myproject.csproj
Max
  • 1,203
  • 1
  • 14
  • 28
1
vote
0 answers

Using Localization.Comments on strings defined in a ResourceDictionary

We use the LocBaml tool to localize our application. For that, we have created a ResourceDictionary as described in this post: https://wpf.2000things.com/2014/08/12/1134-localization-xv-localizing-other-content/ Instead of using Controls like…
Max
  • 1,203
  • 1
  • 14
  • 28
1
vote
3 answers

Localizing a WinForms Application with Embedded WPF User Controls

The application I'm trying to localize is a WinForms application that has a few hosted WPF user controls (WPF user controls hosted in an ElementHost WinForms control). I use resx files to localize the WinForms, which VS2008 manages quite well. The…
urini
  • 32,483
  • 14
  • 40
  • 37
1
vote
0 answers

Locbaml error when using VisualStateManager in Framework 3.5

When I translated the Tester.WPF.resources.dll, I get an error. It's like the baml file have modified VisualStateGroup to an collection. I don't understand. The poject starts up without any problem in the default language, but if I change the…
Emmanuel
  • 7,574
  • 3
  • 24
  • 22
1
vote
1 answer

WPF Localization with LocBaml: System.IO.IOException was unhandled

I am localizing a WPF application using LocBaml. I have successfully created the satellite assemblies and put them in their appropriate folders. I run the application from my box and it works great! Changing languages on the fly, etc. The problem…
1
2