wolfgangimig / itol

JOA based issue tracker for Microsoft Outlook
23 stars 6 forks source link

Translate #46

Open Sledav opened 8 years ago

Sledav commented 8 years ago

I've translated some label to Russian language in file IssueServiceImpl.js. How I can translate all labels in addin?

wolfgangimig commented 8 years ago

You would have to compile the Add-in. See https://github.com/wolfgangimig/itol/wiki/Developer-Information for a short documentation. In class Globals, function getResourceBundle, you would have to replaces the res_en.properties file with your Russian language properties file.

Sledav commented 8 years ago

Thanks! I translated all labels in AddIn, but not labels are available in the res_en.properties file.

wolfgangimig commented 8 years ago

Could you explain this in some more words, please give an example.

Sledav commented 8 years ago

For example, \itol-addin\src\com\wilutions\itol\AttachmentTableViewHandler.java rows 68: TableColumn<Attachment, String> fileNameColumn = new TableColumn<>("Name"); in Russian TableColumn<Attachment, String> fileNameColumn = new TableColumn<>("Имя файла");

and 102 TableColumn<Attachment, Long> contentLengthColumn = new TableColumn<>("Size"); Russian TableColumn<Attachment, Long> contentLengthColumn = new TableColumn<>("Размер");

wolfgangimig commented 8 years ago

Obviously, I was a little careless at some UI definitions. You will have to replace the literals with e.g.:

TableColumn fileNameColumn = new TableColumn<>(resb.getString("tabAttachments.nameColumn"));

Then add a line to the resource file:

tabAttachments.nameColumn=Имя файла

Regards

Sledav commented 8 years ago

Thanks. Now I translated all labels in AddIn. I found a small errors in https://github.com/wolfgangimig/itol/blob/master/itol-addin/src/com/wilutions/itol/DlgConfigure.java#L98

Please replace DlgConnect.LogLevel.Info with DlgConfigure.LogLevel.Info