Questions tagged [internationalization]

Internationalization(i18n : representing "internationalisation" as "i" followed by 18 more letters, followed by "n") is the process of planning and implementing products and services so that they can easily be adapted to specific local languages and cultures, a process called localization. The internationalization process is sometimes called translation or localization enablement.

This is a matter not only of changing the language which the software presents (e.g. in its user interface), but of changing the date format, the orientation of the text, the numeric format, and other aspects of its behavior to reflect the culture.

11657 questions
41
votes
3 answers

complete example of gettext in php

i've been googling for the last hour or so trying to find a complete working example of gettext in php - all source files, po files, with proper paths, etc. Just a "hello world" with all the required files. I was wondering if anybody has such a…
Sherif Buzz
  • 1,218
  • 5
  • 21
  • 38
41
votes
5 answers

How can I make Rails 3 localize my date formats?

I am working on a Rails 3 project where there is place for date input within a form. The text field with the date uses a date picker so there is no concern about the date being entered in a wrong format, however the date is being displayed in the…
41
votes
5 answers

Django internationalization language codes

Where can I find list of languages and language_code like this. (Swedish,sv) (English,en)
Hulk
  • 32,860
  • 62
  • 144
  • 215
41
votes
5 answers

Turkish case conversion in JavaScript

I want to convert strings to lower or upper case in JavaScript in the locale I wanted. I think standard functions like toUpperCase() and toLocaleUpperCase() do not satisfy this need. toLocale functions do not behave as they should. For example, in…
sanilunlu
  • 725
  • 1
  • 6
  • 8
40
votes
6 answers

Fatal error: Class 'IntlDateFormatter' not found

I installed WAMP on my local machine. My PHP version is 5.3.3 in phpinfo() but that extension doesn't exist! :( How can I install this extension without compiling it? Here is just source of it.
Jalal
  • 6,594
  • 9
  • 63
  • 100
40
votes
2 answers

Get current language next-i18next

I am using NextJS with next-i18next. This is my home page: import {withTranslation} from '../config/next-i18next'; const Home = function Home() { return (
test
) }; Home.getInitialProps = async () => { return {namespacesRequired:…
gdfgdfg
  • 3,181
  • 7
  • 37
  • 83
40
votes
3 answers

Rails Internationalization (I18n) in model validations: Possible or not?

I have the following validation in a model: validates_inclusion_of :whatever, :in => [true, false], :message => I18n.t('please_select_whatever') It seems that the translation does not work in production mode: in all languages it's always the…
40
votes
4 answers

Non-English default language for iOS App?

I am developing an app for a client in Europe. I am an English-speaker in the US. Our app is going to support a number of languages, but not English. I have all the strings in our app in translated Localized.strings files, set up correctly for…
James J
  • 6,428
  • 6
  • 35
  • 45
39
votes
4 answers

Why Spring MessageSource arguments are not filled correctly in some locales?

mailconfirm.mail.body=

Hi, {0}!

\ To confirm your email address click on the confirmation link given bellow. If clicking on the link doesn't work, copy and paste the link in a new browser tab.
Rihards
  • 10,241
  • 14
  • 58
  • 78
39
votes
6 answers

How do you handle translation of text with markup?

I'm developing multi-language support for our web app. We're using Django's helpers around the gettext library. Everything has been surprisingly easy, except for the question of how to handle sentences that include significant HTML markup. Here's a…
badr
39
votes
6 answers

What is the "best" way to store international addresses in a database?

What is the "best" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each…
rmontgomery429
  • 14,660
  • 17
  • 61
  • 66
39
votes
2 answers

I18n for model-specific Rails submit button

I've found that Rails allows for generic i18n of submit buttons via the following in config/locales/en.yml: en: helpers: submit: create: "Create %{model}" submit: "Save %{model}" update: "Update %{model}" However, I'm…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
39
votes
7 answers

How can I test for an expected exception with a specific exception message from a resource file in Visual Studio Test?

Visual Studio Test can check for expected exceptions using the ExpectedException attribute. You can pass in an exception like this: [TestMethod] [ExpectedException(typeof(CriticalException))] public void…
38
votes
3 answers

Django: Display current locale in a template

I need to embed the current locale in a Django template's output (as part of a URL to be precise). I know that I can access the current language as {{ LANGUAGE_CODE }} if I { load i18n } but is there a similar way to access the current locale? I…
urig
  • 16,016
  • 26
  • 115
  • 184
38
votes
5 answers

How to load all dart DateFormat locale in flutter?

In Flutter app, intl package load only 15 languages. However Dart DateFormat support many more. I do not need translation, but need correct DateFormat. How to load all DateFormat locale?
Kyaw Tun
  • 12,447
  • 10
  • 56
  • 83