This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

How to set the localization language of the PhotoEditor

I have seen that the PhotoEditor installation contains several resource files with localized strings. However, in the documentation I did not find a property or method to set the language used by the PhotoEditor. Also, setting the Culture of the current thread in ASP.NET does not seem to have any effect either.

How can the localization language of the PhotoEditor be set?
Hello,

We use ASP.NET 2.0 scheme for localization. By default we support two localization schemes: default (English) and ru (Russian). Localization Culture and UICulture can be set into <%Page %> directive.

You can write something like this into your aspx file:

1.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="PhotoEditorDefault"
	Culture="auto" UICulture="auto" meta:resourcekey="PageResource1" Theme="Standard" %>


In this case Culture and UICulture will be chosen according to Browser localization options. You can set them in IE: Tools->Internet Options -> General -> Languages... Click "Add" in the opened window to add English[en] and Russian[ru] localizations. Set Russian or English to top and refresh page to see another translation). In Firefox: Tools-> Options -> Additional -> Common -> Languages.

2.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="PhotoEditorDefault"
	Culture="ru-ru" UICulture="ru-ru" meta:resourcekey="PageResource1" Theme="Standard" %>

In this case Russian[ru] culture will be used for this page.
OK, thanks. In our web application users can set their language choice independent of their browser settings, but I've seen that setting Page.Culture and Page.UICulture from code works too.