Include Resource Files For Each Language?

May 31, 2011

i have been looking over the msdn article to translate an application over here http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx this makes sense to include resource files for each language, giving each resource the file naming convention e.g de-DE for german and letting the system pull the correct resource string through based on the regional system settings. I can see how this will work for strings such as message boxes the article states I need a resource file for each language. all variables will be the same accross all resources, I just need to store the translated string against the correct variable.

I have a question about designer contents I have several forms I've used the form designer to set the forms text and controls text.I can see that a form has a language property that you can set and translate the strings from the designer. my understanding is that a resource file will be generated per form per language changing the language property of the form.

my question is can the above msdn article be mixed with forms designer language method? if so, will this be too many resource files?What is the best practice for application translation?

View 10 Replies


ADVERTISEMENT

Multi-Language And Resource Files?

Aug 27, 2009

I have a question about creating a multi-language application and the use of resource files. I will explain what I have done and what I would like the final product to be like.I am doing this in VB.Net and using Visual Studio 2008 After creating a new project, I added a resource file to the project (Add -> New Item, Selected Resource File, named it Resource1.resx).

I then double clicked the resource file and was able to add some names and values. For example,

Name - lblFirstName, value - John
Name - lblLastName, value - Smith

On my form, I have 2 labels: FirstName, and LastName

In Code, I added

FirstName.Text = My.Resources.Resource1.lblFirstName
LastName.Text = My.Resources.Resource1.lblLastName

If I run this code, it works fine. John and Smith are displayed on the labels. Now for my question. Say instead of first and last name the labels (buttons, menu items, etc.) were actually words that would be different in different languages. What I would like is to have something like

EnglishText.resx
SpanishText.resx
GermanText.resx

Each resource file would contain the same names, just different values. Depending on what language was selected, decided by the user (from a menu), how can I get the matching resource file to be used.

Basically what I want would be FirstName.Text = My.Resources.<Language Specific Resource File>.lblFirstName

Is something like this possible? Is this an acceptable approach? Is there a better way of doing this? I try to check often to see if there are follow up questions or if more information needs to be provided.

View 1 Replies

Include Multi Language Support?

Nov 23, 2009

Currently I am doing a CMS and I want to

View 2 Replies

Include A Resource File Into A Project?

Jan 6, 2009

how to include a Resource File into a project, and how to put image files into it for use in my program.

View 2 Replies

Add String Table For Chinese Language In Resource File (*.res In VB6)

Sep 7, 2009

How can we add multiple columns in resource file (.res) for multi language (eg. 1st column for English and 2nd column for Chinese) through script used by rc.exe utility? We know how to add one column to resouce file using script and compile it with rc.exe it will generate one default language column with id,

[Code]...

View 1 Replies

Icons From Resource File - Use Files Inside Of Resource File In Apps?

Feb 26, 2011

So i created resource file New --> new file --> Native Resource Template Then added icons with custom id, like "x", "u_100", .. so i understand, what the files (in my case icons) is.. And i saved as 32-bit resource file (*.res) So i have a question, how can i use these files inside of resource file in my apps? i know how to add icons in to my app.. Me.Icon = New Icon(C:/icon.ico)

View 6 Replies

Extract QuickTime Files From A Resource And Convert Them Into Separate Files?

Jun 8, 2009

I have a resource file for a program, and i have determined that the resource file just a big string of files glued together whole, i know that the movies contained in the file are quicktime mov. Where can i find information on the quicktime header? and how can i determine the length of a file once i find it?

View 1 Replies

How To Include Files

Aug 7, 2011

I want to deploy the application in which some excell file are included.I deploy ten times and now i am stuck.In the code i give the file path as [code] When i publish and see the application files there is no excell files. And on the target computer the message shows no file found. How i add these files when i publish it?

View 1 Replies

Get Path Of My Include Files In VB 2005?

Aug 23, 2011

I have created a folder inside my project and i put an icon on it, now i want to use it as my program icon how will i get the link of my icon inside misc folder?

View 2 Replies

Include Files Jpegs In The Installation?

Apr 8, 2010

when i am building the installation file i need to be including some jpegs and i need them to be saved to a specific location how do i include jpegs in the installation? how do i have them be extracted to specific directories?

View 1 Replies

VS 2008 Which Files To Include In Installer?

Sep 8, 2010

I am using a seperate installer for my program and in the Release folder I have several files. I was wondering based on this list, which ones I need to include. Here are the extensions of all the files:

[Code]...

View 1 Replies

VS 2010 Include Files In Project?

Jun 6, 2012

how i can include files like : .exe .rar .zip .7z in my project and how to make when i push some button for example to download the selected file.

I will give example: I have put alot files in the project and now the test will be with "Test.exe"In my Form1 i got 1 textbox and 1 button and 1 checkbox (or radiobutton)In the textbox is putted the name of the file "Test.exe" and after him has 1 radiobutton for checking that i selected this one to download to the computer and when i press the button to download the file in a popup displayed form (to display new form with the compression progcess - how much percentes is downloaded).

View 18 Replies

Downloading HTML Files With #include File?

Dec 11, 2011

I am writing a program in VB.NET in Visual Studio 2010 to edit web pages that allows the user to download, edit and then upload HTML files.

To download I use:

My.Computer.Network.DownloadFile(New Uri(strSiteFileName), strLocalWebSiteFolder & strFileName, "", "", False, 100000, True)

My problem is that if the file being downloaded is an HTML file that includes a <!-- #include file = [filename] --> line then rather than just downloading, the file that is downloaded and saved actually includes the 'include' file's text, not the line to include the file. I just want to download the file including the reference line.

For example

if a file named 'footer.html' is simply one line as follows:
<p>This is the footer</p>

and a second file named 'index.html' is as follows:
<html>
<body>
<p>This is the main part of the file</p>

[Code].....

Is this a feature or am I missing something? All I want is the basic 'index.html' file to be downloaded.

View 1 Replies

Include Code Or Files From Other Projects WITHOUT Referencing Them

Nov 16, 2011

Is there a way that I can include code or other files from other projects WITHOUT referencing them? I am trying to combine our projects into 1 EXE without DLLs. I do not want to use a self extracting EXE either. Let me know if there is a way to do it similar to the C++ #Include.

View 5 Replies

What Files To Include With Visual Basic Publish

Oct 22, 2010

What files do I need to include when I share my published VB form. I see in the "Application Files" folder there are all my version that I have published. Do I need to include all these or just the most resent with the Setup.exe?

View 1 Replies

Running Files From Resource Files?

Jun 11, 2011

That i need to do is running file that i have put in the resource files (exe file)So the idea of this when i click the button the file that i have put run so it cant be happen with shell.

View 4 Replies

Asp.net - Add Two Language Code Files I.e. C# To App_Code?

Feb 28, 2010

While adding two language code files i.e. C# and VB.NET to App_Code, got an error The files ... file names ... use a different language, which is not allowed since they need to be compiled together.Is there a way to add two different language files?

View 1 Replies

MS VS(vb) '08 Express Include External Files For Read/write Access?

Dec 2, 2009

I am using Visual Basic 2008 Express Edition. Some of the programs I am writing make extensive use of External files (saved games, data, item lists, etc.) I could use an easy way to get these files to ride allong during deployment (cd mostly). adding them to the resources works for some static pictures, but custom structures into lists of info to read and write from are beond that features abilities, same with the settings feature. I have found in other help referance to "MageUI.exe" so is downloading a .net SDK my solution or is there a better trick I can use?

View 2 Replies

VS 2008 : Include Files In Install When Using Outlook Object Library?

Nov 17, 2010

My program I wrote is using Outlook 12.0 lib for Outlook 2007. I have referenced this in the project. This exe will only be installed on computers that has Outlook 2007 on it. So with this being the case, do I need to bother including any of the lib files? Or just my exe?I have this in my form:

Imports Microsoft.Office.Interop
Imports System.Reflection
Imports System.IO
Imports System.Text

[code]....

So I assume the Interop is all part of the object lib? I know this sounds crazy but I tried coding it using late-binding with many examples but just had too many problems. So I'm going to make three different exe's for versions 2003, 2007 and 2010.

View 3 Replies

Add A Few Resource Files?

Dec 25, 2011

when i add a few resource files and add them in go to debug i get this error

View 9 Replies

Generating Resource Files?

Feb 14, 2012

Generating resource files

View 1 Replies

Localization With Out Resource Files?

Jul 14, 2011

Can't we do localization with out Resource files ?

View 8 Replies

Opening Up Files From The Resource?

Mar 4, 2011

how do i open a .exe file from inside the resource by click a button which will open a .exe file in the resource folder, which will work on any pc. The .exe will be like a installer or something. so basicy Click the button it will launch the installer and this will with on any pc?How do i do this?

View 3 Replies

Read Only Selected Text From Pdf Files - Visual Basic Language?

Jun 20, 2010

how to read selected text from pdf files in vb.net - visual basic language ?

View 1 Replies

Access Resource Files From Code

Apr 15, 2010

If I have added an html file to my vb 2008 form app project - for use with the webbrowser control. What would be the correct syntax for navigatingto it from the webbrowser.navigateto method.

View 11 Replies

Calling Files From Resource Folder

Nov 3, 2009

previously i have coded: Me.PictureBox1.Image = Image.FromFile(Application.StartupPath + "\JPG LandoltC" + filePath + ".jpg") where filePath is the function to locate the name of the pictures but now i have to put everything into the .exe to make it more "sightly" so now i'm trying Me.PictureBox1.Image = My.Resources.filePath and its not working.

View 6 Replies

Customer Editable Resource Files?

Dec 10, 2010

I have an application that uses resource files (.resx) to switch the application between languages.These resource files are compiled at development time to create the dll'sHowever, there are many times when an application gets deployed onsite, and there are spelling mistakes, or general mistakes in the translated text.

View 1 Replies

Edit Any .dll Files's Resource Like Bitmap?

Dec 30, 2009

I want to edit any .dll files's Resource like bitmap, strings and replace it as resource hacker or peexplorer do.

View 4 Replies

Embedded Resource - How To Extract Files

Dec 14, 2009

I want to create a patcher/installer type program. I have 3 files that need to be embedded or stored in a file. Two files need to be extracted when user clicks a button and one of those two files need to be run with a parameter when the button is clicked and last file needs to be extracted when program closes down. All 3 files need to be able to be updated in the program.

View 7 Replies

Generating Resource Files For Form?

Nov 21, 2011

I have a VB project which has a list of forms, one of the Forms resx file doesn't contain information about controls and seems to be corrupted, now I want to regenerate the resource files again for the form, how can I do that?

View 3 Replies







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