Localization .NET; Fallback Language When Using ResourceManager?

Feb 16, 2010

Recently I was delving into Localization with .NET. Essentially, I learnt how to customize a form (using the Language and Localizable property) and then change the culture accordingly.However, I found that when migrating my hard coded English strings into the auto-generated resource files, and use .GetString("Key") well, let's just say it wasn't happy :P.

I decided to make a separate set of resx files dedicated purely to the hard coded string translations. They followed the convention/requirement of [name].[culture-code].resx. I made of of these for each relevant language; e.g. appstrings.de.resx (For German) and appstrings.resx (as invariant baseline).

[Code]...

View 3 Replies


ADVERTISEMENT

Localization - Menu Strip To Select An Other Language - Doesn't Change My Menustip Text To My Selected Language

Mar 29, 2010

In my winform app in VB.NET I want to use the localization option. But i have a few questions/problems. I'm using a menu strip to select an other language. But it seems that is doesn't change my menustip text to my selected language. It does change my labels, buttons, and textboxes but menu strips don't seem to change when I choose another language. Also is it possible to get those resx files such as MyForm.fr-FR.resx compiled so it isn't an external file outside my app? Or to get those files in an Language folder at the same location of my app, so i don't have all those fr-FR & nl-Nl folders in the same location as my program?

View 4 Replies

Why Is 'rm' (a Variable For ResourceManager) Equal To Nothing

Apr 13, 2010

How do I declare/define a ResourceManager in the following code so it doesn't equal Nothing when it reaches rm.GetString("Magnitude") in the following code? My.Settings.. is returning a valid string.

Imports Gigasoft.ProEssentials.Enums
Imports System.Resources
Imports System.Configuration

[code]....

View 6 Replies

VS 2010 GetManifestResourceStream And ResourceManager.GetStream?

Mar 2, 2011

I have an application that has some files in the resources that i need to extract at run-time, but i can't find a way to do this.Neither the Assembly.GetManifestResourceStream neither the My.Resources.ResourceManager.GetStream work.I already tried in various forms to pass the string name of the resource:

- AssemblyName.Resource.Ext
- AssemblyName.Resource
- Resource.Ext
- Resource

And none of them work. I created a simple app to test this and added a little img.jpg:

vb.net
Dim myAssm As Assembly = Assembly.GetExecutingAssembly
Dim myAssmName As String = myAssm.GetName.Name
Dim resor1 As String = String.Concat(myAssmName, ".img.jpg")

[code].....

View 6 Replies

CodeDom Resources.ResourceManager Is Crashing Application

May 13, 2011

Where it crashes(According to 3 messageboxes):

[Code]...

View 7 Replies

Migrate From .net Specific Language To .net Framework Language?

Mar 11, 2010

What reasons are there to migrate from vb.net specific language to .net framework language?
Examples:

VB.net
ubound
msgBox
.Net Framework
array.getUpperBound(0)
messageBox

View 4 Replies

IDE :: When Localizing A Form / Select Language In Form Properties But IDE Automatically Selects Different Language

Nov 29, 2010

I have multilingual application that was done in VB2005.We recently had a request to translate the application to Arabic (Egypt), so I have been happily running through all of the forms and changing the layout for Right to Left format.I have 2 forms that are problematic though.On one form, whenever I select Arabic (Egypt), it will automatically switch the selection to Arabic (Saudi Arabia) and try to add an ar-SA resx file.On the other problematic form, if I choose Arabic (Egypt), the IDE will automatically select Chinese (People's Republic of China), then copy the contents of my ar-EG resx file into the zh-CN file, overwriting all of our Chinese translations and layout changes with the Arabic ones.

View 1 Replies

Create A Localization Of My Application?

Jun 15, 2011

I try to create a localization of my application. I tried 2 versions:

1.http:[url].... but when I am changing in the combobox the language, nothing is happen.

2. the example from the Training Kit of the MCTS Exam 70-511: Windows applications development with Microsoft .net framework 4. The example works, but the problem is that I want to change the language in the current form not in another.

Also I meet next problem. In my form I have many components: labels, charts, calendar etc. When I select for example German from the combobox, the header of the calendar is changed but all other components are the same, you can not see anything changed.I checked the resources, but them are ok. I tried also to use me.refresh(), but it was useless.

View 1 Replies

.net - Localization Of A DotNetNuke Website?

Apr 13, 2009

I am working on a website in dnn. I want to change the language of website or particular page. So I download the language package for spanish(es-es),chinese(zh-cn) and install them from host. Next when I changed the language of browser then the website language didn't change. Working on dnn 5.0.

how I can use language packages in dnn website.

View 5 Replies

C# - Isn't Number Localization Just Unnecessary?

May 10, 2011

I've just read this page [URL] One of the things they did was to convert the arabic date to the arabic calendar. I'm wondering if it is a good idea at all to do so. Will it actually be annoying/confusing for the user (even if the user is Arabic). Also, my second question is that do we really need to change 3,899.99 to 3.899,99 for some cultures like German? I mean it doesn't hurt to do so since the library already does it for us but wouldn't this actually cause more confusion to the user (even if he is German).

[Code]...

View 6 Replies

How To Make App Ready For Localization

Jul 1, 2009

I've been reading about i18n and how to make my app ready for localization. One thing recommended is to set the NeutralResourceLanguageAttribute in the AssemblyInfo.vb file like such: <Assembly: NeutralResourcesLanguageAttribute("en")>However, when I do that I get 'Type is not defined' Anybody have any clues?

View 2 Replies

Localization Add-in, Must Refresh Designer

Mar 25, 2010

i've created an addin which shows localized properties for the current component being designed, be it a form or a control.

My approach is to load/save localizable property values through the designers resourcemanager service (resourcereader/-writer), but when I save the values, the changes doesn't appear in the designer, unless I reload it.

It's worth to say, that I am using the CreateTransaction+OnComponentChanged approach, which does notify the desiger that changes are made, but it doesnt change the newly edited resources...

Is there some way to make the designer refresh it's resources? Is there a way to know which language (form localization) the designer is designing? Is there a way to track when DTE.ActiveDocument changes, so that the toolwindow can be refreshed?

View 2 Replies

Localization In Class Libraries

Aug 31, 2009

I've just about finished my WPF app, but I just hit a hurdle: my app needs to be totally localized (I've achieved this using databinding/RESX files & multiple cultures), and the actual program does this My problem is that I have a window where you generate reports on your progress.It's designed so that programmers will be able to design their own 'report sections', using interfaces & class libraries.Just one problem though: when I use RESX files inside these class libraries, they won't actually change even if I set their culture to the relevant culture I want to test.

View 2 Replies

Localization With Out Resource Files?

Jul 14, 2011

Can't we do localization with out Resource files ?

View 8 Replies

Month Calendar Localization?

Dec 8, 2009

I have a month calendar in a form.The control documentation says it will get its format and all strings from LOCALE_USER_DEFAULT.I have set my system location to a latin amarican country, so the month calendar should be shown in Spanish.Most of its functionality is, indeed, following the Spanish format: The month appears in Spanish and dates are reported with dd/mm/yyyy format.Nevertheless, the "today" portion of the control, at its bottom, appears in English as "today:" instead of, let's say, "Hoy:".I also noticed the "today" text turns blue when the mouse moves over it, but not all the date turns blue, the last two digits of the year stay black.I should state that my Windows and Visual Studio are in English.Could it be a bug in the control? Maybe is there a patch to correct this?

View 1 Replies

Export A Editable Localization XML Schema?

Jan 3, 2010

I'm trying to localize a big application I'm doing by my side. In order to do this, I would need some external translators to get the text (in an xml or the like) and make the appropriate translations to several languages. All the localizations in the application have been done using the localization options of the IDE, so whenever I build the application, I get the compiled resources.dll file of the given languages, but I see no way to get a not-compiled XML version of it, to be passed to the translators, so they can do their job and I can compile it later.

View 7 Replies

Localization Is Messing With Form Layout?

Jan 13, 2011

I am working on implementing localization in a winforms app and I went the route of setting the Localization property on the form to True and setting the default language to english,spanish, german, dutch and a few more. When I click on English the form displays correctly, when I click on Spanish or French it makes the panels inside the form small and the controls within it small. It doesn't allow me to resize anything or more the panel

View 1 Replies

.NET Localization: Japanese Characters Display As Squares?

Jan 18, 2010

I don't do much .Net programming, but I do have one that I maintain, so the answer to this may be obvious.

Setup:
Windows 7 Ultimate with All Language Packs Installed
Visual Studio 2008 Winforms VB.Net project.

I'm in the process of localizing this project, and when I'm making the Japanese version of the forms, the characters display as squares, though they render in my browser correctly. I'm guessing that this is because the default font does not have a glyph for those characters.So, my questions:

Are winforms UTF-8, or some other character encoding?

Is there a way to change the character encoding?

Should I change the font for the Japanese forms, or will Windows do it?

What's the general best practice here?

I want to know that I am copying the characters correctly into my forms, and I want to be able to test them.How can I do this?

Arial Unicode MS does have all the glyphs, but I wasn't using it, because it wasn't in the VS2008 list of fonts. I manually edited the font box to use it, but then Visual Studio throws the message, "Attempted to read or write protected memory. This is often an indication that other memory has been corrupted." I'm guessing that's because VS doesn't have permission to access that font for some reason. I go back to the default font, scary error message goes away.

Then, even when using Arial Unicode MS, the text renders as blocks in the forms titles.Same text renders correctly in labels.I think I want to use the default font, and let Windows handle it. I think I've read that everything from XP on will handle it. Windows 2000 won't, which is a shame, but what ever, I don't know what font I should use, and whatever font it is was excluded from VS.I don't know how to add it without getting lots of error messages about protected memory.Now the problem is, resizing the labels in the form, since the translated text is often larger.

Also, I don't have a support team to do this for me, but I could maybe install extra copies of Windows 7, and change to the Japanese language pack and try to run it.But that becomes a major pain.I thought I read that you could change the language while the application is running, but that doesn't seem to be true.MS docs talk about how to do this, but Windows 7 also tells you that you have to log out to change the language.MS Gothic seems to work, and it's part of VS 2008, but the title bar is still squares. That's really odd, since the same glyphs are in the winform.Is that because title bar fonts are set at a system level, and not the application level?

View 3 Replies

Asp.net Mvc - .NET MVC Localization (resourceprovider) Implementation Not Working Correctly

Jan 11, 2010

i'm currently implementing a localized website. I've created a custom ResourceProvider + Factory for storing resources in a database. This all works, i'm storing data as follows:

[Code]...

View 1 Replies

EntLib 5 Wrap Handler Message Localization

Jul 6, 2011

I have been asked, at very short notice of course, to implement exception logging to the Windows Application event Log in one of our products (vb.Net, framework 3.5, WinForms) using EntLib 5. In and of itself this is fine - I can get that working. However, this is for a client who wants messages in Chinese. Certain parts of the app have language resource files and I found a couple of sentences in my MS EntLib Developers Guide book which suggested that I could use an external resource to provide a localised 'friendly' message in a wrap handler within the Exception Handling Block.Unfortunately there was no mention of how to actually achieve this but it seemed straightforward enough. I added a new resource to a resx file which lives at the project level for the project which is common to all areas of the application and re-built to project so that the satellite assemblies were built. I then specified the name of the resource in the 'Message Resource Name' field within the EntLib configuration console. the problem arises when I try and specify the 'Message Resource Type'.

I clicked on the search button and found the satellite assembly I needed, but it did not get added to the list of loaded assemblies and therefore I couldn't select it. The problem is that none of the places where I've seen this feature mentioned actually demonstrate how to get it working so I'm not sure where I'm going wrong. The search for the assembly will only let me select a dll or exe so I assume I am supposed to reference the satellite assembly somehow but how do I do this if it won't add it to the list of loaded assemblies?One point to note is that we have a main executable which then calls numerous class libraries to load areas of functionality as required, and the config file we use throughout is the one which belongs to the main executable. Is it the case that you can only use satellite assemblies which are related to the assembly that the config file belongs to?

View 1 Replies

Resources :: Localization, Detect Untranslated Text?

Jan 6, 2011

I'm working on a project, where the localization is mostly done using resourcefiles/cultures. If a translation does not exist for the language, the default language is used.I recently received the task of reviewing some problems with the translation. Some text is in the default language, some not. Why it has not been translated is not always obvious, as there are cases when the resource files are not used, or have not been translated. I would love to be able to see what is the case without having to check the code.

View 1 Replies

Strange Reset Of Resx File After Localization?

Sep 21, 2010

I've a very strange problem with the localization and the default language resx file.I can add a string entry in the file with no problem. After moving or resizing any of the object in the form, the default resx file, resets itself and then my entry is deleted.Has anyone had the same problem??Unfortunately I can't attach a test project I made, 'cause of some security policies of my network. This is the list of operations you have to do, in order to replicate the problem:create a new windows form project;add any object (ie button) and then change its text property to "Example";set the form's property Localizable = Trueselect one of the language in the form's Language property;change again the text property to "Example 2";get back to the "(default)" entry of the language property;open the Form1.resx file then add a string entry, finally save it;try to move or resize the object into the form and then open again the Form1.resx file. You'll se the entry just for a while and then the file resets itself.

View 4 Replies

ASP.NET Localization - Strings Stored In A Database And Displayed In A Gridview?

Jan 8, 2010

I have an app that has been localized in the usual fashion (i.e., .resx files), which handles about 95% of the strings. However, I still need to localize some strings for category names that are stored in the database. I'd like to avoid adding 15 new columns named categoryname_ES, categoryname_FR, etc, and then pulling the right column dynamically. If there would be some way to pull the data, and then do a substitution in the code, I think that would be a little less messy. Maybe along the lines of:

go through gridview row by row if the language selected isn't English, look for this text value in a global resources file and replace it. Or is adding a lot of categoryname columns for each language just the way to go (ewww).

View 3 Replies

IDE :: Application With Multiple String Resource Files (not Localization)?

Apr 9, 2009

I have a question abour string type resources and hope this is the proper place to ask it.I know how to create a string (type) resource file. I also know how one localizes this file by adding the appropriate language abbreviation (i.e., es, en, etc.) after the name of the file (i.e., str_resource.es.resource).None of this is terribly difficult. However, I haven't been able to fine how to do what I want to do.

Specifically, because I have an enormous number of strings (button labels, labels, registry strings [key_names and values, etc.), error messages and such) I would like to create multiple string resource files - one for each of these items. For example:

[URL]...

View 1 Replies

Spanish Accented Letters - Internationalization / Localization Challenge?

Sep 2, 2010

illustration demonstrates my challenge in having accented letters in Spanish showing up correctly on a desktop application. I understand this forum is not for Windows forms but I thought someone may have run into this possible UTF-8,UTF-16,Unicode issue in other areas or web/desktop applications.

View 2 Replies

VS 2008 Localization Globalization - Creat A 'sub New' In Main Class?

Mar 15, 2011

I'm busy creating a multi language application, so far so good. I've googled some examples, first problem I've encountered is setting it. Accourding the msdn documentation it had to be done BEFORE initializecomponent. I didn't know how, but found out you have to creat a 'sub new' in your main class.

[Code]....

View 1 Replies

Localization - Do SEs Consider It Duplicate Content If URL Doesn't Change When Switching Languages

Jan 27, 2012

I have my company's website (Visual Studio / vb / asp.net 4.0) localized in 9 different languages, and they all work great. When you're on, for instance, about.aspx, and you switch to Russian or Swedish, it stays on about.aspx and doesn't add a query-string to the end of the URL; it just changes the page's text to that language. Will the major SEs like Google, Yahoo, etc., consider this duplicate content for SEO purposes and if so, what should I do?

View 3 Replies

VS 2005 - Localization In Windows Application - Label Which Text Is Merged With Some Variables Or Object Properties

Sep 2, 2010

I've implemented the localization in my windows application with no problem for the label or command button which have a fixed text.

My problem is related to the label which text is merged with some variables or object properties.

E.g.: vb label1.text = "There are " & myDataGridView.Rows.Count.ToString() & " items"

So, how can I set (if it's possible) the localization for these labels? I've this kind of assignment in modules and not in the form. It's possible to set a resources file also for modules?

View 6 Replies

English IDE Setup Project Installs English .NET Framework Even Though Localization = German?

Apr 30, 2009

I'm facing a major problem with a Deployment Project I created to install one of my applications.I am using the ENGLISH IDE of the Visual Studio 2008 - even though my end users will have German environments. This is why I set the

Localization = German

Property in the Deployment Project's Properties. The UI of the generated setup is German, so all's fine there. However, the setup installs the ENGLISH .Net Framework. I have not found any way around this.The problem are at least twofold:

1. An English Framework on a German PC might cause instabilities.

2. It's a big flaw to see UI inconsistencies (i.e. the UI and Setup of the application is German while the NET Framework shows certain elements in English, e.g. the DisplayName property of cultures)how can I get the project to install the localized .NET Framework?

View 4 Replies

Best Language To Convert .net App To Web

Feb 16, 2012

I have created a neat visual basic app.In it are 25 little Access databases that the user selects things from. The costs of each selection is added, subtracted, divided and totaled. Finally all the selection totals (25 of them) are saved in one database that the user can come back later to either finish selecting (if he didn't before) or delete it. There are many images and sounds, text boxes, drop down lists,etc in the app. Its about 10MB big.

What langauge do you think would be the best one to use to put this app on the web so that users can play with it without buying a CD or downloading a CD?

Before I invest to have it re-done in a lanquage to put it on the web OR I learn another langauge and do it myself..

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved