MIDAS KnowledgebaseMIDAS Knowledgebase

How to translate MIDAS into another language or improve upon an existing translation

If you'd like to translate MIDAS into another language, or think you can improve upon an existing translation, we'd love to hear from you!
Head on over to our translation tool to start translating and submitting your language changes online!

If instead you wish to make "custom" language modifications specific to your own self-hosted MIDAS scheduling system, then please read on...

Editing a Language file

Existing Language files have the extension .pm and can be found in the "language" directory of your installation.
When you open a language file in a text editor, you will see a file which starts as follows:
package lang;

#Language: English (US)
#File Version: 1.00
#Author: https://mid.as

sub ln {
my $pkg=shift;my $obj={

'charset'=> q!UTF-8!,
Edit the RED TEXT to give a brief description of the language you are translating into

Edit the BLUE TEXT to show your name, contact e-mail (if desired), and/or your Website

Edit the GREEN TEXT if the language you are translating into requires a different Character Set to display correctly in a web browser.


The following lines in this file are split into two parts, for example:
'manage_venues'=> q!Manage Venues!,
The first part of a line (i.e. 'manage_venues') denotes an internal variable, and should NOT be changed.
The second part of the line (the section in between the two "!" markers) is the part to be translated (i.e. Manage Venues)

TIP: Be sure to leave every other part of the line "as is". Removing or changing any other part of a line may cause the software to function incorrectly, or not at all

TIP: If you need to use the "!" character as part of a translated phrase, precede it with a "\" character Example: "The end time cannot come before the start time\!"

TIP: If you encounter the characters "<BR>" in a line, the software interprets this as meaning 'start a new line" - Please leave them in!

The last few lines of the language file (shown below) should be left untouched:
bless $obj, $pkg;return $obj;

TIP: Administrators - To test your language file, and to make it "active" in your MIDAS, save it to the "language" directory, then add the following lines to the <languages> section of your "midasglobal.dat" configuration file:
    <name>English (UK)</name>

Where <name> is the display name of your language (Example: "English (UK)"), and <id> contains the filename of your language file (without the .pm extension).
You might also be interested in...
» » »

← Return to Knowledgebase