473,804 Members | 3,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Month in different languages (globalization)

Hi

The following code will give me the month names in the given culture:

CultureInfo cultureInfo = new CultureInfo(Cul tureInfo.Curren tCulture.Name);
string[] months = cultureInfo.Dat eTimeFormat.Mon thNames;

Now I'm wondering if I can also get the translation of the words day, month
and year in different languages from the globalization class? Is there a
property/method for those words? E.g. cultureInfo.Dat eTimeFormat.Mon th would
return "Monat" (month) if German culture.
Nov 16 '08 #1
0 1359

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

Similar topics

2
6978
by: bb | last post by:
any way to prevent displaying the previous and next months in the calendar control? i have tried just blanking the text out in the dayrender IsOtherMonth and also dynamically changing the FirstDayOfWeek to day 1 of the month. but neither works properly. (the boxes still appear just with no text in them) i want the calendar to start on day 1 of month and end on Day 31 (with acceptable trailing blanks between day 31 and the end of that...
1
940
by: Ryan Ternier | last post by:
Our applications are about to go cross cultural, so we need to allow multiple languages. We built our application to handle this, but have not implemented it yet. One method we talked about was using an XML String table which will take each name and find the equivilent from the other Language and replace it... However this is a lot of processing to load 1 page.
4
5833
by: Dave | last post by:
Dim iMonth As Integer = 1 Dim strMonth As String = Format(iMonth, "MMMM") console.write(strMonth) Output = "MMMM" expected "January"??? what should the code be?
7
1152
by: Atara | last post by:
Did you know that in Turkish strupper("i") <> "I" ?! They have dotted i and un-dotted I, both in upper case and in lower case... We found it only after a complain from a Turkish client. Where can I find more language differences, before I get more clients complaining?
4
6296
by: Dirk Behnke | last post by:
How can I start a new process with a different CultureInfo? I have tried already to set the CultureInfo of the thread starting the new process before creating the Process object, but it doesn't help.
6
7245
by: Edwin Knoppert | last post by:
I can't find a way to obtain the months name from a date. Like 'August'
5
3136
by: Terry Olsen | last post by:
This is the easiest way I can think of to do this: tmp=Right("0" & Now.Month.ToString, 2) The only way I've figured to do it the .NET way is this: tmp="0" & Now.Month.ToString tmp=tmp.substring(tmp.length-3) Surely, there's a more elegant way?
21
3392
by: Darin | last post by:
I have an applicatoin that works 100% perfect when running on a machine setup for English (United States), but when I change it to Spanish (Mexico), the dates start giving me fits. THe reason is USA is mm/dd/yyyy and mexico is dd/mm/yyyy. So, with the computer set to mexico, any standard CDATE function is going to return the date in the dd/mm/yyyy setting since that is what the computer is set to. I want to be able to enter a date in...
3
2762
by: Dave Griffiths | last post by:
Hi All Using VB 2005 I am writing a program that will be used on machines which have different locales (English, Norwegian and Swedish) I am restricting textbox input using keypress to just numbers, control chars and the decimal point, my problem is that the decimal point on English machines is the . (dot) unless specifically changed and on
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9588
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.