PC Review


Reply
Thread Tools Rate Thread

can I call getString() to get a string from a separate resource file instead of embedded resource?

 
 
babylon
Guest
Posts: n/a
 
      7th Oct 2003
currently, I'm using

this.rm = new ResourceManager("LanguageTest.LangPack",
System.Reflection.Assembly.GetExecutingAssembly());
mystring = rm.getString("XXX");

can i leave the resx as is and load it @ run time?

thx




 
Reply With Quote
 
 
 
 
Manoj G [MVP]
Guest
Posts: n/a
 
      7th Oct 2003
If you plan to use ResourceManager class, then you ought to have resources
in an assembly(normal or satellite). The usefullness of resourcemanager is
that it automatically loads the right resources based on the current thread
culture. You can use classes from System.Xml and work of resx files
directly, but remember that you need to bear the head ache of loading the
right resources (based on culture), basically redoing whatever
ResourceManager already provides...

--
HTH,
Manoj G [.NET MVP]
http://www15.brinkster.com/manoj4dotnet
"babylon" <(E-Mail Removed)> wrote in message
news:#Nt9e#(E-Mail Removed)...
> currently, I'm using
>
> this.rm = new ResourceManager("LanguageTest.LangPack",
> System.Reflection.Assembly.GetExecutingAssembly());
> mystring = rm.getString("XXX");
>
> can i leave the resx as is and load it @ run time?
>
> thx
>
>
>
>



 
Reply With Quote
 
Action
Guest
Posts: n/a
 
      7th Oct 2003
so..it means that the RM don't support 'external resources'...

Actually, what i wanna to do is to provide language pack addon for my
program.
my program may comes with 2-3 lang. support, and I'll let other to load the
language pack dynamically

if the resources has to be embedded into the assembly..
i'll probably specifiy put all the strings mapping into a text file (maybe
with extension .lng)

"Manoj G [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you plan to use ResourceManager class, then you ought to have resources
> in an assembly(normal or satellite). The usefullness of resourcemanager is
> that it automatically loads the right resources based on the current

thread
> culture. You can use classes from System.Xml and work of resx files
> directly, but remember that you need to bear the head ache of loading the
> right resources (based on culture), basically redoing whatever
> ResourceManager already provides...
>
> --
> HTH,
> Manoj G [.NET MVP]
> http://www15.brinkster.com/manoj4dotnet
> "babylon" <(E-Mail Removed)> wrote in message
> news:#Nt9e#(E-Mail Removed)...
> > currently, I'm using
> >
> > this.rm = new ResourceManager("LanguageTest.LangPack",
> > System.Reflection.Assembly.GetExecutingAssembly());
> > mystring = rm.getString("XXX");
> >
> > can i leave the resx as is and load it @ run time?
> >
> > thx
> >
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VS2005 Resource Editor - How to make new line from string resource? Peter Hartlén Microsoft C# .NET 9 21st Jul 2008 08:41 AM
How To Change or modify Embedded String Resource In An Assembly. raghu sunkara Microsoft C# .NET 3 10th Mar 2007 05:49 AM
how to change or modify embedded string resource in an assembly at runtime. raghu sunkara Microsoft VC .NET 2 9th Mar 2007 04:45 PM
Resource manager problem: naming for embedded resource. Dirc Khan-Evans Microsoft ASP .NET 1 17th Oct 2005 01:52 PM
Embedded Resource of xml file Mullin Yu Microsoft C# .NET 3 26th Mar 2004 09:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 PM.