Forums

Welcome Guest Search | Active Topics | Members

How to set the localization language of the PhotoEditor Options
BrokenSymmetry
Posted: Monday, June 04, 2007 9:48:48 AM
Rank: Member
Groups: Member

Joined: 7/26/2005
Posts: 6
Points: 0
Location: Breda, Netherlands
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
Posted: Wednesday, June 06, 2007 3:09:42 AM
Rank: Advanced Member
Groups: Member

Joined: 6/6/2007
Posts: 53
Points: 33
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.

Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
BrokenSymmetry
Posted: Wednesday, June 06, 2007 7:45:14 AM
Rank: Member
Groups: Member

Joined: 7/26/2005
Posts: 6
Points: 0
Location: Breda, Netherlands
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.