localization

string.Compare behavior

How this can be ? (This is taken from the immediate window in VS2008) ?string.Compare("-", "+") -1 ?string.Compare("-0", "+0") 1 ...

Can Drupal's t() function localise English homonyms?

In Drupal, strings that are shown to the user are supposed to be passed through the t() function like so: $heading = "<h2>" . t("Product") . "</h2>"; This allows Drupal to translate the string into the appropriate language. However, what if the same English word is used in two different senses on the same site? If I wrote a price cal...

How to use GNU gettext with MS Visual C++?

Is it possible to use GNU gettext with MS Visual C++? Does someone know where to find a sample project that compiles under Visual C++? Update: Thanks to Sorin Sbarnea for his comments which help me to put all the pieces together: I'm used to the Delphi version of gettext where you simply compile the unit gnugettext.pas with your projec...

Best Practice for Asp.net MVC Resource Files

Hi all, What are the best usage of the following resource files. Properties -> Resources (Phil used this resource for localization in DataAnnotation) App_GlobalResources folder App_LocalResources folder I also would like to know what is the difference between (1) and (2) in asp.net mvc application. Thanks, Soe Moe ...

Is there some sort of open source repository of translated strings stored in .mo, or similar formats?

Just curious, I reckon I'll have to hire a translator to do my .mo files manually but would be great if there was some sort of resource for this. Sorry if this question doesn't belong or isn't a "real" question, but it is related to web application localization. ...

Is there a way to tell if the user would prefer metric or imperial without asking in C#?

Right now I'm doing: bool UseMetricByDefault() { return TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).TotalHours >= 0; } This works for distinguishing USA from Europe and Asia, but it ignores South America. Is there a better way? ...

Is there a native way to pass locale or culture in a SOAP request?

I have a client application which queries a 3rd party web service. The webservice calls use SOAP which are defined by a WSDL document available on the remote server. I'm using .NET 2.0 to consume the WSDL file and then make my requests via the generated System.Web.Services.Protocols.SoapHttpClientProtocol object. My question is: Is t...

.NET Globalization & Satellite DLL's

I'm working on localizing an app I've written in C#. Everything seems to be working nicely, using satellite resource assemblies to translate each form's strings (as per this tutorial: http://msdn.microsoft.com/en-us/library/y99d1cd3%28VS.71%29.aspx) However, the application will ultimately require quite a number of languages, which mea...

iPhone app available languages in appStore

Hi I submitted my first application to the appStore http://itunes.apple.com/at/app/section-control/id343824642?mt=8 This displays "English" as Languages (Sprachen in German) in the "Overview". And that is correct in this case. I think this comes from the fact that I don't have localized resources in my application. Which is question on...

set System.Threading.Thread.CurrentThread.CurrentCulture on .net compact framework

I need to show a Hijri Date time picker in windows mobile. .netcf 2.0 System.Threading.Thread.CurrentThread.CurrentCulture is not defined in .net cf 2.0 I have set the controla panel regional settings correctly but the date time picker still shows gregorian dates. How can I get a Hijri date time picker in windowxs mobile. Thanks. ...

Do browsers localize the OK and Cancel buttons of the javascript confirm popup?

In a multi-language web site, can I rely on the javascript confirm to translate the text of the Ok/Cancel buttons? If so, is it related to the browser or OS language setting? ...

using localizable property method versus ResXResourceSet method

Can anyone tell me what is more appropriate for different types of .net applications? ...

How to test localization in SharePoint?

I have created a feature with the description localized. Now I want to be able to test this localization. At first I thought, let me just change the location of the computer in the control panel, but this seemed to have no effect. So my question is - how can I test a location in SharePoint? Another way to ask this question would be ...

Need some help understanding sharepoint localization

Lets try keep this simple. Given a SharePoint site (english) and a feature (localized with resource files) to English (default) and Czech (but could be any language). Why do I need to install a Czech Site Collection to get the Czech localization strings to work. I thought localization worked from user context, IE: based on the curren...

Naming a function for provided localized strings

I'm putting together a list of function names for a function which would return back a localized string for a website I am working on. I'm still undecided what would be a good name for this function. My two goals are two try and make it as short as possible as I will have to replace tons of hardcoded text embedded in HTML but make it i...

C# app - How to move all resources out of the main assembly

For my C# apps I need to have default/neutral resources placed in a sattelight assembly, such that the output of a build looks like: MyApp.exe -AND- MyApp.resources.dll <- containing default/neutral resources How can I accomplish this using VS2008 and .NET runtime 2.0 or greater? Secondary question: How to keep the resources in the exe, ...

How can I determine if iPhone is set for 12 hour or 24 hour time display?

I thought I saw something answering this on SO recently but now I can't find it. Here is the code I am using now to determine if settings are for 24 hour time display. It works for me in the US, but I don't know if it will work in all locales. Is this sufficient or is there a better way to find out the current setting for this? +(BOO...

ASP.NET MVC+ multilingual page

Hello, I'm developing a website using ASP.NET MVC. The website should handle multiple languages. I would like to ask what are the best practices of handling multiple languagues - both for "static" texts and taken from DB. I read some threads about this on stackoverflow but i'm not sure how can I implement in when data from DB are recei...

Issues with Sandcastle : localization and filename casing

Hi, I'm using Sandcastle Help File Builder to build the documentation for an open source project, and I'm facing two issues : The documentation content is in French. I set the language to French in the SHFB project, but most of the generated text is still in English ("Properties", "Inheritance Hierarchy", "See also"...). I saw that th...

PHP: RegEx vs. ctype_*

Dear all, several months ago, you provided a perfect solution for my IsAlpha & co issues. But once again, I ran into issues after upgrading PHP (to version 5.2.9), although the ctype_* functions seem to do their job now: ctype_alpha( $value ) /* VS */ preg_match("/^[\p{L} _.\-]+$/u", $value) ctype_alnum( $value ) /* VS */ preg_matc...