Edit labels in logon.html

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Edit labels in logon.html

Post by Sergej »

Hi
When I try to edit label of logon form in logon.html
and
change fieldLabel: 'User name' to fieldLabel: 'Text in cyrillic(russian)'
it is not displaying correct-mess abracadabra
logon.html shows utf-8 encoding.

Do I have to change something else?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

This is not an Aware IM question - logon.html is just an HTML file that is run outside of Aware IM. My guess is that you need to modify the file to specify the UTF-8 encoding explicitly. Check HTML reference how to do this
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Thanks! I just added
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
and now it works.
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

But how to change encoding of logonOp.aw ?
When you type wrong login-password you are redirected to logonOp.aw

and there labels displayed as question marks.
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

I changed in logonOp.jsp
to UTF-8
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
It doesnt work.

And second question how/where to translate "Logon error" message
Invalid credentials or access denied. Please try again.
and "logon validation" message
This field is required.
I have
This field is required.
translated in locale but it doesnt work in logon,

It is all for testing_mode=false
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Could you tell me how to change encoding of logonOp.aw ?

Cyrillic captions on logon.html are displayed correct but If you type wrong login-password you are redirected to logonOp.aw and there captions displayed as question marks.
AwareIM 5.1a build 1454, Debian 64bit , MySQL
aware_admin
Site Admin
Posts: 65
Joined: Sun Jan 02, 2005 4:36 am
Contact:

Post by aware_admin »

"This field is required can be translated directly in the EXT library - seach all js files in the Aware IM folder and you will find it.

There is no encoding for logonOp.aw - it is not an HTML page and in case of an error it still redirects to logon.html eventually. So if your logon page works this should work as well.
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

in case of an error it redirects to logonOp.aw not to logon.html.
Does it mean something wrong in code of my logon.html ?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Yes, most probably. Like I said, logonOp.aw is not a separate page - it is the same html page.
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Hi!
I downloaded the last evaluation version. Installed it with derby on windows.
Then I
1. Opened logon.html file from C:\AwareIM\Tomcat\webapps\AwareIM
in notepad.
2. 64 line I changed to title:'пожалуйста',
containing Cyrillic letters.
3. I opened from browser http://localhost:8080/AwareIM/logon.html
Result - title is displayed as пожалуйста.
4. I entered wrong login/password
Result - I was redirected to http://localhost:8080/AwareIM/logonOp.aw
And now title is displayed ??????????.

How to fix it?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

When you save it in Notepad it most probably changes encoding. Encoding MUST BE UTF-8
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

I have tried to save in different encodings (UTF-8 without\with BOM, Win1251) by different notepads. In each of the case result as above but the only encodings that worked finally are: Win1250 and Win1252 (East-west european).

Why doesnt in work in utf-8?

I am also having problems with Cyrillic filenames of attachment files that are sent in email via awareim. Could this 2 issues have the same root cause?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

If it helps someone I managed to do that in EmEditor.
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

But after all, now cyrilic tooltips in logon form are displayed as abracadabra. So better would be to make it work in utf8.
AwareIM 5.1a build 1454, Debian 64bit , MySQL
mrbdrm
Posts: 349
Joined: Tue Oct 16, 2012 11:44 am

Re: Edit labels in logon.html

Post by mrbdrm »

i can confirm this.
The login page are not encoded properly after typing wrong credentials
this is a show stopper and need to be prioritize.
Post Reply