How To Write Multilingual Application
Apr 1, 2003
I 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 Replies
ADVERTISEMENT
Feb 22, 2011
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 Replies
Sep 9, 2011
I'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 Replies
Jan 11, 2012
Need 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 Replies
Jul 16, 2010
I 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.
View 4 Replies
Jun 22, 2010
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
View 3 Replies
Dec 8, 2010
implmentation 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.
View 4 Replies
Oct 28, 2009
design a form with multilingual on interface depend on the user!
View 6 Replies
Jan 9, 2012
How to load external xml files for multilingual purposes?
View 4 Replies
Jun 18, 2010
Trying 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?
View 2 Replies
Jul 8, 2010
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].....
View 1 Replies
May 26, 2010
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.
View 2 Replies
Jan 29, 2012
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]....
View 1 Replies
Jan 18, 2011
My 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 Replies
Mar 4, 2012
I am currently trying to write an application that uses more than one thuread, but I have little experience of this and the more I read about it, the more confusing it is.I currently have one main prog (StartupForm) that has 3 items defined as tool Strip items io the menu. Upon selecting each item, it runs the relevant Click subroutine.
What I am trying to do is within each subroutine, getting it to launch a additional form (option1Form, Option2Form & Option3Form all running under running under ew threads and independent from the original programme. Hence when the original programme is busy, the sub forms are running their own code quite happily. The only interaction I require is that the Main Programme (startupForm) Updates an array. Which the the new thread / form can read. Can this be doe some how Byref
View 32 Replies
Jan 21, 2010
I've written a menu for a console application. It has three items. I want to keep the menu displaying until I press 3. How can I do that. My code below -
Sub Main()
Dim intInput As Integer = 0
Console.WriteLine("")
Console.WriteLine("Main Menu")
[code]....
View 4 Replies
Jun 10, 2011
using VB 2010 ,I would like to write an application that captures snapshots from my laptop webcam ,and save it.
View 2 Replies
Nov 20, 2008
I am looking for some API or OCX or any other method to copy the existing file from Hard disk to the USB storage device.for that i would have to perform the following checks :
1> Check for the plugged in USB devices.
2> Find out for the available space(2GB) on each.
3> Prompting a message to user on which drive he would like to write that movie file.(As At a time i want to give only 1 disk write only.
4> after selecting the Drive, and pressing OK, i just want to copy the selected file from HDD to that Device.
Now For achieving this , i just need a reference of any Available API or OCX or any other method available in VB.net?
View 2 Replies
Nov 3, 2009
Is it possible to write to an access database that is an MDE, from a .net application?
View 2 Replies
Jul 13, 2011
I bet someone already asked this but i cant seem to find it. Ok i need is a global settings that can be updated which will affect all users. I was using xml files in the program filestill now and I need to get around using this because the files can be delete or over written incorrectly. I started using the settings option and realized application level is read only and i cannot use user scope because then it wont be global settings. Is there an alternative to this.
View 5 Replies
Apr 4, 2007
I understand that I cannot use the System.Console to output information from a Windows Forms application because the standard input, output, and error streams are not run through the console in winforms apps. But I can't seem to find any documentation on where the standard input, output, and error streams are being directed to! Basically, I have a winforms app that accepts command line arguments and can be run in batch mode, however, I just want to direct some feedback to the user based on whatever method they're accessing the program. The app is used to redirect a client-server application from one server to another. In some instances, the user does it by hand (with a mouse), and other times they're doing it in batch mode (using SAS, command shell, VBScript, etc...). In those instances, I'd prefer NOT to use MessageBoxes because it will kill any processing they're doing.
View 6 Replies
Jan 30, 2010
I'm trying to get my application to read to and write from an Access database. I am running Windows 7 x64.
If I disable UAC, I don't the error. If I have UAC enabled, then the error occurs. Here is a screen shot of the error:
View 6 Replies
Feb 16, 2011
VS2010 VB.Net Windows Form (not WPF). Any Hello World level example for printing the text within a multi-line text box they can post? Ditto for a print preview? I need to write a simple envelope printing app and I need a good base to build upon.
View 3 Replies
Apr 26, 2010
I am proficient in Visual Basic, but I think I need to use .net and move with the times to achieve what I want.I am trying to write an application which extracts text from documents (.doc, .pdf, .xls etc. etc) using IFilter.I have found a very good example application in C# (Using IFilter in C# - CodeProject) which does what I want, but I am really struggling with C#.Does anybody know if there is a way to achieve the same results (i.e. extracting text from documents using IFilter) in VB?I have found a few examples on the web which do not seem to explain much - most examples I see are in C#.
View 5 Replies
Jan 11, 2011
i am in a middle of a crucial job and i needed to add a printing code that will be able to print records in a database. what do i do, someone should please help. your assistance is highly welcomed
View 2 Replies
Jul 12, 2009
Is it possible to write a program in VB.net, compile it, and run it on a Windows Mobile Smart Phone?
View 2 Replies
Jun 8, 2009
Trying to write a DLL logger that is independant of the executing application. How can I determine the DLL path?
View 11 Replies
Oct 19, 2011
I'm trying to write a small application that will show the GPU temperature.I'v found the following documentation about the subject: url...according to this documentation, I can use the nvcpl.dll file (which is a part of the NVIDIA driver) like this:[code]Now the problem is that this code keeps sending back 0, which means somethin is wrong here and the function is not working.
View 1 Replies
Jun 22, 2010
i planned to write a syntax highlighting application for a C/AL editor. I have a tool which has a little autocomplete function in C/AL.At first i would test it in my notepad. I thought about this procedure.1. Start application (minimized in tray, defined match words)2. Open Notepad (my application notice it)3. While typing the application the color of my text changes in notepad
View 4 Replies
Oct 28, 2011
I needed to make an application that calculates weekly pay of employees at an hourly rate. The overtime schema is that: hours less than or equal to cutoff1 are paid regular rate. hours over cutoff1 but not exceeding cutoff2 are paid 1.5 times regular rate. hours over cutoff2 are paid double time or 2 times regular rate. [Code] The employee must choose Category A, B or C depending on the amount they have worked. I am completly new to visual basic, I am not sure how to continue with my if and then statements. I must also create the application with 3 radio buttons, where the user clicks either Category a b or c and then buttons which say calculate and clear. [Code]
View 4 Replies