localization

what is the OSGi bundle package structure?

i am new to OSGi standard. i want to know more about the structure of bundle package file. find there is this OSGi-INF folder, the specification mentioned about l10n and permission, i wonder where defined the use of OSGI-INF folder? can i put other stuff into it? where to store the jar files referenced by the bundle? besides OSGi-INF a...

Have a Form opened multiple times with different Localizations in Visual Studio

Hello, I'm developing a localizable product and Forms have the Localizable property set to True but it is difficult to me to work at the different versions of the Forms if I have to switch from on Language to another one. Is there a way to have the form opened twice (or more) with different localizations? (as they are really different f...

Use Localization for DataGrid datafields

Hi there I have implemented my own ResourceManager for localizing my application by using <mx:Label text="{resourceManager.getString('myResources','Spot')}" /> instead of <mx:Label text="Spot" /> Now I want to be able to use this in dataFields in a data grid which use a xml file as datasource <mx:DataGrid width="100%" height="10...

Font linking in the registry

A few years back, I created a WinForms application that has been successfully deployed. The next version of the application must support Chinese and Korean characters. For aesthetic reasons, my client wanted all the text in the application displayed with the Arial font family. However, Arial doesn't support Chinese and Korean character...

Source code not English; which (natural) language to display to the user?

I'm creating an English translation for a program written in German (i.e. all strings within tr("...") are German). Users who are in a non-English non-German locale will probably want to see the English translation, but with the program as it is now they will see German. There are some ways to solve this problem: Check if it's a Germa...

How to change the content of "This field is required" in Jquery form validation plugin?

How can I change the general message of "This field is required" in Jquery form validation plugin to "このフィールドは必須です"? The color of the message can be changed by using the following code: <style type="text/css"> label.error {color: red;} </style> But how to change the content? I want to change all "This filed is required" messages. I...

How to set the browser locale for Selenium tests running in Java?

I've been looking for a while and still haven't found anything. When I run my Selenium tests from within Eclipse, it opens up a Firefox browser which always has English as its default locale. Changing default browser settings doesn't change the fact that each new browser opened by Selenium has an English locale. I haven't found any way ...

NumberValidator conflicts with resourcemanager

Hi, I have written the following test <?xml version="1.0" encoding="utf-8"?> <mx:Application creationComplete="{init()}" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html"> <mx:NumberValidator source="{testInput}" property="text" minValue="0" domain="real" tri...

How to add satellite assemblies to a project in Visual Studio.

Hello, I'm working in a project which references assemblies from a third company. These assemblies have satellite assemblies that I'm copying with a post-build event to the bin folder. Is There a way to include those third party satellite assemblies into the project so I have not to care with the post-build events and maintaining the f...

Get value of component from custom ASP.Net localisation resource provider

Hi. We are using a custom localisation resource provider to get localisation resource values for ASP.Net components. Look here: http://msdn.microsoft.com/en-us/library/system.web.compilation.iresourceprovider.aspx If I have a label like: <asp:Label ID="LabelHello" runat="server" Text="Hello you" meta:resourcekey="LabelHelloResource1">...

Where to place NeutralResourcesLanguageAttribute for an ASP.NET MVC app?

Simple question: Where should I place [assembly: NeutralResourcesLanguageAttribute("en-US" , UltimateResourceFallbackLocation.Satellite)] for an ASP.NET MVC application? On the HttpApplication class in Global.asax.cs? ...

DataAnnotation with custom ResourceProvider

Hi, I have created a custom ResourceProvider to pull localization information from a database. I now want to use DataAnnotation to add validation to the model. DataAnnotation has ErrorMessageResourceType and ErrorMessageResourceName properties but ErrorMessageResourceType only accepts System.Type (ie a compiled resource file) Is there...

How to use compiled global resources in ASP.Net MVC

I want to compile *App_GlobalResources/Strings.resx* into my assembly (and eventually use satellite assemblies for Strings.es.resx, Strings.fr.resx, etc.) but the following error occurs once the app is published: "Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specifi...

How do I combine all my localization satellite assembies into the EXE?

I've started adding multiple languages to my project using resx files (eg. MyText.resx, MyText.ru-RU.resx, etc.). When I compile, I end up with files like this: MyApp.exe ru-RU\MyApp.resources.dll es-ES\MyApp.resources.dll Is there any easy way I can have everything compiled into the EXE? It's just a small utility which I distribute i...

If HTML maxlength is 110, why can I input 114 characters?

<input type="text" id="title" name="title" size="50" maxlength="110" /> You see, the maxlength is 110, but I was shocked when I found that I input 114 characters when I used echo strlen($title); Any idea? By the way, what I input was Japanese text. What's wrong? ...

Japanese text is unrecognizable in phpMyAdmin?

I am phpMyAdmin, why is Japanese text in tables unrecognizable? However, I can output the Japanese text from the tables and it can be displayed correctly. Any idea? How to fix phpMyAdmin? ...

(J)Ruby full locales/localisation/cultureInfo support

Hi, Does (J)Ruby support such things like Calendar in Java or CultureInfo in .NET? I want to be able to write code in Ruby similar to this: locale = Locale.new("en-GB") date1 = "30/12/2000".to_date(locale) locale = Locale.new("en-US") date2 = "12/30/2000".to_date(locale) Locale.current = "ru-RU" date2 = "30.12.2000".to_date # uses t...

Why does CurrentUICulture.DisplayName say "English (United States)" and not "English (United Kingdom)"?

I'm in the UK, and I have a UK-bought version of Windows 7, with all settings I can possibly find set to UK (not US). When I run the following code: Console.WriteLine(Thread.CurrentThread.CurrentUICulture.DisplayName); Console.WriteLine(Thread.CurrentThread.CurrentCulture.DisplayName); The output is: English (United States) English ...

Changing the UI language dynamically

I have a multi-language silverlight application where the resources are stored in resx files for different languages and bound to the buttons' and labels' Content Properties inside the xaml. When setting the thread's UI culture in the constructor of the silverlight's page every thing works fine, but when changing it based on user's sele...

i18n/gettext : setlocale configuration in web applications

So I started messing around with gettext but I'm still puzzled about certain things, would be great if anyone could help me out and fill in the gaps for me. Usually most of the implementations just invoke setlocale based on a language parameter. Is there any case in which I need to use putenv, perhaps for edge cases on Windows setups? ...