Resource files

L

Leif Eirik Olsen

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
 
P

Paul G. Tobey [eMVP]

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.
 
L

Leif Eirik Olsen

Paul G. Tobey said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top