Localization :: How To Create Resource File Dynamically In VB.NET

Oct 4, 2010

We are migrating the VB6 applications into VB.NET (2008). They implemented the globalization in the Vb6 application by storing the english strings and corresponding langauage text (italian,spanish or french) in Database(SQL). Now we need to create a resource file in VB.NET(2008) for each language. Instead of creating resource file manually we want to write an application which will create resource file dynamically for each language and copy the english string and correspoding language text value from database into resource file.

SLNo Language English Value
1 English Name Name
2 Italian Name Nome
3 Spanish Name nombre

View 2 Replies


Similar Messages:

Localization :: Add New Resource File Dynamically At Run-time?

Feb 18, 2010

In our web application we need to keep various company's settings. For eg "Shippingpickup","ZipCodeCaption","DefaultCountry","AllowToEditInvoice", etc

These settings are different for various companies and are placed in web.config as key-value pair.

Initially, we have tried do simplify this process by adding a company_settings table in the DB so as to allow us to add companies on the fly. However, this method makes it very difficult to add a new setting since it would require us to add a column to the company_settings table and thus would require code changes as well as stored procedure changes.

Now we have added separate global resource files for each company's settings. But, whenever we want to add new company to our website, we need to add a new resource file for that company. Adding a resource file requires compilation, and thus the application needs to be restarted. I was wondering if there is a way that we can add a new resource file dynamically at run-time.

Or are resource files not the right thing to use here? Is there a better method of tackling this issue?

View 3 Replies

Localization :: How To Set One Default Resource File From Many Different Resource Files

Apr 7, 2010

In our web application we need to keep various company's settings. For eg "DiamondProdRefIDCaption","Shippingpickup","ZipCodeCaption","DefaultCountry","AllowToEditInvoice", etcThese settings are different for various companies and are placed in web.config as key-value pair.Initially, we have tried do simplify this process by adding a company_settings table in the DB so as to allow us to add companies on the fly. However, this method makes it very difficult to add a new setting

<%$Resources:DiamondProdRefIDCaption%>

View 3 Replies

Localization :: Load Resource Files Dynamically?

Nov 11, 2010

I am working on a application which supports multiple languages and I am doing it using asp.net resources files. Now the problem is, its a product and each user wants to have their own translations.For Example there is a text say "Home"Some users want to say it "Home Page" and some wants to say "Main Page"

Is there any possibility to do create different resource files, for each users, for each page and then load them according to the user currently logged in?

View 1 Replies

Localization :: Manage Two Resource File For One Language?

Oct 28, 2010

In my project i add a reference of one dll and it has some resource files(.resources). Also my project has some resource files with the same language name(Spanish, french and Germany). Also i think we can't add the two resource file for one language. Now how can i mangage both the resource files?

View 1 Replies

Localization :: Check Whethere A Resource File Is Available Or Not?

Dec 3, 2010

need to bind a resource file using system culture info. Say for example, if my system culture is Spanish(Spain) "es-ES" then i have to look for "es-ES" resource file to bind. If it is not there then i have to bind with default resource file ('en-US"). How to do this?

View 3 Replies

Localization :: How To Change The Resource File Used By Page Based On Some Value

Jul 22, 2010

I need to be able to change the resource file used by an ASP.Net Page based on some value other than Culture/Language/Region. The purpopse is to simply configure properties on the page based on a city or site name or other criteria. I do not want to change language or culture/region.

View 1 Replies

Localization :: Avoid Creating Resource File Dll Under Bin Directory?

Oct 30, 2010

I'm developing two applications. One is server application and one more is client application and i'm implementing Localization in both the applications. I have used 7 language resource files in both the application. I need to add the reference of server application in my client application to access some global methods and all. After i'm adding the resource file in the application if i build the application it creates folder for each resource file with language culture code (Spanish -> es-ES, French -> fr-FR) under Bin directory.

Similarly if i add the reference of server application into client application then the resource file dll of server application will be added under corresponding langauge culture folder(es-ES,fr-FR) in the Bin directory. But i don't want to create any resource file dll for the application under Bin directory and aslo i need to put all the resource files inside the application only.

View 1 Replies

Localization :: Reading A Resource File In App_GlobalResources From A Different Project

Aug 9, 2010

I have a web application project with a App_GlobalReousrces folder which contains a *.resx file that I would like to access (read) from a separate class library project.

What's the best way to deal with this one?

View 2 Replies

Localization :: Saving Resource File At Runtime - Access Denied Error

Mar 19, 2010

Saving resource file at runtime -Access denied error

View 2 Replies

How To Create A Fully Qualified Hyperlink To A Resource Dynamically

Jun 12, 2010

In ASP.NET I'd like to create a link which points to a specific Uri and send this link in an email to a user, for instance something like http://www.BlaBla.com/CustomerPortal/Order/9876. I can create the second part of the Uri /CustomerPortal/Order/9876 dynamically in code-behind. My question is: How can I create the base Uri http://www.BlaBla.com without hardcoding it in my application? Basically I want to have something like:

http://localhost:1234/CustomerPortal/Order/9876 (on my development machine)
http://testserver/CustomerPortal/Order/9876 (on an internal test server)
http://www.BlaBla.com/CustomerPortal/Order/9876 (on the production server)

View 3 Replies

Localization :: Use The Same "Name" In Local And Global Resource File?

Oct 11, 2010

Can i use the same "Name"(value is different) in both local and global resource file(.resx) and refer both in same page in VB.NET (VS2008).

View 1 Replies

How To Create Resource File In VB.NET

Oct 4, 2010

want to create and use resource file in my application (VB.NET 2008). Can i use .resx file or should i convert it into .resources file? please tel me the steps to create and use resource file in VB.NET with sample code.

View 1 Replies

How To Create And Use Both Local And Global Resource File In A Page In VB.NET

Oct 11, 2010

I need to create both local and global resource file in VB.NET. And also i need to use both resource file in a single page. how to create and use in VB.NET (VS2008).

View 3 Replies

MVC :: How To Create And Add A Embeded Javascript-resource File By Useing A HtmlHelper

Jan 8, 2011

I have written a smal HtmlHelper, but the thing is that I whould require some javascript functionallity to this helper. So I thought "Whouldnt it be great to actually let the framework add the javascript <script>-tag to the head-element of my Html document once I use this helper?"

So what I whould need/like to do is:

1. Add the Javascript-file as a resource to the dll, since this will allow me to always have the javascript file together with my HtmlHelper, so I dont need to have a seperate file for the js.

2. Add a <script src="{my js-resource}" /> to the head-element of my html document as soon as I use my helper...this is kind of the tricky part..since Im not realy sure about how to do this in MVC...if its even possible..the best sulotion whould be if I didnt need to add any other code in any other file then just in my HtmlHelper...(no code needed to be added in my views or controls) To put it all kind of simple...from what I recall..I want to more or less register a start up script, as its called in WebForms..but in MVC..(I saw an example of how to do it ClientScriptManager, but that whould require me to add extra code on my views and layout/masterpage-files...which simply doesnt do it for me if there is any other way)

View 3 Replies

How To Create A Custom Resource.xml Instead Of Using Resource .resx Implementation

Jun 2, 2010

I will be setting the current thread's culture at the beginning of the request lifecycle.

Does it make sense if I create my own resource.xml to store things like strings/labels/messages that will be used in the web application?

or are their drawbacks and its better if I just use the Global resources .resx files that are 'built-in' ?

View 2 Replies

C# - Loading Resource File In Class Library And Which Resource File To Use?

Oct 25, 2010

I have a class library and was to add a resource file to it to support both English and Spanish. Any tips as how I can do this? The language will be dictated by the user visiting the site. Would like to have to only load each resource file once and cache or set in static variable and avoid any overheads.

View 2 Replies

Localization :: Create A Multi Languages Website With Xml File?

Dec 29, 2010

i want to create a multi languages website with xml file

actually i saw the yaf use this method and i also want to use it in my website with some difrent

the xml file that use yaf look like this:

[Code]....

now i need to create a class that read the xml file and create some function that return the words like:

Language.Title() will return the Title word as string

View 4 Replies

Localization :: Use Default Web Resource?

May 24, 2010

What I want to do is to use the default web resource inside asp.net. For example, If I create a web page with a simple Wizard control and 4 WizardStep ( Start,Step,Finish and Complete) it create a translation of navigation button with the culture of application.

But, for example if i want to create a custom FinishNavigationTemplate I can't (or I don't know how) use the default asp.net transaltion.

How can I use the default asp.net translation (or web resource) for my custom template?

View 2 Replies

Localization :: Pick Value From Resource And Put Into XML?

Mar 7, 2010

I am facing a big problem.I am using multi language support (English, Punjabi) in my asp.net web application. I pick some data from XML for display into my website. But this lead a problem (only show in one english language), so my question is :-1. How to pick data from resource file and put into XML file??like for asp.net label we pick as Meta:Resource(label1).

View 7 Replies

Localization :: Resource Dll Conflict?

Nov 1, 2010

I have a resource "myResource" in a resource file called myResourceFile.resxWhen i try to acces the resource in code using : Resources.myResourceFile.myResourceI get the following exception:

"Resources.myResourceFile.myResource
The type 'Resources.myResourceFile' exists in both 'myResourceFile.dll' and 'App_GlobalResources.j3b95g9k.dll'

[code]...

View 1 Replies

Localization :: The Resource Not Found Error?

Mar 25, 2010

I have a bunch of literals that try to get their info from a resource. I want the page to show Dutch automatically and english by use of a url parameter (?lang=en)

[Code]....

I keep getting a " System.InvalidOperationException: The resource class for this page was not found. Please check if the resource file exists and try again."My web.config looks like <globalization uiCulture="auto:nl" culture="auto:nl-BE"/>In Literal1 I use Resources:Voorstelling.aspx.nl-BE, bevord.Text . Is this correct?The resources are named "Voorstelling.aspx.nl-BE.resx" and "Voorstelling.aspx.en-GB.resx". There are copies of it in the root and in App_LocalResources. They are also compiled form in ../bin/site.dll, in ../bin/en-GB and in ../bin/nl-BE . Where should I save my resources?At this moment I want my page to recognize the resources without using InitializeCulture() or any fancy stuff.Is this possible?This problem has been bugging me for 2 days already. I tried iisreset /stop and /start.

View 5 Replies

Localization :: Translation Of Resource Files?

Feb 16, 2010

I have a multilanguage application and I use resource files (.resx). I hired a person to make the translation. My question is, am I supposed to give him the resource files in order to make the translation and how he will open the resource files? Obviously, he doesn't have a copy of Visual Studio! Is there any tool that I can give him in order to work with the resource files?

View 2 Replies

Localization :: Editing Resource Files At Runtime?

Jan 9, 2011

I need my site to be multilingual. So i have added resx to each page. Now the texts been taken from resource depends on chosen culture. Now my customer want to edit some translation from administration panel. Can resources can be edited in runtime? If they are - is it the best choise to do it that way?(Its seems to me strange i didnt see something lake that in any place)?

View 2 Replies

Localization :: Can't Read Global Resource In Button

Aug 17, 2010

I have translated Text Ok in arabic and I have that placed in global Navig.resx file

<asp:Button
ID="btnReasonOK"
runat="server"
Text="<%= Resources.Navig.OK%>"

When I run it I see <%= Resources.Navig.OK%> itself.Actually I should get translation of Ok.

View 2 Replies







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