Solved

Resource File - Cultures - en-US de-DE

Posted on 2004-09-02
7
576 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
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Data Tools for Visual Studio 2015 - backward compatibility. 2 114
vb.net checkbox 7 47
cannot connect to sqlserver 8 29
write xml in vb.net 2 24
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…
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 …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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