localization

How to do localizable javascript?

I have a web application that uses TONS of javascript, and as usual, there are a lot of textual constants that will be displayed to the user embedded in the code itself. What do you think is the best way to make this localizable? I know I need to take those strings off of the code and replace them with constants, which will be defined i...

Poedit regex based parser?

In our JS files we use the following format for Gettext translation: var str1 = '!t[The text that should be translated]'; var str2 = '!t[Some more text]'; This JS files will be parsed using PHP and the parsed strings get translated via Zend Framework Zend_Translate. The generated JS looks like this: var str1 = 'The text that should...

Upgrade Issue in Installshield 2008 Premier Edition

Hi friends, Coming straight to the point i am facing problem while upgrading an Higher version over Lower version. i have implemented multilingual support; Assume that older version being installed in French while doing upgrade it is coming in English which is my Operating System language; in fact it should show in French. please help ...

Should exception messages that are targeted to the developer be localized?

I am referring to exception messages that show the developer is incorrectly using an API. For example incorrectly passing a null to method. So the type of exception that the developer will get the first time they have run their incorrect code. The type of exception message that should never get to be displayed to the user of a system. ...

MessageBox buttons - set language?

When you use MessageBox.Show() you have a selection of MessageBoxButtons to choose from. The buttons available are an enum, and give you options like "Yes No", "OK Cancel" etc. When I am using f.instance Norwegian messagetext the user still gets english "Yes No". Is there a way to change the text of the buttons (in C#) so that the lang...

iPhone en_* sublanguage localization

I want to localize strings in my iphone app for en_GB and other 'en' sub-languages, but XCode and the iphone refuse to let this happen. I have created a localization of "Localizable.strings" for en_GB and en_US (I tried both hyphens and underscores) for testing purposes, but they just aren't recognized. The only language code that works ...

asp.net localization: reporting on missing translations

Is is possible to hook into the localization engine somehow to produce a log of missing translations? We have a localized web app, but not all the keys have translations. In the case of a missing translation, the default (english, in this case) will show up for the user. It would be nice to be able to log these "failures". ...

How do I determine the country an iPhone was purchased in?

Does anyone know how to do this? I want to have different behavior if my iPhone is from the USA to the behaviour of UK models (namely, listing prices in $ rather than £), and don't want to force the user to use their current location, as this requires the user to have a network connection or GPS active. UIDevice doesn't seem to have an...

What's a good alternative to GNU gettext for projects incompatible with the copyleft license?

What are the alternatives to gettext for software internationalization on projects not released under the GNU GPL? ...

ASP Themes: Skin Localization

Hi, Is any way to localize text in .skin file (asp.net theme)? Thanks ...

localization in text validation

I recently realized that some countries display floating point numbers with different comma/period notation. ie. we would have 12,500.34, and some countries would list it as 12.500,34 This may not be a problem with display, but what about text input? For example, I imagine that if I had a decimal type and displayed it in a label, that...

ASP.NET Localization Issue

I have succesfully added localization to my website. Came next day and it does not work. After reading alot of posts and did some troubleshooting my self. I found out that the Page ignores the page.aspx.en-US.resx. Because I dont have a standard resx for the page it shows the label caption i have in the designer. I just took out the en-U...

Localisation of Javascript Calendar

Does the calendar get the month names from the users computer, or is this predefined in the control itself? I.e. for the same piece of code, would it say "June" when viewing it on an English PC and the German equivalent when viewing it on a German PC? I am not too familiar with this I must admit. I guess CalendarPopup(); is used? ...

Twitter: Local messages via API

Hello! A few days ago, I saw that happn.in now offers a service where tweets (messages on twitter.com) are grouped and analyzed for local areas. For several cities, they give you a list of trending terms. I know that you cannot exactly know how they do this but maybe you can help me, though: How can I do this, too? I have several appro...

Changing the language for NSLocalizedString() in run time

I have an iPhone application which has a button to change display language in run time. I have looked at NSLocalizedString() which will return the appropriate strings according to system preference. What are my options rather than hard coding all the display strings and return according to user language selection in run time? Any pointer...

C#: Resource file refactoring

Does anyone know of a good tool for refactoring resources in a visual studio 2008 solution? We have a number of resource files with translated text in an assembly used for localizing our application. But they have gotten a bit messy... I would like to rename some of the keys, and move some of them into other resource files. And I would ...

What is the correct way to set Python's locale?

I'm attempting to sort a list of strings in a locale-aware manner. I've used the Babel library for other i18n-related tasks, but it doesn't support sorting. Python's locale module provides a strcoll function, but requires the locale of the process to be set to the one I want to work with. Kind of a pain, but I can live with it. The p...

How to translate .NET Exceptions on WCF Services to English?

I am running Windows XP pt-BR (Portuguese - Brazil), a WCF service on a Windows Service container with HTTP Binding. I also wrote a test WCF client. And since I made a small modification on the service I am getting a MessageSecurityException. "An unsecured or incorrectly secured fault was received from the other party. See the inner Fau...

Should we store format strings in resources?

For the project that I'm currently on, I have to deliver specially formatted strings to a 3rd party service for processing. And so I'm building up the strings like so: string someString = string.Format("{0}{1}{2}: Some message. Some percentage: {3}%", token1, token2, token3, number); Rather then hardcode the string, I was thinking of ...

Should I use the user's current culture to compare computer names?

I've got a list view and a button. The list view has columns "Server Name", "Operating System" and "Description". The button populates the list view with computer records from Active Directory. The columns are clickable, and sort the list view as relevant. When doing the comparisons, should I be using the user's current culture setting...