VS 2010 - Multilingual Using XML File (Not Globalization)
Jan 9, 2012How to load external xml files for multilingual purposes?
View 4 RepliesHow to load external xml files for multilingual purposes?
View 4 RepliesMy click-once app has english and spanish content. In development, it runs fine with the two resource files I have - named multilingual.en-US.resx & multilingual.es-MX.resx accordingly. When I publish it looses these resources for referencing.The files reside in the root directory for the app.
View 1 RepliesI have the following code written in order to get data from an SQL Express table to a datagridview.Everythink is OK but the text that is displayed at the datagridview is something like this "Test text?" where? are some Greek characters. I tried some code with culture info but nothing. [Code]
View 8 RepliesI'm trying to learn how to make multilingual apps. All defaults text for controls are saved in Form1.resx (Created automatically by VB.NET). I've set the Localizable property to True and Language to German(Austria). So far so good and VB.NET created the file Form1.de-AT.resx.Both resource file contain text for the different controls on the form. When I click on a particular button on the form, I want a custom message to be displayed according to the language setting/resource file in use.In both Form1.resx and Form1.de-AT.resx i've added another row for the custom message. How do I write the code so that when the button is clicked, it retrieves the custom message from the appropriate resource file? [code]Another thing, is Localization only for changing language or does it affect date and number formats also? Just asking because if a PC Regional Options settings is set to English(United Kingdom) and I do 5/2 the result is 2.5. If it's set to German(Austria) the result returned is 2,5But in VB.NET, if I use Thread. CurrentThread.CurrentUICulture = New CultureInfo("de-AT") (i.e German-Austria) the result returned for 5/2 is 2.5 and not 2,5
View 1 RepliesI need to write multilingual application (two languages). That's means labels, buttons and other objects on forms display in language which user can select. This n-tier (3-tier) application with central database on remote machine.
View 15 RepliesNeed a procedure in SQL for translate a datatable in English to Arabic .I am having English table which is having category ID ,Code etc upto 25 columns in the SQL Database.We want to translate this table to arabic when user opts for Arabic .So need a procedure to convert this English table to Arabic.Do i want to use google translator for this case . Then how will it is linked with database .
View 1 RepliesI am currently working on converting an app from VB6 to VB.NET 2.0 - I am only using 2.0 to provide Win 2k compatibility, AFAIK, Win 2k can't run any framework newer then 2.0. Part of the conversion includes moving multilingual support over. In the VB6 version, we were storing the translated text in an Excel document - the xls could be passed to translators. A script in the xls file would dump the languages to individual text files and generate a LanguageRescource.rc file which was then compiled using RC.exe.
When the app started or the user selected a language, the resource file was read using:
Public Sub LoadLang(ByVal LangNum As Byte)
Dim bData() As Byte
[CODE]...
It was then split using vbNewLine as a delimiter and the lines assigned to the labels and to a public array for use in other places in the program (message boxes, log files, etc). Doing the same thing in .NET doesn't seem possible, or is rather convoluted. I have read many articles on globalisation, localisation, etc and it doesn't make a whole lot of sense to me. I am wanting to have the language files built in to the executable, not as dependencies. From what I can tell after reading all of this information is there are at least 2, if not more to do it.
1) Use form localisation. This would require changing all the captions and things for each language, this would in turn generate frmMain.<lang>.resx files.
The correct file would be loaded automatically on form/program startup and is hard to change at runtime if the user wishes. it would also cost me a fair bit of time to add every one of the 23 languages. It also would not satisfy my other requirements of message boxes and output to log files.
2) Make a resource file and store the strings in there, in a similar fashion to what I was doing in VB6. The problem is, how do I separate each languages strings? Each resx file only seems to be capable of storing on string table.
I want to update my existing application(s) to support multiple languagescultures.
There are a lot of artilcles on Globalization and using cultureinfo class.
I haven't came accross any article which tells about the approach to carry out such conversions.
From what i can see is that I have to update all my interface text , consider culture specific number, date formats and string comparisons.
1. What is most recommendedused method for setting interface text to support multiple languages.
2. Are there any tools available which helps me carry out these changes
It seems that I have problem changing System.Globalization.CultureInfo.CurrentUICulture value according to the user preferences (.net 4.0 web application). In my Web Application, I have two buttons. One for the Greek Language and one for the English Language. When the buttons are clicked a request goes to the server asking to change the user preferred language. For Greek, I send "el-GR" and for English, I send "en-US". On server side, I use the following piece of code to change the Current CultureInfo:
[Code]...
I know you can get a currency symbol or a data format for a country using System.Globalization. However, is it possible to get the phone number format for a country from it as well. If not is there a way to get this information from the .NET Framework?
View 11 RepliesI have a web application which uses the globalization values being passed from sql server 2005 using a ResourceProviderFactory. I can globalize the labels in UI using <%$ Resources: "Resourcekey" %> however, i wish to know how i can globalize the dynamic/custom controls available in the code behind of my vb.aspx page?
View 1 RepliesI am using Windows Forms Application that supports both Arabic and English languages....The problem is if i put the controls like (TextBox and Label) on form itself they get Layout RightToLeft and also become right align means label went to right side and textbox in left side)....But when i put these controls inside of a GroupBox or Table then textbox itself become right align ...i means cursor inside of text box............but controls don't flip from left to right......Label remains on left side and textbox on right side....i want to flip the controls.........label must go to right...same like Forms ControlBox is flipping.
View 1 RepliesLike to know will VB going to be provided support for Globalised Applications development for Windows Phone 7.1 or later?
View 6 RepliesI'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]....
I am developing an multilingual application in vb.net 2008.I had given a combobox for language selection when user select any language like marathi or hindi then all labels are change in the selected language but i am facing problem with textbox if i select any language it takes input from user in english only.I want when user select any language and enter data in textbox then he is able to enter data in the selected language.
View 2 Repliesimplmentation of using resource files for my UI, based of user preference.
Note: Ive never worked with resources files before for creating a multi-lingual app.
also this might be placed on the wrong forum board.
design a form with multilingual on interface depend on the user!
View 6 RepliesTrying find some good examples of support different languages in VB.NET. I've read sites on System.Globalization and resource files but none explain fully how to implement them in my application.
What happens to the form title, msgbox strings etc. How do I make these multilingual?
We have localized our application menubar(Ex: Spanish language).The menubar menuitems have few shortcut keys i.e CTRL + N along with the text. The shortcut key is diplaying in some dummy character.We want the menuitem (Ex: New File CTRL+ N) text in local language and CTRL+ N should display as English
cMenuBar.Font = New Font(Configfontname, Configfontsize)
strMenuText = rsManager.GetString("cbmNewFold")
cbmNewFold = New CommandBarButton(ilToolbar20.Images.Item(0), strMenuText, New
[code].....
I have a windows form I want to show in two languages. When the user clicks a language button it switches to the other language.
It works fine, when you click it all the labels change to the other language.
Only problem is labels inside a group box do not change.
[Code]...
Developing a multilingual application in VB.Net 2008, Im able to add resources to forms and create a multilingual forms depending on uiculture. On reading Msdn on creating the multilingual string values for messagebox contents, have added the .resource file to the project files path as specified. There is no error on compilation but throws the MissingManifestResourceException error
Dim rm As ResourceManager
rm = ResourceManager.CreateFileBasedResourceManager("strFormResources", ".", Nothing)
[code].....
There is strFormResources.resources and strFormResources.fr-FR.resources in Resources of the project. I have searched for this error details but could not find a solution. What am i doing wrong or is there any other method for displaying multilingual strings in the messagebox.
I have a multilingual company website (Visual Studio / VB / ASP.NET 4.0), and when, on the homepage, you click a flag, the text changes to that language and stays with you the entire session, after I made a class, BasePage.vb. Everything works great, but the URL never changes .... clients.aspx remains clients.aspx although the text DOES switch to Dutch.
It's been recommended by @Aritstos to make it so it looks like clients.aspx?lang=nl as opposed to just clients.aspx in another language.
Currently, my asp homepage hyperlinks that work look like this:
<asp:LinkButton ID="LinkButton7" runat="server"
CommandArgument="nl" OnClick="RequestLanguageChange_Click"
class="flagbutton">
[Code]....
I need to sort an array containing a list of words and search the same using binarysearch. For certain reasons, the word-list must always be sorted using the sorting-rules of "en-US" i.e. American Regional Settings. The code will run under various international Operating Systems and of course this will mean that the word-list will be sorted differently according to the local Regional Settings in use. One problem could arise on a computer/device running with Lithuanian Regional Settings. Why? Because the letter "Y" in most languages is sorted like X-Y-Z while in Lithuanian, the sort order is I-Y-J. This behavior would create havoc to my program.
[Code]...
However, in means of flexibility I believe Guffa's answer is the best one. Why? Let's use another example:In German, the letter Ö is sorted Ö-X-Z while in Swedish and Finnish, the order is X-Z-Ö. In Estonian the sort order is Z-Ö-X. Complicated, isn't it? Guffa's solution will let me force Swedish sorting-oder (changing CultureInfo) on a device running under German Regional settings. Using Comparer.DefaultInvariant with its association to English wouldn't help in this case, probably the letter Ö would end up with O. Therefore my vote will go to Guffa.
I do one project in visual basic 2010.In visual basic 6 project can be make Package and deployment (setup file or install file) file using Package and deployment wizard.But in visual basic 2010 express edition does not have Package and deployment wizard.how to make Package and deployment (setup file or install file) file in visual basic 2010 project?
View 4 Repliestrying to input a text file that's tab delimited that looks something like this.
2.2 5.6
3.7 9
1.2 9.1
[code].....
1 List all of the data from Teams.txt in a Listbox. Include suitable headings.
2 List all of the data from Results.txt in the Listbox (use the same Listbox as in 1 above).Include suitable headings. Note that you cannot assume that the file contains onlyresults for the first 3 weeks of the season. Your program should be able to process a results file with more or fewer results.
3 List all of the data from Results.txt in the Listbox. However, in this case the actual team names should be output (your program will need to get this data from Teams.txt. The data should be formatted so that it is aligned correctly. Include suitable headings.
The output might look as follows:
Home Team Away Team Home Team Goals Away Team Goals
Bunbury Braves Nedlands Nodders 5 2
with VB.net 2010, i would like to export a text file (with ; separator and variable length lines) to excel 2010
View 3 RepliesWhen i try to open the file in Visual Basics 2008 it says: "The selected file is a solution file, but was created by a newer version of this application and cannot be opened"
View 3 RepliesI'm working on a school project right now and I have everything fine except this one part of the project: "The audit and errorevent logs should be archived if they are larger than 5K and up you need to keep up to 3 copies of the files." I know how to read and write text files just fine, so I don't need help with that. What I don't know is how to archive a file based on file size, or how to keep up to 3 copies of the files?
View 2 Repliesim making a simple program that will copy a single file. im trying to get the name of the file that i selected in the open file dialog but i get the location and file name (C:Users****Documents est est.txt) im trying to just get (test.txt)
View 2 Replies