Solved

Resource File - Cultures - en-US de-DE

Posted on 2004-09-02
7
583 Views
Last Modified: 2008-02-20
i want a list of culture names like

en-US for english US
de-DE for german
fr-FR for france.

where can i get more info?
0
Comment
Question by:Jerry_Pang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 125 total points
ID: 11962340
There is a particular command in .net from which u can get all the supported cultures

Here is an example

Imports System
Imports System.Globalization

Public Class SamplesCultureInfo

   Public Shared Sub Main()

      ' Displays several properties of the neutral cultures.
      Console.WriteLine("CULTURE ISO ISO WIN DISPLAYNAME ENGLISHNAME")
      Dim ci As CultureInfo
      For Each ci In  CultureInfo.GetCultures(CultureTypes.NeutralCultures) 'I am getting only neutral cultures
         Console.Write("{0,-7}", ci.Name)
         Console.Write(" {0,-3}", ci.TwoLetterISOLanguageName)
         Console.Write(" {0,-3}", ci.ThreeLetterISOLanguageName)
         Console.Write(" {0,-3}", ci.ThreeLetterWindowsLanguageName)
         Console.Write(" {0,-40}", ci.DisplayName)
         Console.WriteLine(" {0,-40}", ci.EnglishName)
      Next ci

   End Sub 'Main

End Class 'SamplesCultureInfo

Using this I am getting onlu neutralcultures u can also get

1. AllCultures - by having CultureTypes.AllCultures

2. InstalledWin32Cultures - Cultures that are defined in that particular windows

3. SpecificCultures - Specific to a region
0
 
LVL 10

Expert Comment

by:123654789987
ID: 11962354
The output of my above program is

CULTURE  ISO ISO WIN   DISPLAYNAME                              ENGLISHNAME
ar           ar    ara  ARA   Arabic                                   Arabic
bg         bg    bul   BGR   Bulgarian                                Bulgarian
ca         ca    cat   CAT   Catalan                                  Catalan
zh-CHS  zh   zho   CHS   Chinese (Simplified)                     Chinese (Simplified)
zh-CHT  zh  zho    CHT   Chinese (Traditional)                    Chinese (Traditional)
cs         cs   ces    CSY   Czech                                    Czech
da        da   dan   DAN  Danish                                   Danish
de       de   deu   DEU   German                                   German
el        el   ell      ELL   Greek                                    Greek
en       en  eng    ENU   English                                  English
es       es  spa    ESP  Spanish                                  Spanish
fi        fi   fin      FIN   Finnish                                  Finnish
0
 
LVL 9

Author Comment

by:Jerry_Pang
ID: 11969533
Follow up.

I want to create a multi-language application, i will use these resource files for my application.
Is the culture folder name important?
i mean if i want to create a resource file for english,
do i need to create an exact folder name as the culture?  
like

en-US>
 -international.en-UStxt
 -international.en-US.resx

de-DE>
 -international.de-DEtxt
 -international.de-DE.resx

like in this image
http://www.codeguru.com/img/legacy/vb_misc/MultiLang01.jpg

http://www.codeguru.com/vb/gen/vb_misc/multi-languagesupport/article.php/c5601/

im note quite sure about the foldernames.
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 9

Author Comment

by:Jerry_Pang
ID: 11969551
[quote from that site]
For example, to support German we would add a folder named de-DE—case counts here. Next, add a file with the same prefix as your default file, a .txt suffix, and de-DE separated by a period in between.
[\quote]

Note - de-DE,
i want a list of this folder name, is this nescessary? or i can specify my own folders?
anyways, i just want the recommended folder name
0
 
LVL 10

Expert Comment

by:123654789987
ID: 11970792
U can give the folder containing the resources files any name. U have to store all the different language resource files there.

Based on the language selected u can opt to read the particular resource file

0
 
LVL 9

Author Comment

by:Jerry_Pang
ID: 11995074
hi, i have a different question here.

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21121213.html


anyways, i have downloaded a sample program, en changed the resource file
from myRes.en-CO.resx to myRes.jerry.resx. now, how do i call this resource file?

im still experimenting the resource files before i apply it to my projects.
0
 
LVL 9

Author Comment

by:Jerry_Pang
ID: 11995076
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question