var I18N = {

  lang : "en",

  glp : function(prop) {
    var args = $A(arguments);
    
    var msg  = I18N[args.shift()];
    if (!msg){ return prop; }
    
    for (var i = 0 ; i < args.length ; i++){
      msg = msg.replace('{'+i+'}',args[i]);
    }
    
	  return msg;
  },

  'error.unknown' : "An unknown error occured, please contact an administrator.",
  'warn.edit.contentlost' : "Your document has not been saved, all changes will be lost.",
  'warn.popup.blocker' : "Popup has been blocked by a popup blocker.\nPlease disable the popup blocker and try again, or contact your system administrator.",
  'warn.json.sessiontimeout' : "An error occured while contacting the server, your action could not be completed.\nYour session may have expired or the server is down.",
  'warn.json.sessiontimeout.205' : "Your session may have expired, the page will be refreshed. Please try it again.",
  'ui.adm.admin-notes.error' : "An error occured while contacting the server, your note could not be saved.\n" + "Your session may have expired or the server is down.",
  'info.msg.loading' : "Processing...",
  'msg.confirm.dragdrop' : "Please confirm drag and drop ?",
  'msg.info.opennewwindow' : "New window",
  'datechooser.js.date-format' : "MM/dd/yyyy",
  'datechooser.js.date-time-format' : "MM/dd/yyyy HH:mm",
  'fileprocessor.confirm' : "Please confirm",
  'msg.js.confirm' : "Do you really want to perform this action?",
  
  /* Autocomplete */
  'info.msg.autocomplete' : "Enter searched text",
  'info.msg.autocomplete.done' : "Category selected !",
  
  /* WikiEdit */
  'wiki.section.edit' : "Edit",
  'wiki.section.save' : "Save",
  'wiki.section.cancel' : "Cancel",
  
  /* Wysiwyg popup */
  'wysiwyg.popupedit.warn.contentlost' : "Your document has not been validated, all changes will be lost.",
  'wysiwyg.popupedit.ui.edit-info' : "Click here to edit this content",
  'wysiwyg.popupedit.ui.edit-link' : "Edit",
  'wysiwyg.popupedit.ui.preview-link' : "Preview",
  'wysiwyg.popupedit.ui.source-link' : "Source",
  'wysiwyg.popupedit.ui.clean-html' : 
        "The content you want to edit has been created with an older rich text editor.\n" +
        "It might not render properly with the current editor and some styles could be lost.\n" +
        "\n" +
        "Select 'OK' to continue editing, a cleanup will be performed to minimize styles losses.\n" +
        "Select 'Cancel' to leave content as is.",

  /* adminProperties */
  'msg.ldap.check-cnx.success' : "LDAP connection established successfully.",
  'msg.ldap.check-cnx.failed' : "LDAP connection failed.",
  
  /* Plupload */
  'plupload.ui.uploading' : "Uploading...",
  'plupload.ui.upload-error' : "Permission denied by server"
  
}
