1
голосов
4ответов
1224 просмотров

Asc(Chr(254)) returns 116 in .Net 1.1 when language is Hungarian

I set the culture to Hungarian language, and Chr() seems to be broken. System.Threading.Thread.CurrentThread.CurrentCulture = "hu-US" System.Threading.Thread.CurrentThread.CurrentUICulture = "hu-US" Chr(254) This returns "ţ" when it should be "þ" However, Asc("ţ") returns 116. This: Asc(C...

10
голосов
4ответов
11098 просмотров

Globalize an existing Windows Forms application?

I have an existing winforms application developed using VS 2005 and .net framework 2.0. Now we need to globalize this application. The two locales are German and Japanese. I know we can use form's localize property to create localized form resources and can have other resource files for strings...

0
голосов
2ответов
643 просмотров

Group/Editor permission for language in EPiServer

I have an issue with a large globalized website with alot of languages in EPiServer. At the moment we have used different nodes for each language, with each spoken language for that country. With this, we have assigned access rights to the node-treew using Editors (e.g NL has EditorsNL). Severa...

0
голосов
1ответов
1334 просмотров

Handling special characters ñ in asp.net MVC

I have a Web application using asp.net MVC (c#). When generate a View from a controller, characters like ñ appears without any problems. But when run debugger mode the page doesn't display this characters and show me this: Compañía> Crear Appreciate any help Regards

3
голосов
1ответов
278 просмотров

Unicode regular expression tutorial

Is there a good tutorial available for changing ASCII regular expressions to Unicode regular expressions? I need to convert existing a US English application to support internationalization.

0
голосов
1ответов
158 просмотров

How to test webservice for unicode handling

Are there test tools available to test if a webservice can handle unicode utf-8 encoded posts? How do I generate utf-8 encoded data?

0
голосов
2ответов
225 просмотров

Issue debugging custom culture

I am having an issue with a custom culture when debugging on my local machine. I have a web site that has a separate resx file for internal vs external users (terminology is different) We implement this using a custom culture en-GB-external and associated resx. Internal clients would use the en-...

16
голосов
7ответов
21859 просмотров

ToString("0") versus ToString(CultureInfo.InvariantCulture)

I would like to make sure that certain numbers in my application are printed without any separators, groupings etc. no matter what the current environment is. It seems that the following two methods produce the same results (there are possibly more): 123456789.ToString("0"); 123456789.ToString(C...

16
голосов
4ответов
40933 просмотров

How can I change the CurrentCulture of the entire process (not just current thread) in .Net?

I have a situation where I need to set my process' locale to en-US. I know how to do this for the current thread: System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); But my application uses BackgroundWorkers to do some ...

3
голосов
1ответов
4189 просмотров

Changing Currency Symbol location in System.Globalization.NumberFormatInfo

I created a CultureInfo object using new CultureInfo("fr-FR"). Now I have a number that I want to call .ToString("C", FrenchCultureInfo). The resulting string puts the € AFTER the number. Why? CultureInfo french = new CultureInfo("fr-FR"); double value = 1234.56; string output = value.ToStrin...

1
голосов
1ответов
851 просмотров

Custom cultures question about asp.net resx files

We have a custom business culture we've created, let's call it customer. So we've created a custom culture, en-GB-Customer. That all works fine if we have a base resource file and then the customer resource file, e.g. Login.aspx.resx and Login.aspx.en-GB-Customer.resx We see text for general use...

2
голосов
3ответов
891 просмотров

Good resources for learning the different types of Character Encoding and converting between them

One thing I have never truly understood is the concept of character encoding. The way encoding is handled in memory and code often baffles me in that I just copy an example from the internet without truly understanding what it does. I feel it's a really important and much overlooked subject that ...

1
голосов
2ответов
12244 просмотров

ASP.NET, GridView, BoundField, HeaderText Translation

Im having a problem with the HeaderText not being translated when i have definied a new resource file.. all other text do translate but not the HeaderText, even the TemplateField.HeaderText gets translated. <asp:GridView ID="GridView1" runat="server" PageSize="25" GridLines="None" A...

3
голосов
1ответов
1551 просмотров

sort week days by first day of work

is there a better way of rearange the DateTimeFormat.DayNames acording to the DateTimeFormat.FirstDayOfWeek so that if DateTimeFormat.FirstDayOfWeek = 1 dayNames containts mon,tue,wed, ... insted of son,mon,tue, ... I'm currently using: CultureInfo culture = System.Globalization.Cultu...

7
голосов
3ответов
8635 просмотров

ASP.NET Globalization: Culture="auto" page directive with neutral culture crash?

I'm running into a case where an ASP.NET application using the built-in globalization facilities is crashing. On an ASP.NET page with the Culture="auto" directive, a user with a neutral culture as their browser language (such as "zh-Hans") will produce the following exception: Culture 'zh-H...

14
голосов
1ответов
17845 просмотров

app.config globalization

web.config allow a globalization tag: This setting will set the globalization for the entire ASP.NET application. Does this tag work in app.config in standard forms applications too? If yes... where shall it be placed? Or.. is there another way to set the globalization for the entire forms ...

0
голосов
2ответов
500 просмотров

Globalization and links in sentences

I am working on globalizing/localizing an asp.net application with C# as the backend. We are in the process of extracting strings to a resource file, and have run into a problem. We are trying to keep sentences together so that they are translatable, but this is not possible with links. For Ex...

1
голосов
2ответов
3112 просмотров

ASP.NET resource expression not returning correct Culture value

I'm using the Resource expression directives in an ASP.NET page that has four global resource files, neutral, UK, US and Italian. However, using the expression syntax always returns US. Some code for the ASPX page: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" In...

3
голосов
1ответов
1708 просмотров

Page.UICulture -- How do I retrieve the Two Letter UICulture Code?

In ASP.NET webforms, when setting UICulture="en" in the @Page directive, a Response.Write(Page.UICulture) returns the string "English" instead of the two letter language code "en". Is the the only way to return the two letter language name by using this? CultureInfo.CurrentUICulture.TwoLetterIS...

12
голосов
3ответов
1563 просмотров

Localizing Date Ranges

Does anyone know how to localize date ranges using C#? In particular, I want to generate "smart" date ranges, so that redundant information is eliminated. Here are some examples in US English August - Sept, 2009 August 2009 August 1 - 9, 2009 January 1 - March 3, 2009 December 6, 2009 - Janu...

3
голосов
1ответов
2193 просмотров

Localizing and Globalization of WinForms applications

We've developed a WinForms application (targeting .NET 2.0 with VS2008), we've just found out that we need to localize it for use in another language (other than english) :( What are the guidelines for developing multi-lingual languages in .NET? Another application borrows Paint.NET's idea of gl...

0
голосов
1ответов
473 просмотров

change language

how to change the language in iPhone application ?. i mean eg : in my application one label is there i want put a dutch word . what is the easy way. read from property file make one static class in project with string variable. or is possible any change in property file. pls help me......

11
голосов
1ответов
2828 просмотров

Is there any way to detect an RTL language in .NET?

I need to be able to detect whether the current language my user is viewing is an RTL (Right To Left) language like Arabic, so I can include a specific CSS file in my pages. At the moment I'm just detecting this based on the language code of the CultureInfo object, but there must be a better way?

11
голосов
3ответов
4508 просмотров

CultureInfo & DateTimeInfo: How to check if is 24 hour time?

I'm modifying a globalized web application which uses stored CultureInfo for each logged in user. The client would like time data entry to be localized. Displaying is not a problem as the formatting is already available. However I need to detect if the current cultureinfo is for 24 hour time or...

2
голосов
2ответов
1211 просмотров

.resx файл, который страница в настоящее время использует

Как получить RESX-файл, который страница использует в данный момент? Например, если я установил культуру на fr-FR в Default.aspx, он должен дать мне Default.aspx.fr.resx или Default.aspx.fr-FR.resx или Default.aspx.resx в зависимости от того, какой из них существует. Есть ли у них что-то подо...

29
голосов
2ответов
73215 просмотров

Как настроить инвариантную культуру в глобализации ASP.NET?

Мне нужно исправить CurrentCulture как инвариантную культуру в приложении ASP.NET. Как я могу это сделать? <configuration> <system.web> <globalization culture="???" /> ...

1
голосов
1ответов
360 просмотров

Локализации ASP.NET и определяемый пользователем язык

Я работаю над веб-приложением asp.net, и одно из требований заключается в том, что пользователь должен иметь возможность выбирать нужный язык. Я использую файлы Resx для хранения локальных переменных. У меня вопрос: нужно ли мне изменять CurrentCulture потока каждый раз, когда страница загружает...

3
голосов
2ответов
1838 просмотров

Культура на стороне сервера ASP.NET

У меня есть приложение, работающее на англо-американском сервере ASP.NET (английская установка сервера Windows и .NET Framework). Я установил следующие параметры глобализации: <globalization culture="auto" uiCulture="auto" responseEncoding="utf-8"/> , который отлично работает для бол...

3
голосов
2ответов
4904 просмотров

IIS VS 2008 / Web.config - неправильный формат даты

может кому помочь. Я недавно переместил серверы, это IIS7, а не наш предыдущий IIS6, но все остальное то же самое, я установил регион в Великобританию и все форматы даты плюс локальную систему .. Я имею в виду все .. Но когда веб-страница asp.net работает в IIS7, она думает, что даты - это др...

8
голосов
1ответов
2931 просмотров

Process.Start указать культуру

В одном веб-приложении у меня есть IHttpHandler, который при вызове запускает обычное приложение, которое подключается к базе данных firebird и, среди прочего, анализирует некоторые даты из базы данных. При запуске с рабочего стола приложение без проблем делает то, что должно. Но когда он зап...