Location of localized messages

  • Thread starter Thread starter Richard Kucia
  • Start date Start date
R

Richard Kucia

I'm porting a full framework app to the CF. The FF app is written to be
locale-aware. The FF deployment project automatically creates the
appropriate language-specific subfolders beneath the application folder.
The FF CLR automatically scans the various folders for the "right"
language file, based on the user's current culture.

I believe that VS.Net does not permit me to specify that included
files (in this case, the various language message files) should be deployed
to the language-specific subfolders of the application for CF projects.

This makes me question whether the localization language-file lookup
algorithm itself is supported in the CF. Anybody have any experience with
this? Thanks.

Richard Kucia
 
Richard,
.NetCF supports the same look-up mechanism for language-specific resources
(satellite assemblies) as full .Net framework.
Please keep in mind however, that on some devices (like PocketPC which does
not have true MUI support) .NetCF may defer to device locale to determine
UI language (i.e. if your current device locale is French, .NetCF will
attempt to locate French resources).

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Richard Kucia" <[email protected]>
| Subject: Location of localized messages
| Date: Mon, 27 Oct 2003 11:58:40 -0500
| Lines: 18
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 65.cleveland-13-14rs.oh.dial-access.att.net
12.87.133.65
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:36930
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I'm porting a full framework app to the CF. The FF app is written to be
| locale-aware. The FF deployment project automatically creates the
| appropriate language-specific subfolders beneath the application folder.
| The FF CLR automatically scans the various folders for the "right"
| language file, based on the user's current culture.
|
| I believe that VS.Net does not permit me to specify that included
| files (in this case, the various language message files) should be
deployed
| to the language-specific subfolders of the application for CF projects.
|
| This makes me question whether the localization language-file lookup
| algorithm itself is supported in the CF. Anybody have any experience with
| this? Thanks.
|
| Richard Kucia
|
|
|
|
 
I have several projects (AAA, BBB and CCC) in the same solution. AAA is the
main assembly with all the forms, including the startup form. Project BBB
has 3 resource files (Build Action = Embedded Resource) named Msg.de.resx,
Msg.en.resx and Msg.ja.resx. These 3 resource files appear on my development
system as

bin\Debug\de\BBB.resources.dll
bin\Debug\ja\BBB.resources.dll
bin\Debug\BBB.dll (which I assume includes the resources as well as the
code from the assembly)

This seems pretty normal to me. However, when I deploy the app to the PDA,
the de and ja folders do not get created. For comparison, the WorldClock
sample app indeed creates the language-specific folders. Is that due to the
fact that the resources in my app are not contained in the main assembly?

Thanks.

Richard Kucia
 
Richard,
I just tried this with a couple of string resource files in VS.NET 2003 and
when deploying with Ctrl+F5 the satellite assemblies get deployed. Are you
building a setup? I believe then you need to add the satellite assemblies
manually to the deployment project (haven't done this before).

BTW - if you have a Msg.en.resx file you should get a en\msg.resources.dll
as well. And in your case the main assembly wouldn't contain any resources
(because you don't have a msg.resx file).
 
Back
Top