Solved

Resource File - Cultures - en-US de-DE

Posted on 2004-09-02
7
582 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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