internationalization

Set a locale in javascript

Jquery test the validity of a date via: !/Invalid|NaN/.test(new Date(value)) new Date(dateString) is the same as Date.parse(dateString) and uses browser/os locale to parse the string. im trying to parse DD/MM/YYYY but i get an error because my browser is looking for MM/DD/YYYY. Since my product will be used only by DD/MM people, i wa...

I18n of Zend_Form values and errors

Hello, assume this situation $form->addElement('select', 'companies', array( 'disableTranslator' => true, 'label' => Zend_Registry::get('Zend_Translate')->_('companies'), 'filters' => array('Int'), 'required' => true, 'multiOptions' => array(1 => 'Company 1', 2 => 'Company 2') )); if($_POST...

How can I access django admin's transliterator for slugs when using fixtures?

In the admin, if you enter in a slug two things are applied through JS: The string is made slug-friendly The string is transliterated if the language is not English, so for example Cyrillic Russian text gets converted into Transliterated Russian ( typed out in English ) I'm basically inserting a couple thousand rows and I need to acc...

Displaying locale percentage number with Zend Framework

Does anyone know how to display a percentage format based on the locale using the zend framework? I've tried this below and it doesn't work for some reason: $xx = Zend_Locale::getTranslation(null, 'PercentNumber'); // This outputs: "#,##0%" for locale 'en_us' $percentage = Zend_Locale_Format::getNumber(133.3678, array('number_format' =...

What are the best-practices that should be followed for .NET web applications w.rt i18n?

Looking for specific inputs for best practices that should be followed for web applications in .NET? How to handle JS strings? Do hard-coding style really make the difference? UI things to keep in mind. Any best practices for c#/VB.NET etc? ...

How to disable Postgresql messages translation

Hello, Is there a way to disable the Postgresql translation of messages? I´m running my appl and Postgresql on a pt_BR Windows machine and when a exception is thrown the error message is translated to Portuguese, like: Caused by: org.postgresql.util.PSQLException: ERRO: relação "unidade_federacao" não existe Posição: 25 I woul...

Strange behavior: Java escape euro sign

With the following code: System.out.println("\"1. \u20ac\""); System.out.println("\"2. Euro sign \u20ac\""); System.out.println("\"3. Eurovalue +1,25\u20ac\""); I get following results: "1. €" "2. Euro sign €" "3. Eurovalue +1,25?€" Why is there a question mark '?' on row 3. just before the euro (€) sign? ...

find untranslated locales in rails.

Hi, I'm using rails 2.3.5 with i18n. I's there a way to find all not yet translated locales in all views? Maybe a after_filter in the application controller, but which code I can use for this job? thanks ...

What is the current modern term for "Multi-byte Character Set"

I used to be confusing quite a while : http://stackoverflow.com/questions/2384160/confusion-on-unicode-and-multibyte-articles After reading up the comments by all contributors, plus : Looking at an old article (Year 2001) : http://www.hastingsresearch.com/net/04-unicode-limitations.shtml, which talk about unicode : being a 16-bit ...

How to use lazy_gettext with Pylons and setup.py

Hello. Just a quick question. When I use the _() function provided by the Pylons i18n module, everything works just as expected. My problem is with the lazy version of this function, lazy_gettext. When I run : python setup.py extract_messages I get in the POT file the strings to be translated with the _() function, but not those wuth...

How to load jqueryui from google CDN with locale different than english?

I would like load a different than English language locale for jqueryui, while loading jqueryui form Google AJAX Libraries API CDN? Is there a way to pass I18n parameter into load function? google.load("jqueryui", "1.7.2") I have also tried as per jQueryUI documentation on date picker internationalization to pass: $(selector).datepi...

Converting UTF8 text for use in a URL

I'm developing an international site which uses UTF8 to display non english characters. I'm also using friendly URLS which contain the item name. Obviously I can't use the non english characters in the URL. Is there some sort of common practice for this conversion? I'm not sure which english characters i should be replacing them with. S...

rails-I18n- when changing the locale, partials aren't translated

hello, I am changing the locale in the app controller before_filter :set_locale def set_locale I18n.locale = params[:hl] || I18n.default_locale end for a Page that contains rendered partials and has a layout which yields the menu items. The static text from the Page is translated to the new locale, however the static text from t...

how to internatianalize the ruby on rails site

We have the rails app, content served from the database. Now we need to translate that to multiple languages. What is the best way to the internalization of the ruby on rails application? ...

SQL Server Reporting Services - localize reports?

I have some SSRS 2008 reports that need to be localized. That is: Report titles, column headers, etc. all need to be in the user's locale. (Note that in my situation, the User!Language expression may or may not be useful, but that's not the major problem.) The localized strings must be retrievable from a table within the same DB as the...

Win32: GetDateFormat and GetTimeFormat exist. GetDateTimeFormat?

i know Win32 has the Nls function GetDateFormat, e.g.: GetDateFormat(…, …, …, "dddd','MM','y", …, …); and it has GetTimeFormat, e.g.: GetTimeFormat(…, …, …, "tt ss':'hh':'mm", …, …); But there a way to format both at once, e.g.: GetDateTimeFormat(…, …, …, "tt dddd' - 'ss':'y';'hh':'mm MM", …, …); Note: The format string is inten...

I18N: Does Time always come after Date?

Does the time always come after the date, with a space in between, in every culture on earth? i see that Microsoft FCL assumes that it does: public string get_FullDateTimePattern() { if (this.fullDateTimePattern == null) { this.fullDateTimePattern = this.LongDatePattern + " " + this.LongTimePattern; } return thi...

Does Java have an equivalent to .NET resource (.resx) files for localization?

Does Java have an equivalent to .NET resource (.resx) files for localization? In .NET, you can define resources as key-value pairs within a standard XML document. The resource files are named according to the culture. For example: myresources.resx myresources.en-us.resx myresources.fr-fr.resx myresources.de-de.resx ...

php framework with sqlite, orm, i18n, l10n search addon

im trying to find a php framework to build small,multilingual sites. do you know a php framework with support for: 1.sqlite (it will be little sites so no performance problem and good for copy-paste from development to production) 2.orm 3.i18n & l10n 4.easy search addon 5.ability to just copy-paste no need to change config for goin...

a question related to URL

Dear all,Now i have this question in my java program,I think it should be classified as URL problem,but not 100% sure.If you think I am wrong,feel free to recategorize this problem,thanks. I would state my problem as simply as possible. I did a search on the famouse Chinese search engine baidu.com for a Chinese key word "奥巴马" (Obama in ...