internationalization

How do I change a language of a particular page in Django website

Django internationalization allows me to set a language code either in settings file (site-wide) or on per-user / per-session basis. How can I change language for a particular page? I wrote a middleware that sets request.LANGUAGE_CODE the way I want it to be translated, but nothing seems to use this attribute to do the selected transla...

Per-thread locale in linux

Is it possible to specify per-thread in Linux? ...

Gettext without process locale

I want to use gettext for i18n. But I need to translate messeges to a different languages. Is it possible to specify a locale for a one gettext call? ...

How does font fallback work on a non-Windows OS?

I have been reading a lot of documentation on how to create an internationalised ASP.NET application, using C# 3.5. They all seem to give the general impression that font fallback and font linking will make font choice a non-issue. However, the documentation I have seems to imply that it will be fine on Windows, but doesn't mention othe...

How to insert latin characters into Mysql from the command line shell ?

Why can't I insert the word Español via the command line mysql program ? See session below. mysql> select CONCAT( 'Espa', 0xF1, 'ol' ); +------------------------------+ | CONCAT( 'Espa', 0xF1, 'ol' ) | +------------------------------+ | Español | +------------------------------+ 1 row in set (0.00 sec) mysql> crea...

How can I internationalize a GWT UIBinder page with Messages?

Hi, I am trying to internationalize a UIBinder application with property files. Since we have already a lot of translations exposed by the com.google.gwt.i18n.client.Messages interface (GWT 1.7.1), we would like to reuse these messages. I have tried the following: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"&g...

Date/Time and Internationalization for Enterprise Application -- Development Guidelines

Together with another developer, I have embarked on a journey to create a hosted 'CRM Style' application that will cater to enterprise level businesses. These businesses will be accessing our application remotely and so the hosted nature of the application will require certain features. For example, to guarantee a level of professional...

multilingual application, which font sets to embed in flash?

Hi Building a multilingual application that should work with the most prevalent global alphabets but confused as to which font sets I should embed. For instance for Chinese there is Traditional Level 1, Simplified,Traditional (all). and Chinese (all). For Japanese there is Kani, Kanji, and All. ...

Fall back to default language if translation missing

Hello, in an internationalised Rails (2.3.5) app, I'd like to show a translation from the default locale instead of "translation missing" - there's a ticket for it but it seems it's still pending: https://rails.lighthouseapp.com/projects/8994/tickets/2637-patch-i18n-look-up-a-translation-with-the-default-locale-when-its-missed-with-ano...

how are non-english programming/scripting languages developed ?

how are non-english programming/scripting languages developed ? do you need to be a computer scientist ? ...

Room for improvements? OOP design / code modularity

Hi How could I improve the following organizational structure of my internationalization code? This is just a PoC, I'm using the php intl extension for translation in Intl::t(): index.php 1 <?php 2 //FILE translate.php, your "index.php" 3 $messages = include 'messages.php'; 4 require_once 'intl.php'; 5 Intl::setSource($messa...

Translate a Field's Label in a Drupal Content Type

I'm trying out i18n with my Drupal 6 content types and the field values get translated ok, but not the field labels. Is there a way to translate this? ...

i18n menu block only apprears in a specific language

I'm trying out Drupal i18n and I have a menu that I'd like to have different items in different languages in. Although I create this menu and assign it to be displayed in the left inside a block, it only appears on a specific language (Spanish). When I select language -> English the menu disappears. Am I doing something wrong? ...

.NET: Are there any differences between InvariantCulture and en-US?

Given the following two cultures: CultureInfo c1 = InvariantCulture; CultureInfo c2 = new CultureInfo("en-US"); and i were to examine every piece of information specific to both cultures, e.g.: c1.DateTimeInfo.ShortDatePattern; c2.DateTimeInfo.ShortDatePattern; c1.DateTimeInfo.LongDatePattern; c2.DateTimeInfo.LongDatePattern; c1.Nu...

Is internationalizing later really more expensive?

Most people would agree that internationalizing an existing app is more expensive than developing an internationalized app from scratch. Is that really true? Or when you write an internationalized app from scratch the cost of doing I18N is just being amortized over multiple small assignments and nobody feels on his shoulders the whole w...

PHPTAL i18n Call to a member function on a non-object Error

I'm using PHPTAL in my project I'm able to successfully implement it almost all the cases except when I want to use its i18n services. I constantly get errors "Call to a member function on a non-object" I've tried searching the net forums etc. but not found any solution, will really appreciate if somebody can help me out. ...

set language within a django view

Hi, background: The view is called when a payment service pings back a payment outcome behind the scenes - afterwhich I need to send an email in the right language to confirm payment and so on. I can get the language code back in the request from the payment server and would like to use that along with Django's i18n systems to determine...

(How) Can I use string substitution for working w/ Django’s i18n {% trans %} tag?

I'm looking for something like this: {% trans "There are %{flowers}n flowers in the vase" < flowers:3 %} Now obviously syntax is fake, but it should be sufficient to demonstrate what I'm looking for. Should I cook something of my own? It looks like a common usecase, so I was quite surprised that quick web search didn't return anythi...

Pylons application Internationalization

What the best way to make pylons application internationalist? ...

Rails I8n: Use default locale when the requested locale (from HTTP header) is not available?

Hi: In my Rails ApplicationController I have added the following methods (from rails guide docs) to support I8n based on http accept language header info. Is there a way to check if the requested locale is available and if not, use the 'english' default locale as marked in environment.rb? Otherwise I get "translation missing" when an unk...