If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Indian language Hindi  XML
Forum Index » General Discussion
Author Message
786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Hello everybody,
Is there available, Hindi Language (India) for Advanced Poll 2.09. If yes , where can I get and how to install. Pls respond. Thanks.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Unfortunately no. You can see all available languages at http://svn.proxy2.de/repos/protected/poll/trunk/lang/ and are more than welcome to translate it for it's writer.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Hi,
Can you guide me how to do this translation. I am ready to dedicate my time for doing this. Kindly respond and guide me regarding HINDi font for Advanced Poll script.

This message was edited 1 time. Last update was at 14/10/2016 17:47:46

Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Just have a look at english.php in lang folder and change the bits after the = signs

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Thanks Carbonize,
I will start doing it soon. And let you know after that.

This message was edited 1 time. Last update was at 14/10/2016 22:48:09

786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Hi carbonize,
I have done the translation of the file english.php as guided above.
The 1st code I had edited as $lang["charset"] = "utf-8";
I have renamed the file to hindi.php (check attachment) and copied the file to the lang folder.
I changed the font from Admin>General Settings>
Its working THANKS Carbonize


Is there anything more I need to do regarding this ?




 Filename hindi.php [Disk] Download
 Description
 Filesize 10 Kbytes
 Downloaded:  1 time(s)

This message was edited 4 times. Last update was at 15/10/2016 18:38:23

Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Thanks I will leave it here for others.

You do seem to have some extra lines in yours though that are not in the current version as can be seen at http://svn.proxy2.de/repos/public/guestbook/trunk/lang/english.php

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

I have installed Hindi Language successfully. I can see Hindi language everywhere displayed correctly in Admin Panel.

But when I see the preview of the templates or created polls, its showing some unknown characters. pls refer attachments.

What to do. pls guide .


(Advanced Poll 2.09)
[Thumb - AP font error 1.jpg]
 Filename AP font error 1.jpg [Disk] Download
 Description
 Filesize 211 Kbytes
 Downloaded:  0 time(s)

This message was edited 1 time. Last update was at 17/10/2016 18:41:44

Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

My bad I was thinking we were talking about the guestbook for a while. Guess the charset for the admin pages needs changing as well.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

I tried my best but in vain. Pls can you guide me more specific on this.

Just attaching one more extra snapshot which may help. check attachment.
[Thumb - AP font error 2.jpg]
 Filename AP font error 2.jpg [Disk] Download
 Description
 Filesize 195 Kbytes
 Downloaded:  0 time(s)

This message was edited 1 time. Last update was at 17/10/2016 22:48:00

786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

I got the UTF-8 charset working fine for the entire Advanced Poll by following this procedure :-

Inserted this code :-
<?php
header('Content-Type: text/html; charset=UTF-8');
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_regex_encoding('UTF-8');
?>

in :-
poll_cookie.php
include>config.inc.php
admin>common.inc.php

-------------------------------------------------------------------------------

But now having a problem, when graphic template selected , graph not showing and also CAPTCHA image not displaying.

Pls help ...
[Thumb - Graphic Image Error.jpg]
 Filename Graphic Image Error.jpg [Disk] Download
 Description
 Filesize 230 Kbytes
 Downloaded:  0 time(s)

Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Was it showing before?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Hi Carbonize,
The problem is resolved automatically. I guess maybe because of the browser cookies it was not showing graphs and captcha. NOW EVERY THING IS COMPLETELY FINE. THANKS CARBONIZE for the help on this topic.

This was the procedure to get the INDIAN LANGUAGE HINDI for Advanced Poll 2.09 :-

1. Upload the file hindi.php to lang folder. chk attachment.

2. LogIn to admin>general settings> and change the language to hindi & submit changes.

3. Insert the below code in poll_cookie.php , include>config.inc.php & admin>common.inc.php
<?php
// My php code to set utf-8 charset for the web page
header('Content-Type: text/html; charset=UTF-8');
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_regex_encoding('UTF-8');
// My php code to set utf-8 charset for the web page
?>


4. Clear all web browser cookies, etc. Restart PC . ITS DONE.
 Filename hindi.php [Disk] Download
 Description
 Filesize 10 Kbytes
 Downloaded:  0 time(s)

This message was edited 1 time. Last update was at 19/10/2016 16:27:25

786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Hi,
I am excessively getting the following error in error_log file :-
[28-Oct-2016 01:11:06 Asia/Kolkata] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/solapurp/public_html/index.php:1853) in /home/solapurp/public_html/POLL/include/config.inc.php on line 32

Pls help me get rid of this.

786sujit
Beginner
[Avatar]

Joined: 27/10/2015 19:37:54
Messages: 16
Offline

Kindly ignore the previous procedure I mentioned at post 19/10/2016 16:27:25
which changes the language to Hindi but gives errors.


I am posting this message, in the hope that it may be helpful to a novice web designer like me.


NEW Procedure which is working absolutely fine without any errors:-

1. Upload the file hindi.php to lang folder.

2. LogIn to admin>general settings> and change the language to hindi & submit changes.

3. Insert the below code in between <head> ..... </head> for files
Demo1-5.php
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

AND

admin>templates>admin_preview.html
<meta http-equiv="Content-Type" content="text/html; charset=$lang[charset]">

THATS ALL. ADVANCED POLL is now configured perfectly to hindi language.

Note :- To understand better, where to insert the code, compare other files in the respective folders.
 
Forum Index » General Discussion
Go to:   
Based on the open source JForum