﻿/**
* File with an associative array with all the messages used by javascript in the
* proper language. To use it, call the function msg('text.key')
*/

/**
* The array where all the translated message are stored.
*/
var messages = [];

messages['confirm.delete.page'] = "Do you really want to remove this page?";
messages['confirm.delete.menu.item'] = "Do you really want to remove this menu item?";
messages['confirm.delete.gallery.item'] = "Do you really want to remove this gallery item?";
messages['edit'] = "Edit";
messages['stop.edition'] = "Stop edition";

/**
* 
* @param key
*            The key of the message
* @return The message translated
*/
function msg(key) {
    return messages[key];
}