PC Review


Reply
Thread Tools Rate Thread

Resource files

 
 
Leif Eirik Olsen
Guest
Posts: n/a
 
      14th Jun 2005
Hi,

Feeling a bit lost here reading helpfiles and googling
'All' I want is a resource file containing text translations (of button,
label captions) to another language than english. This resource will be read
(and assigned) during start of my application and the file must be editable
by enduser, without me having to do any recompilation.

any suggestions?

regards,
Leo


 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      14th Jun 2005
Well, there's not really such a thing as a run-time resource file. Usually,
with unmanaged code, you'd do this with a resource DLL, where the DLL
contains no code, but has the string table, dialog definitions, etc. Since
dialog definitions aren't really used in .NET CF, there's less help there.

Since one of your requirements is the ability for the end user to edit it,
you're going to have to do something proprietary. You could define a file
layout using XML or you could just use plain text files where you define a
value, then a string or something of that nature:

1234,"Here's the text which the user can translate himself."

Your program would then have to parse the file on startup, or whenever, and
store the strings somewhere.

Paul T.

"Leif Eirik Olsen" <leif-eirik.olsen@_REMOVE_plugging.com> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Feeling a bit lost here reading helpfiles and googling
> 'All' I want is a resource file containing text translations (of button,
> label captions) to another language than english. This resource will be
> read
> (and assigned) during start of my application and the file must be
> editable
> by enduser, without me having to do any recompilation.
>
> any suggestions?
>
> regards,
> Leo
>
>



 
Reply With Quote
 
Leif Eirik Olsen
Guest
Posts: n/a
 
      15th Jun 2005
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
skrev i melding news:(E-Mail Removed)...
>
> Since one of your requirements is the ability for the end user to edit it,
> you're going to have to do something proprietary. You could define a file
> layout using XML or you could just use plain text files where you define a
> value, then a string or something of that nature:
>
> 1234,"Here's the text which the user can translate himself."


Thanks Paul for making this clear.

I think I'll go with a plain text file for now.

regards,
Leo


 
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
Resource files / Language files Screaming Eagles 101 Microsoft VB .NET 2 28th Sep 2007 11:07 AM
Resource Files Jean Christophe Avard Microsoft VB .NET 4 16th Sep 2005 02:56 AM
Scan Assembly for Resource Files + Scan Resource File for Keys JezB Microsoft C# .NET 0 21st May 2004 06:29 PM
Using Resource Files in VB.NET Stuart Ferguson Microsoft VB .NET 3 26th Oct 2003 10:21 PM
.RESX files in ASP.NET applications. VS.NET doesn't convert to .resource files Oliver Degnan Microsoft Dot NET 0 29th Jul 2003 07:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 PM.