internationalization

struts 2 : use multiple message resources on jsp

I need to use multiple resource files on my jsp to show localised messages. Whats the way to include it in struts 2. I have seen <s:i18n name="">, but this will make the code pretty messy as it need to be written and closed for each of the labels. I beleive there is message- resource tag in struts 1x which we can declare in struts conf...

Should I check in *.mo files?

Should I check in *.mo translation files into my version control system? This is a general question. But in particular I'm working on Django projects with git repositories. ...

Installshield doesn't display the correct language

I am using InstallShield 2008 Premier Edition and I have created a multilanguage setup. When i install the setup in language other than English (e.g. in French) it clearly shows all labels and messages correctly. The problem starts when I run the generated setup.exe file again. It should show the Modify/Repair page in the language that ...

C++ clean i18n library

I would like to have an easy to use way to write code like: #include <iostream> int main (){ std::cout << "hello, world!\n"; } but that supports i18n. Here is an example using gettext(): #include <libintl.h> #include <iostream> int main (){ std::cout << gettext("hello, world!\n"); } This can then be processed by xgettext to...

Valid resource keys in ASP.NET .resx resource files

I am using a CMS tool to generate .resx resource files. Is there any danger in creating resource names with spaces or punctuation characters in them? If I use this syntax to get resources, it works fine: GetGlobalResourceObject("myresources", "audio,visual"); However, this causes an error with declarative resource syntax, e.g.: <as...

C# I18N - Is it possible to include language resource files without creating a dll?

Hi All, I'm working on converting some exiting code to take advantage of the Internationalisation tools in VS.Net 2005. I've been asked to do this without creating any additional dlls if at all possible. I've tried a few different things and searched around, but I'm not sure if this can be done, so I thought I'd ask you guys. Any ideas...

Why isn't everything we do in Unicode?

Given that Unicode has been around for 18 years, why are there still apps that don't have Unicode support? Even my experiences with some operating systems and Unicode have been painful to say the least. As Joel Spolsky pointed out in 2003, it's not that hard. So what's the deal? Why can't we get it together? ...

I18n error messages in .NET

I have a .NET application that talks to the AD in order to all the user to change the password of the AD account. It is a web application used internationally and I can't assume that the user speaks English. So I need to translate error messages like "Password does not meet the password policy requirements" into whatever culture the use...

i18n - Internationalization Password Complexity Rules

I'm currently working on the internationalization of a product and an issue has come up. The issue revolves around password complexity requirements for countries with non-Latin languages and complex character sets. The application uses aspnet membership for user and password management, although this might be a whole other issue. Curre...

If I want to deploy my software internationally, what architectural considerations should I take into account?

I'm planning on developing software for the international market. What architecture decisions should I consider other than just converting the text from one language to other? ...

When to use CultureInfo.GetCultureInfo(String) or CultureInfo.CreateSpecificCulture(String)

When should I call CultureInfo.CreateSpecificCulture(String) rather then CultureInfo.GetCultureInfo(String). The MSDN documentation is not very clear. Also is there a way to cheaper check if the name of a culture is valid? I think if you pass “en” rather then “en-GB” to CultureInfo.CreateSpecificCulture(String) you will get an error...

How do you set the language in Rails?

Hi, I am trying to use i18n in rails. I want the language to be set first from params[:locale] (probably already in the url) then from the browser http header and lastly from the default_locale. Everything is fine. Now the problem starts, when I want to add a dropdown list to allow the user to change the locale. How do I force the page t...

Internationalization of python/django program: how to implement placeholder in .po file?

E.g. in my django source I have: {% blocktrans %}You are a member since {{sincewhen}}{% endblocktrans %} What should go into the .po file? (django docs don't explain this part as far as I could find) Is .po format for placeholders universal for use in programs written in different programming languages? edit: I've tried commands dj...

Complete C++ i18n gettext() "hello world" example.

I am looking for a complete i18n gettext() hello world example. I have started a script based upon A tutorial on Native Language Support using GNU gettext by G. Mohanty. I am using Linux and G++. Code: cat >hellogt.cxx <<EOF // hellogt.cxx #include <libintl.h> #include <locale.h> #include <iostream> #include <cstdlib> int main (){ ...

Table query in iPhone app

Hello, I have a tableview (linked to a database) and a search bar. When I type something in the search bar, I do a quick search in the database and display the results as I type. The query looks like this: SELECT * FROM MyTable WHERE name LIKE '%NAME%' Everything works fine as long as I use only ASCII characters. What I want is to t...

Extracting localization strings from Settings.bundle plists

If you are building child panes in your Settings.bundle, you'll end up with several .plist files. When it comes time to localize your project, you find the creation of the corresponding .strings file a bit tedious (I know I do). Here's a handy list bash script which will (i) find tags, (ii) extract the contents of the following tag, ...

Open source e-commerce customs information API?

International e-commerce is very difficult because each country has a web of customs/tariffs laws and procedures - there is no central repo of up-to-date data? (or is there I just don't know about) anyone interested in setting up an open-source API, that could give stores the ability to plugin and give customers the info they need, ba...

Is there a semi-automated way to perform string extraction for i18n?

We have a Java project which contains a large number of English-language strings for user prompts, error messages and so forth. We want to extract all the translatable strings into a properties file so that they can be translated later. For example, we would want to replace: Foo.java String msg = "Hello, " + name + "! Today is " + day...

Finding the client's timezone and culture via web service.

I have a .NET web service. It serves AJAX requests from web users. I would simply like to know how to automatically get the user's timezone... Not current time offset, but the actual timezone - like, Central Standard Time is -5:00 right now, but Eastern Standard Time will be -5:00 once daylight savings is over. I want to differentia...

Will HTML 5 specify a way to get the client's location and culture info?

I have this web service... It serves up HTML in response to an AJAX request, and the web service needs to be aware of: the user's specific language the user's timezone or location I understand that this is currently quite infeasible. BUT... It seems that HTML 5 will have a Geolocation API! Awesome. This should take care of my timez...