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

Notification

Icon
Error

Options
Go to last post Go to first unread
BrokenSymmetry  
#1 Posted : Monday, June 4, 2007 1:48:48 AM(UTC)
BrokenSymmetry

Rank: Member

Groups: Guest
Joined: 7/26/2005(UTC)
Posts: 6

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?

Sergey Peshekhonov  
#2 Posted : Tuesday, June 5, 2007 7:09:42 PM(UTC)
Sergey Peshekhonov

Rank: Advanced Member

Groups: Guest
Joined: 6/5/2007(UTC)
Posts: 57

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.

Code:
<%@ 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.

Code:
<%@ 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.

Edited by user Tuesday, December 18, 2007 3:25:40 AM(UTC)  | Reason: Not specified

Sincerely yours,

Sergey Peshekhonov.

Aurigma Technical Support Team.

BrokenSymmetry  
#3 Posted : Tuesday, June 5, 2007 11:45:14 PM(UTC)
BrokenSymmetry

Rank: Member

Groups: Guest
Joined: 7/26/2005(UTC)
Posts: 6

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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.