Questions tagged [localization]

Localization is the process of adapting a product or service to a particular language, culture, and desired local "look-and-feel".

Localization is the process of adapting internationalized software for a specific region or language by adding locale-specific components, translating text as well as formatting output based on specific locale (e.g. number and date formats, currency sign, etc).

Localization can be referred to by the numeronym L10N or l10n (as in: "L", followed by ten more letters, and then "N")

See also:

13710 questions
201
votes
5 answers

Which is generally best to use — StringComparison.OrdinalIgnoreCase or StringComparison.InvariantCultureIgnoreCase?

I have some code like this: If key.Equals("search", StringComparison.OrdinalIgnoreCase) Then DoSomething() End If I don't care about the case. Should I use OrdinalIgnoreCase, InvariantCultureIgnoreCase, or CurrentCultureIgnoreCase?
Dave Haynes
  • 3,633
  • 6
  • 27
  • 23
198
votes
15 answers

Best practice multi language website

I've been struggling with this question for quite some months now, but I haven't been in a situation that I needed to explore all possible options before. Right now, I feel like it's time to get to know the possibilities and create my own personal…
Joshua - Pendo
  • 4,331
  • 6
  • 37
  • 51
195
votes
7 answers

How do I set the default locale in the JVM?

I want to set the default Locale for my JVM to fr_CA. What are the possible options to do this? I know of only one option Locale.setDefault()
MozenRath
  • 9,652
  • 13
  • 61
  • 104
189
votes
13 answers

Lint: How to ignore " is not translated in " errors?

I can't compile/debug our Android app, because the localization files are not perfect yet. My IDE's validation tool Lint create errors saying: newCardsOrderVals is not translated in ar, bg, ca, cs Compiling/installing/running with Ant works fine,…
168
votes
6 answers

Ignoring accented letters in string comparison

I need to compare 2 strings in C# and treat accented letters the same as non-accented letters. For example: string s1 = "hello"; string s2 = "héllo"; s1.Equals(s2, StringComparison.InvariantCultureIgnoreCase); s1.Equals(s2,…
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168
168
votes
6 answers

DisplayName attribute from Resources?

I have a localized application, and I am wondering if it is possible to have the DisplayName for a certain model property set from a Resource. I'd like to do something like this: public class MyModel { [Required] …
Palantir
  • 23,820
  • 10
  • 76
  • 86
164
votes
14 answers

Xcode 9 - "Fixed Width Constraints May Cause Clipping" and Other Localization Warnings

I downloaded the new Xcode and in Interface Builder I'm having a ton of problems with warnings that say things like: Fixed Width Constraints May Cause Clipping It looks like this: I do have localization for several languages and I understand the…
Dave G
  • 12,042
  • 7
  • 57
  • 83
151
votes
18 answers

"is translated here but not found in default locale" error in strings.xml with translatable="false"

Here is my values\strings.xml (the default file) and everything is self explanatory: My question(s): How can it be "not found in default locale" if I am editing the default locale (values\strings.xml)? How can it be a lint translation error if I…
PIXP
  • 2,382
  • 3
  • 19
  • 28
147
votes
3 answers

Does PostgreSQL support "accent insensitive" collations?

In Microsoft SQL Server, it's possible to specify an "accent insensitive" collation (for a database, table or column), which means that it's possible for a query like SELECT * FROM users WHERE name LIKE 'João' to find a row with a Joao name. I know…
Daniel Serodio
  • 4,229
  • 5
  • 37
  • 33
146
votes
9 answers

Best practice using NSLocalizedString

I'm (like all others) using NSLocalizedStringto localize my app. Unfortunately, there are several "drawbacks" (not necessarily the fault of NSLocalizedString itself), including No autocompletition for strings in Xcode. This makes working not only…
JiaYow
  • 5,207
  • 3
  • 32
  • 36
144
votes
8 answers

How does one change the language of the command line interface of Git?

I’d like to change the language of git (to English) in my Linux installation without changing the language for other programs and couldn’t find the settings. How to do it?
user905686
  • 4,491
  • 8
  • 39
  • 60
138
votes
10 answers

MVC DateTime binding with incorrect date format

Asp.net-MVC now allows for implicit binding of DateTime objects. I have an action along the lines of public ActionResult DoSomething(DateTime startDate) { ... } This successfully converts a string from an ajax call into a DateTime. However, we…
Sam Wessel
  • 8,830
  • 8
  • 40
  • 44
133
votes
11 answers

Localization of DisplayNameAttribute

I am looking for a way to localize properties names displayed in a PropertyGrid. The property's name may be "overriden" using the DisplayNameAttribute attribute. Unfortunately attributes can not have non constant expressions. So I can not use…
PowerKiKi
  • 4,539
  • 4
  • 39
  • 47
131
votes
5 answers

What is the second parameter of NSLocalizedString()?

What is the *comment parameter in: NSString *NSLocalizedString(NSString *key, NSString *comment) If I do this: NSLocalizedString(@"Hello_World_Key", @"Hello World") and have two versions of a Localizable.strings (English and Spanish), does each…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
130
votes
3 answers

Best practice for localization and globalization of strings and labels

I'm a member of a team with more than 20 developers. Each developer works on a separate module (something near 10 modules). In each module we might have at least 50 CRUD forms, which means that we currently have near 500 add buttons, save buttons,…
user1968030