Solved

Resource File - Cultures - en-US de-DE

Posted on 2004-09-02
7
573 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
  • 4
  • 3
7 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 9

Author Comment

by:Jerry_Pang
Comment Utility
[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
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now