473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Internationalization Problem

Well..
...I am using some resource files to make the internationalization of a
ASP.NET application.
I created a project and three resource files.

------- resource files -------
/strings.txt
/en-US/strings.en-US.txt
/pt-BR/strings.pt-BR.txt
------- resource files -------

When I compile, is generated:

------- compiled -------
/bin/LicenseManager.dll
/bin/en-US/LicenseManager.resources.dll
/bin/pt-BR/LicenseManager.resources.dll
------- compiled -------

The source to use these resources is:

------------------- source -------------------
Thread.CurrentThread.CurrentCulture
= CultureInfo.CreateSpecificCulture("en-US");
Thread.CurrentThread.CurrentUICulture
= Thread.CurrentThread.CurrentCulture;
ResourceManager rm = new ResourceManager("strings",
Assembly.GetExecutingAssembly());
Response.Write(rm.GetString("xxx",
CultureInfo.CreateSpecificCulture("en-US")));
------------------- source -------------------

But when I run the application:

------------------- error message -------------------
Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure "strings.resources" was
correctly embedded or linked into assembly "LicenseManager". baseName:
strings locationInfo: <null> resource file name: strings.resources assembly:
LicenseManager, Version=1.0.1433.26887, Culture=neutral, PublicKeyToken=null
------------------- error message -------------------
I think that the neutral culture not was linked with the application, then
the
error occurs.
I created a simple application, console application, that generate the same
error.
But, if I compile (the console application) manually works.

------------------- manually compilation -------------------
resgen strings.txt
resgen strings.en-NZ.txt
resgen strings.de.txt

csc /t:exe /res:strings.resources /out:myApp.exe
al /t:lib /culture:en-NZ /embed:strings.en-NZ.resources
/out:myApp.resources.dll
al /t:lib /culture:en-de /embed:strings.de.resources
/out:myApp.resources.dll
------------------- manually compilation -------------------
My ask is:
How I resolv this?
How I config the Visual Studio to compile the string.txt with the
application, and link the Satellite Assemblies?
How I compile a ASP.NET application manually, to use /res:strings.resources,
equal the console application?

observation: All resources are configurated as "Embedded Resource".
Please... Help-me!
Tanks..
[]'s
Nov 18 '05 #1
0 1101

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian Kelley | last post by:
I have been using gettext and various utilities to provide internationalization for a wxPython application and have not really been liking the process. Essentially it uses a macro-style notation...
19
by: Johannes Nix | last post by:
Hello, yesterday I met a cute person (after my dance class) who told me about an interesting experiment regarding cognition. People were told to read a typed text; However, in every word in the...
6
by: Zlatko Matić | last post by:
What is the easiest way to accomplish internationalization in Access application?
2
by: Internationalization | last post by:
COMSYS Globalization Practice is looking for a C#/.NET Internationalization consultant in OR. Can you please contact me if you are interested or else know someone who would be interested. It will...
3
by: Jules | last post by:
i'm working with translators that just want to translate "web pages" and not deal with resource files. i'd like to have a file structure that looks sort of like this: / <- root directory where...
1
by: muzilli | last post by:
Howdy all, somebody used in the past the library System.Resources for internationalization purpose? I would like to develop an application multi-lingual (english and french) and I´m thinking...
3
by: Pieter | last post by:
Hi, What's the commonly used way to do internationalization of the text in MessageBoxes? Thanks a lot in advance, Pieter
2
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Internationalization and Multinationalization in javascript....
3
by: Hugh Oxford | last post by:
Can anyone recommend an approach to internationalization? I am specifically concerned about the need to append an &lang=xx to every internal link and URL. I really don't want to have to manually...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.