The name stands for PO-based Online Translation / Localization Engine in Kannada it is just "ಪುಟಲ್" :-). Today I just finished 98% of translation in Kannada for Pootle, start late but compeleted fast..

It took me a privilege to translate whole of Pootle in Kannada Language, Thanks to Friedel and Aijin, who mentored me to get access, translation and now Kannada Translated Pootle is on its way to be published in new released.Pootle It has a cool features that impressed me like,

1. Greater flexibility for translators and new translators, you dont have to worry about the programming.

2. Cool feature is experiencing the translation of Pootle itself in you langauge on the fly, When you log in, you can override this language by choosing something else than the default. If your browser is configured to request Kannada, Pootle should automatically use that as the interface language for new users (who are not logged in).

3. Has online review, merging facilities etc..

4. Cool quality check on the fly and Translators can do a online testing very quickly.

6. Obvious, QA testing for po files are also listed here.

5. It is an open source free software and any one can use or contribute to it. It just has couple of steps to get the login and people are so resposive that they will help you in getting started.

Personally I felt like, Coool One.. and in couple of hours I became one of the contributor for Pootle, Yeeeh. I perpose you all looking at this blog can just have a glimps of Pootle and dont forget to contribute in your langauge.

Under Pootle Translation Project there are couple of projects running and growing like rocket,Art of Illusion, FileZilla, FileZilla (from French), FreeMind, FreeMind (from French), OpenProj, Pootle 1.2, Pootle 1.1, Speedcrunch, Terminology, TuxGuitar, Tux Paint, Pootle User Manual, VLC, WordPress, wxDownload Fast

 The Pootle project itself is hosted at translate.sourceforge.net where you can find the details about source code, mailing lists etc. This site is running on: Pootle 1.2.0-rc1, Translate Toolkit 1.2.0-rc1, jToolkit 0.7.8, Kid 0.9.3, ElementTree 1.2.6, Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)].

 For Pootle documentation you can visit,

 Thanks Pootle - ಪುಟಲ್...

Comments:

Hi shanker

Hope u remember me after seeing this topic . At present i am also working on Internationalization of our product in Kannada language. From java and database side all most i have covered all the issues . But i got stucked up at Javascript. like when i have retrieved a utf-8 data from database , using javascript we are displaying that value in a text box. So here we are using javascript. So how to do localization in javascript( and date format in local language using javascript). Please help me out.

Thanks & Regards
Laxmi

Posted by Laxmi Madugani on March 02, 2009 at 07:10 PM IST #

Hi Laxmi,
I have posted a new blog, hope it helps for you and comments are welcome,
http://blogs.sun.com/shankar/entry/how_to_handle_utf_8

Posted by Shankar Gowda Mbn on March 03, 2009 at 06:15 PM IST #

Hi Shanker

How r u. My problem is not yet solved. Please help me. Actually This the requirement. i.e I am unable to give the alert message in hindi. I am getting the utf-8 code of that String

<%
String input = "&#2346;&#2346;";
%>
<%=input%>

<html>
<script type="text/javascript">
function showChar(){
alert("<%=input%>");
}
</script>

In alert i am getting as "&#2346;&#2346;". whereas it should be पप .

Posted by Laxmi Madugani on March 04, 2009 at 02:54 PM IST #

And i want your help in getting Date in hindi , kannada .... using javascript.

Posted by Laxmi Madugani on March 04, 2009 at 02:56 PM IST #

Visit : https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString
<code>
"Last visit: " + someDate.toLocaleDateString(); // Good example
</code>

and one more thing is you need to use escaped Unicode in the place of hex code in input field. Look at link: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Unicode,
How to get those character is through http://unicode.org/charts/PDF/U0900.pdf. it should be like \u092a

Posted by Shankar Gowda Mbn on March 04, 2009 at 05:04 PM IST #

Hi

Sorry to disturb u again. But from data base i am getting &#2346; how to convert this to escape unicode using javascript or jsp .
And In case of date in locale format . Javascript takes the locale from OS . So When we are saying toLocaleDateString() it is giving date in english.

Thanks & Regards
Laxmi

Posted by Laxmi Madugani on March 05, 2009 at 11:20 AM IST #

As explain in my blog your data base should have Unicode or escaped Unicode string to showup on you jsp or java script. Best way I suggest is to create a new instance of database with utf-8 as post in the blog and then populate the date required in utf-8 charsets, then it would be meaningful for further implementation for any locale. Could you just post me a sample data in you database and a jsp, so that I can propose a idea to make it work in right way?
Usually while storing the date type in database should have a locale neutral format like DATETIME and then you need to convert this date object to particular date format like "mm/dd/yyyy" with the locale to get the unicode string in javascript.

Posted by Shankar Gowda Mbn on March 05, 2009 at 11:59 AM IST #

Hi

Actually from database side i have not convert db to UTF-8. I have changed from my application side. I have Connection Pool concept in my application there i set connectionProperties="defaultNChar=true" in context.xml of my application. when ever i am inserting data into the database and if it contains any other language then english it is getting stored in &#2346 format. When i am retrieving the data into jsp and displaying it i am getting it in correct format. The problem is i am getting data from database in this format &#2346;.
What should i do now. Is it necessary to make DB to utf-8 format.

Posted by Laxmi Madugani on March 05, 2009 at 12:19 PM IST #

I was solving the same problem.
This is what I did to print "delta" character:

var deltachar = String.fromCharCode(948);
alert(deltachar);

http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.javascript/2008-01/msg01320.html

HTH.

Regards,
Kiran

Posted by kiran on March 05, 2009 at 12:25 PM IST #

Yes, I would recommend you to that database has to be in Unicode to support your hindi charsets. Please see my presentation on this blog to get the right characters while doing getParameter() for requests.

Posted by Shankar Gowda Mbn on March 05, 2009 at 12:37 PM IST #

Hi

Can i get proper solution please. Its very urgent.

How to convert &#2346 to \udddd form

Posted by Laxmi Madugani on March 05, 2009 at 05:08 PM IST #

You can write a util class as <a href="http://www.javadocexamples.com/java_source/com/google/gdata/util/common/base/StringUtil.java.html">example link</a>

Posted by Shankar Gowda Mbn on March 05, 2009 at 06:42 PM IST #

Hi Shanker

I have solved my problem by writting a small javascript function. Earlier it was working when i used hidden variable.

function html_entity_decode(str)
{
var ta=document.createElement("textarea");
ta.innerHTML=str.replace(/</g,"&lt;").replace(/>/g,"&gt;");
return ta.value;
}

var k= html_entity_decode("&#2346;");

document.Bank.cust_name.value=k

this will automatically place the hindi code in text box

Posted by Laxmi Madugani on March 06, 2009 at 04:01 PM IST #

Hi shanker

I got again a problem . When i setting the pageEncoding =UTf-8 then the data is getting stored in database ಿುಮಾರ and when i an retreiving the data the kannada words are not getting displayed in proper format in the browser

Its urgent

Posted by Laxmi Madugani on March 13, 2009 at 01:00 PM IST #

Hi Laxmi,
There are couple of this to take care, not just in jsp files, Does your database encoding is configured for UTF-8 charsets, means that your database instance is created with parameter of choosing UTF-8 charsets ? Next is at the code level, Does you jsp request object and response object is in same encoding ? and the last but not the least have you set you browser encoding to UTF-8 and preferred language to Kannada ? All of these question comes into picture when you do the i18n.. Answer these questions, so that I can help you..

One most common thing we always make mistakes are,
1. Towards Database say MySQL, The column in the database has to have a character set and collation for utf8. I.e.
CHARACTER SET utf8 COLLATE utf8_general_ci

Eg: 1] CREATE TABLE `test` ( `col1` varchar(255) ,) TYPE=InnoDB CHARACTER SET utf8 ( I try also TYPE=MyISAM DEFAULT CHARSET=utf8;)
2] set names 'utf8' using SET CHARACTER SET 'utf8'
3] INSERT INTO test SET col1= CONVERT('<kannada chars>' USING utf8)

2. Towards jdbc connector, jdbc:mysql://host:port/pmt?useUnicode=true&amp;characterEncoding=utf-8 is it working ?
Eg: The character set and encoding need to be set on the database URL in the web.xml.
<url>jdbc:mysql://localhost:3306/DATABASENAME?useUnicode=true&amp;characterEncoding=UTF8</
url>

3. Lastly towards JSP, The request before storing to the database has to be handled as UTF-8. I.e. needs a
request.setCharacterEncoding("UTF-8"); line before any submitted parameters are read. This was the vital missing piece of the jigsaw for common mistake. The response also needs to be handled as UTF-8. I.e. needs a response.setContentType("text/html; charset=UTF-8"); line in all files handling the response. Not totally sure if this is required as one file worked without it.

Eg:
<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>

- Shankar

Posted by Shankar Gowda Mbn on March 16, 2009 at 02:16 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by shankar