473,806 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# - WPF localization at runtime

1 New Member
I'm developing an app using WPF, and have just started looking into localization. I have gotten the BAML localization solution working (with LocBaml and CSV files), but I'm a bit perplexed when it comes to translation of strings at runtime. For example, I am building a search window, and when a search is performed, I update a header to tell the user how many results were found. I can understand how the satellite assemblies are used to fill in localized values, but is there a way to define strings outside of the XAML, accessible in code, that will be compiled into the the locale-specific resource DLL? Obviously, I could use a .resx file, but I would prefer not to have to deal with translations in two places (satellite resource DLLs and .resx files).
Jun 29 '09 #1
0 2243

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1747
by: Anne DeBlois | last post by:
Hi, I am about to order Visual Studio .NET. We work with the French Canadian version of Windows XP Professional. I don't know exactly how it works, but I have a question that may sound stupid, but I want to ask it anyway - it's about localization and culture: -->We want to develop an application available in both French and English, and someday we want to translate it into Spanish. I have been told that the best thing to do is buy...
5
3144
by: kuldeep | last post by:
Hi all, I have developed a application that supports localization in .net. It shows all the controls with english and hindi text depending on the culture selected. The application runs well on windows 2000 and windows xp but when run on windows 98 the hindi text appears as garbage. Can anyone help out with this.(I have installed the .net framework on windows 98) Regards,
1
9208
by: SDK | last post by:
Hello, I've written a little program in C# to test localization. It's one form with a label and a button. I've included two languages into my form (Dutch and English) using localization. In the main function, the culture is set to dutch, and it all looks fine. But when I change the culture (by pressing the button), I get a mix of the english resx and the dutch resx. My button gets duplicated instead of moved, and my label keeps...
2
8408
by: mike | last post by:
Hi People, I've found heaps of examples of how to localize C# apps from resource files at runtime, but the examples I've seen all seem to involve resources that are compiled in so that strings can be localized but not actually changed. I want to be able to actually load the strings themselves from runtime, doesn't matter where from, an .ini file, reg, xml file, database or somewhere. I want to write an app where not only the locale can...
4
1493
by: Tobin Harris | last post by:
Hi there, WARNING: Long-ish post! I'm about to undertake an ASP.NET project that requires localisation (2 languages initially, then more). I have read a little about localization, but have never needed to use it commercially yet. I'm wandering what the best way to approach localization is from a technical and also non technical point of view. My first thoughts
8
2546
by: Olivier Matrot | last post by:
I encounter a problem with Localization features in ASP.NET 2.0. Is seems that the framework is not able to manage neutral cultures such as 'fr', or 'de'. Those are the culture sent by default from a french or German Internet Explorer in France or Germany. There is a runtime error "System.NotSupportedException: Culture "fr" is a neutral culture. It can not be used in formatting and parsing and therefore cannot be set as the thread's...
5
2654
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope someone can give me a clue... Questions: 1) Do my eyes deceive me or is it true that localization is still totally utterly disengaged from the Designer and Property Editor... either in source
5
2411
by: archana | last post by:
Hi all, I am having confusion regarding localization in .net. I have one form on which i have some labels and button. After designing that form what i did is set localization property of form to true and i set language as french. But still it is not changing caption of controls which are there in form.
0
1648
by: shapper | last post by:
Hello, Sometime ago I followed an article (I believe MSDN) related with localization in Asp.Net 2.0. To make pages localization I create a class named Localization: 1 Public Class _Localization 2 Inherits Page 3
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10373
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.