Add localization support into Textencodings kit and fix ticket #8147 (default encoding for new mail)
completed by: Alex11223
mentors: Siarhei Zharski
Your task is:
- Setup Haiku in Virtual Machine (Virtual Box recommended) or on real hardware;
- Download standalone project of Haiku Mail application from the link below;
- Download standalone project of Haiku textencodings kit library from link below;
- Take familiar with the code and problem description;
- Use "make" command to build the Mail application and textencodings library. Resulting executable binary you'll find in 'objects-...' directories,
- The first part of your task is adding localization support into textencodings kit.
- Please read Locale Kit documentation and take familiar with samples of adding localization support into other modules;
- Modify sources of textencodings kit correspondently;
- For testing please build standalone project provided with this task;
- Generate English catkeys using command "make catkeys". The result goes into "locales/en.catkeys";
- Make a copy of the locales/en.catkeys for your local language (de.catkeys - for German, ru. catkeys for Russian etc.) and translate the right block of strings into your language;
- add the 2-characters code of your local language into the LOCALES list in the makefile;
- Use "make catalogs" to create ready to use translation catalogs;
- Test the textencodings module functionality by replacing the system one with your version and checking Encodings pop-up menu in the Mail application;
- The second part is to fixing issue #8147. The problem is that the default encoding for new mails is dependent from the regional settings. The idea is to use the power of Haiku locale kit to let the translator define mentioned encoding as usual translation string. You should modify the source of Mail application to support this scenario.
- Please make a patches fro your changes and upload as result of completion this task;
Links:
- https://dev.haiku-os.org/ticket/8147 - default encoding for new mails issue in Haiku Trac;
- http://siarzhuk.dyndns.org/mail-gci-kit-08.12.2011.tar.bz2 - standalone version of Mail application project;
- http://siarzhuk.dyndns.org/textencodings-gci-kit-10.12.2011.tar.bz2 - standalone version of textencodings module
- http://cgit.haiku-os.org/haiku/tree/src/apps/mail - sources of Haiku version of Mail;
- http://cgit.haiku-os.org/haiku/tree/src/kits/textencodings - sources of Haiku version of textencodings module;
- http://haiku-os.org/legacy-docs/bebook/index.html - BeBook - system API reference;
- http://haiku-os.org/development - information about development for Haiku;
- http://haiku-os.org/development/coding-guidelines - Haiku Coding Guidelines;
- http://api.haiku-os.org/locale_intro.html - Haiku Locale kit reference;
- http://cgit.haiku-os.org/haiku/commit/src/kits/bluetooth?id=6a3bada8dcd6db96a6fad80e79e74286cc8e000a - adding localization support into bluetooth kit;
Good luck!