Language files

As described in previous section, 'lang-file=...' can be used to define external language file, which can override some or all compiled-in language strings. This language file should contain lines which are somewhat like this: 'value-name=value'. Example line 'title-main=HIPL Graphical Config' would change GUI main window title to 'HIPL Graphical Config'.

As said, language files contains lines, which define different variables in GUI. Format of those lines is following:

Example 21.1. Here is a complete english version of a example language file:


# Example language file for HIP configuration GUI.
# Language: English

# Different window titles.
title-main=HIP configuration
title-newhit=New HIT
title-newgroup=Create new group
title-runapp=Execute application
title-locals=Local HIT
title-msgdlg=Question

# System tray menu.
systray-show=Configuration
systray-exec=Execute
systray-exit=Exit
systray-about=About

# Main window menu.
menu-file=File
menu-file-exit=Exit
menu-file-runapp=Execute
	
menu-edit=Edit
menu-edit-locals=Local HITs
menu-edit-newgroup=Create new group
menu-edit-addhit=Add new HIT
	
menu-help=Help
menu-help-about=About

# Toolbar items.
tb-newgroup=New group
tb-newgroup-tooltip=Create new group
tb-newgroup-tooltip+Groups help in ordering and managing HIT's.
tb-runapp=Execute
tb-runapp-tooltip=Execute new application using HIP libraries
tb-newhit=New HIT
tb-newhit-tooltip=Add new HIT
	
# Tabs.
tabs-hits=HITs
tabs-options=Options
tabs-connections=Connections

# New HIT dialog.
nhdlg-button-accept=Accept
nhdlg-button-drop=Drop
nhdlg-err-invalid=Invalid HIT name given!
nhdlg-err-exists=HIT with given name already exists!
nhdlg-err-reserved=Given HIT name is reserved!
nhdlg-err-reserved+Choose another one.
nhdlg-err-invchar=HIT name contains invalid characters!
nhdlg-err-invchar+Rename.
nhdlg-err-hit=HIT is invalid!
nhdlg-newinfo=New HIT information
nhdlg-newhit=New HIT:
nhdlg-name=Name:
nhdlg-group=Group:
nhdlg-advanced=Advanced
nhdlg-url=URL:
nhdlg-port=Port:
nhdlg-g-info=Group info
nhdlg-g-localhit=Local HIT:
nhdlg-g-type=Type:
nhdlg-g-lightweight=Lightweight:
nhdlg-tt-hit=The fingerprint (HIT, Host Identity Tag) of the remote host.
nhdlg-tt-hit-priv=HIT (Host Identity Tag) identifies hosts from each other.

# New group dialog.
ngdlg-name=Name:
ngdlg-localhit=Local HIT:
ngdlg-type=Type:
ngdlg-type2=Encryption:
ngdlg-button-create=Create
ngdlg-button-cancel=Cancel
ngdlg-err-invalid=Invalid group name!
ngdlg-err-exists=Group already exists!
ngdlg-err-reserved=Given group name is reserved!
ngdlg-err-reserved+Choose another one.
ngdlg-err-invchar=Group name contains invalid characters!
ngdlg-err-invchar+Rename.
	
# Tool window (HIT handling).
tw-button-apply=Apply
tw-button-cancel=Cancel
tw-button-delete=Delete
tw-button-edit=Edit
tw-hit-info=HIT information
tw-hit-name=Name:
tw-hit-group=Group:
tw-hit-advanced=Advanced
tw-hit-hit=HIT:
tw-hit-port=Port:
tw-hit-url=URL:
tw-hit-groupinfo=Group info:
tw-hit-local=Local HIT:
tw-group-info=Group information
tw-group-name=Name:
tw-group-advanced=Advanced
tw-group-local=Local HIT:
	
tw-hitgroup-type=Type:
tw-hitgroup-lightweight=Encryption:
	
# Local HIT handling.
lhdlg-button-apply=Apply
lhdlg-button-cancel=Cancel
lh-info=Local HIT information:
lh-hit=	HIT:
lh-name=Name:
lhdlg-err-invalid=Invalid name for local HIT!
lhdlg-err-exists=Local HIT name is already in use!
lhdlg-err-invchar=Name of local HIT contains invalid characters!

# General message dialog.
msgdlg-button-ok=OK
msgdlg-button-cancel=Cancel

# GUI info (status bar) strings.
gui-info-000=HIP service available on this computer.
gui-info-001=HIP service unavailable.
gui-info-002=HIP GUI started.

# Other strings.
newgroup-error-nolocals=Can't create new group,
newgroup-error-nolocals+no local HITs defined.
newgroup-error-nolocals+Check HIP daemon.
newhit-error-nolocals=Can't add new remote HIT,
newhit-error-nolocals+no local HITs defined.
newhit-error-nolocals+Check HIP daemon.
# NOTE! Empty group must have spaces in both sides of the item name!
hits-group-emptyitem= <empty> 
ask-delete-hit=Are you sure you want to delete selected HIT?
ask-delete-group=Are you sure you want to delete selected group?
ask-apply-hit=Are you sure you want to apply the changes?
ask-apply-hit-move=Are you sure you want move the hit?
ask-apply-group=Are you sure you want to apply the changes?

group-type-accept=accept
group-type-deny=deny
group-type2-lightweight=lightweight
group-type2-normal=normal

hits-number-of-used=Number of HITs in use
default-group-name=ungrouped
combo-newgroup=<create new...>