| Version 15 (modified by aramacciotti, 4 years ago) (diff) |
|---|
Localizing Eraser
Requirements
Localizing Eraser v6 require to be able to build its .NET solution. Then requirements are the same of building it.
You can check them on CompilingEraser (Get the necessary dependencies)
What needs to be localized
Source files that require to be localized are:
- Strings.xx.resx: there's one for most projects
- <PageName>.xx.resx: there's one foreach form and custom controls
- ShellExt.rc: there's only one in ShellExt Shell Extension C++ project
xx is the acronym of the target localization language.
How localize Strings
You'll find Strings.xx.resx files in the following projects:
- Eraser
- Eraser.DefaultPlugins
- Eraser.Manager
Localizing these files it's really simple:
- open file in VisualStudio.NET (with simple double clickover the file)
- A form (see picture below) is showed with 3 (three) columns in the following order (column names are provided in english as a reference):
- Name: source language string
- Value: target language string (initially set to "(Untranslated)")
- Comment: a comment string
- change the value in the second column with the translated string
How localize Forms and Custom Controls
Each form has a number of controls that shows text and then that can be localized.
Localization process is basically constituted by:
- Choosing form language property as the target localization language (as in the picture on the right)
- Choose, by a single click, the form object that required to be localized (it can be a Label, by example)
- Select Text property of the object
- Change the value of the property Text
- Repeat from 2 to 4 for each control require licalization
Below follows details for each form actually included in the project.
Project Eraser
BasePanel
On this form it has to be localized only the titleLabel label.
LightGroup
On this form it has to be localized only the label label.
LogForm
On this form it has to be localized:
- Text property of the Form itself (form title)
- filterSessionLabel label Text property
- filterSeverityLabel label Text property
- columns header of the central panel (log listView). To do that you'll have to right-click over it and choose "Edit Columns". You'll see the columns names (logTimestampColumn, logSeverityColumn and logMessageColumn) on the left side of a form and selecting each one you'll be able to change the Text property
- clear button Text property
- close button Text property
MainForm
On this form it has to be localized:
- In ToolBar (right-click over tham menù control), change Text property for these menù items:
- tbSchedule
- tbScheduleDropDown
- tbSettings
- tbHelp
- tbHelpDropDown
- In tbScheduleMenu (right-click over tham menù control), change Text property for these menù items:
- newTaskToolStripMenuItem
- exportTaskListToolStripMenuItem
- importTaskListToolStripMenuItem
- In thHelpMenu (right click over that menù control), change Text property for these menù items:
- checkForUpdatesToolStripMenuItem1
- aboutEraserToolStripMenuItem
- In notificationMenu (right-click over tham menù control), change Text property for these menù items:
- openEraserToolStripMenuItem
- hideWehnMinimizedToolStripMenuItem
- exitToolStripMenuItem
ProgressForm
SchedulerPanel
SettingsPanel
TaskDataSelectionForm
TaskPropertiesForm
UpdateForm
Project Eraser.!DefaultPlugins
CustomMethodEditorForm
CustomMethodPassEditor
SettingsForm
How localize Shell Extension
Attachments
-
Strings.PNG
(17.5 KB) -
added by aramacciotti 4 years ago.
Screen shot of Strings files localization
-
Forms&Controls.PNG
(15.8 KB) -
added by aramacciotti 4 years ago.
Localization of forms
-
ShellExt.PNG
(21.1 KB) -
added by aramacciotti 4 years ago.
Shell Extension localizing
-
csgettext.exe
(17.9 KB) -
added by Joel 12 months ago.
csgettext binary.