Post to Twitter Post to Yahoo Buzz Post to Google Buzz Post to LinkedIn Post to MySpace Post to Technorati

Introduction

Because all the localization projects are different, it is important that the users (Project managers, localization engineers, translators) can customized their environment in order to feel comfortable.

iL10Nz [pronounce 'Alliance'] has the functionality to store a javascript file (.js) for each project and to load the file in order to extend its User Interface.

Customize your projects.

When the project is created by the user, iL10Nz will create different folders in the server to set up the complete environment.
The folder that contains the plugins is __PLUGINS__.
You need to select the folder and Click on Project / Upload a file to import a javascript file into the plugin folder.
The file will then appears in the plugin folder and you just need to double click on the file to execute the javascript file.
There will be a parameter to set to have a plugin executed automatically when the projects in opened.

Write your plugin

iL10Nz objects

You can download the template plugin.js to start your plugin file.
This template contains the different objects that iL10Nz is using to create the User Interface.
In order to use the classes and objects, you can check the URL of YUI as iL10Nz is based on the javascript library.

1.
2./**
3.* @author oLiVieR cHeNeSoN
4.* Copyright(c) 2009 myL10N.net
5.* iL10Nz
6.* Description: Plug in template to enhance the functionalities of iL10Nz.
7.* You will need to upload it by selecting the __PLUGINS__ folder and double click
8.* on the plugin file to load it.
9.
10.* http://www.myl10n.net
11.*
12.* Here are the variables to you will be able to use to override functionalities
13.============================================================================
14.Data Table for the results from the Database server
15.Object Type: YUI Data table, Data source and Paginator
16.myDataTable;
17.myDataSource;
18.myPaginator;
19.
20.============================================================================
21.Data Table for the results from the Database server when you are requesting suggesting
22.from the Translation Memory file
23.
24.mySuggestDataTable;
25.mySuggestDataSource;
26.mySuggestPaginator;
27.
28.============================================================================
29.Object in the UI
30.
31.layout => YUI latyout object to holds the different panel of the application
32.tabView => YUI Tabview object for the center part
33.tabBottomView => YUI Tabview object for the bottom part
34.transTab => YUI tab object created to holds the Translation
35.grid when you open a release file
36.transtoolbar => YUI Toolbar created for the string poanel
37.layoutStringPanel => YUI Layout object created in the
38.bottom panel for the string panel
39.sourceeditor => YUI Editor for the source
40.targeteditor => YUI Editor for the source
41.sourceeditorstate => Value of the state on the target editor (true/false)
42.targeteditorstate => Value of the state on the target editor (true/false)
43.oMenuBar => Menu bar created for the Main Menu at the top
44.Projecttree => Treeview object that is created in the left panel
45.ProjectNode => Treeview node that holds the reference of
46.the parent node in the Left Panel
47.oSelectedNode => TreeView Node that holds the reference to the
48.selected node in the left panel
49.oOpenedProjNode => TreeView Node that holds the reference of
50.the node of the opened project
51.
52.========================================================================
53.Current String variable
54.These are the variable that are set when the user select one
55.string in the tranlsation grid.
56.
57.cur_number;
58.cur_idx;
59.cur_filename;
60.cur_internfileversion;
61.cur_path;
62.cur_sourcelang;
63.cur_targetlang;
64.cur_sourcelanguagecode2ch;
65.cur_targetlanguagecode2ch;
66.cur_sourcelanguagename;
67.cur_targetlanguagename;
68.cur_source;
69.cur_target;
70.cur_sourcecomment;
71.cur_targetcomment;
72.cur_projectname;
73.cur_createdby;
74.cur_creationdatetime;
75.cur_lastupdatedby;
76.cur_lastupdatedatetime;
77.cur_lockedby;
78.cur_projectversion;
79.cur_translated;
80.cur_toproofread;
81.cur_user1;
82.cur_user2;
83.cur_user3;
84.cur_user4;
85.cur_user5;
86.
87.
88.
89.
90.*/
91.
92.

Conclusion

It is very easy to create your own plugin file to use in iL10Nz. More objects will be added to the plugin template so you need to check the latest version to get the most of the tool.

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

myL10N.net | Terms and Conditions
© 2007-2011 - myL10N.net All rights reserved