/*
 * h5ai 0.16
 * Options and localization
 */

h5aiOptions = {

    /*
     * The absolute link to h5ai.
     * Don't change this unless you know what you are doing.
     */
    "h5aiAbsHref": "/h5ai",

    /*
     * An array of view modes the user may choose from. Currently there
     * are two possible values: "details" and "icons". The first value
     * indicates the default view mode. If only one value is given the
     * view mode is fixed and the selector buttons are hidden.
     * The user selected view mode is also stored local in modern browsers
     * so that it will be persistent.
     */
    "viewmodes": ["details", "icons"],

    /*
     * Default sort order. Valid values for column are "name", "date" and
     * "size".
     * If you are using the JavaScript version please make sure to change
     * IndexOrderDefault in js.htaccess as well.
     */
    "sortorder": {
        "column": "name",
        "ascending": true
    },

    /*
     * Show a folder tree, boolean.
     * Note that this tree might have side effects as it sends HEAD requests
     * to the folders, and therefore will invoke index.php scripts. Use
     * folderStatus below to avoid such requests.
     * It might also affect performance significantly.
     */
    "showTree": true,

    /*
     * Slide tree bar into viewport if there is enough space, boolean.
     */
    "slideTree": true,

    /*
     * Associative array of folders and their HTTP status codes to
     * avoid HEAD requests to that folders. The key (folder) must start
     * and end with a slash (/).
     * For example:
     *   "/some/folder/": 200
     * will always return HTTP status 200 (OK), which will be interpreted
     * as a non auto indexed folder, that means a folder containing an
     * appropriate default index file.
     */
    "folderStatus": {},

    /*
     * Localization, for example "en", "de" etc. - see h5aiLangs below for
     * possible values. Adjust it to your needs. If lang is not found in
     * h5aiLangs it defaults to "en".
     */
    "lang": "en",

    /*
     * Try to use browser language, falls back to previous specified lang.
     */
    "useBrowserLang": true,

    /*
     * Set parent folder labels to real folder names.
     */
    "setParentFolderLabels": true,

    /*
     * Link the hover effects between crumb, extended view and tree.
     */
    "linkHoverStates": true,

    /*
     * Date format in detailed view, for example: "yyyy-MM-dd HH:mm:ss"
     * Syntax as specified by date.js
     * http://code.google.com/p/datejs/wiki/FormatSpecifiers
     */
    "dateFormat": "yyyy-MM-dd HH:mm",

    /*
     * Requieres PHP on the server.
     * Show thumbnails in icons view.
     */
    "showThumbs": false,

    /*
     * Requieres PHP on the server.
     * Enable zipped download of selected entries.
     */
    "zippedDownload": false
};



/*
 * Available translations.
*/
h5aiLangs = {

    "en": {
        "lang": "english",
        "details": "details",
        "icons": "icons",
        "name": "Name",
        "lastModified": "Last modified",
        "size": "Size",
        "parentDirectory": "Parent Directory",
        "empty": "empty",
        "folders": "folders",
        "files": "files",
        "download": "download"
    },

    "bg": {
        "lang": "български",
        "details": "детайли",
        "icons": "икони",
        "name": "Име",
        "lastModified": "Последна промяна",
        "size": "Размер",
        "parentDirectory": "Предходна директория",
        "empty": "празно",
        "folders": "папки",
        "files": "файлове",
        "download": "download"
    },

    "cs": {
        "lang": "čeština",
        "details": "podrobnosti",
        "icons": "ikony",
        "name": "Název",
        "lastModified": "Upraveno",
        "size": "Velikost",
        "parentDirectory": "Nadřazený adresář",
        "empty": "prázdný",
        "folders": "složek",
        "files": "souborů",
        "download": "download"
    },

    "de": {
        "lang": "deutsch",
        "details": "Details",
        "icons": "Icons",
        "name": "Name",
        "lastModified": "Geändert",
        "size": "Größe",
        "parentDirectory": "Übergeordnetes Verzeichnis",
        "empty": "leer",
        "folders": "Ordner",
        "files": "Dateien",
        "download": "Download"
    },

    "es": {
        "lang": "español",
        "details": "Detalles",
        "icons": "Íconos",
        "name": "Nombre",
        "lastModified": "Última modificación",
        "size": "Tamaño",
        "parentDirectory": "Directorio superior",
        "empty": "vacío",
        "folders": "folders",
        "files": "files",
        "download": "download"
    },

    "fr": {
        "lang": "français",
        "details": "détails",
        "icons": "icônes",
        "name": "Nom",
        "lastModified": "Dernière modification",
        "size": "Taille",
        "parentDirectory": "Dossier parent",
        "empty": "vide",
        "folders": "Répertoires",
        "files": "Fichiers",
        "download": "télécharger"
    },

    "it": {
       "lang": "italiano",
       "details": "dettagli",
       "icons": "icone",
       "name": "Nome",
       "lastModified": "Ultima modifica",
       "size": "Dimensione",
       "parentDirectory": "Cartella Superiore",
       "empty": "vuota",
       "folders": "cartelle",
       "files": "file",
       "download": "download"
   },

    "lv": {
        "lang": "latviešu",
        "details": "detaļas",
        "icons": "ikonas",
        "name": "Nosaukums",
        "lastModified": "Pēdējoreiz modificēts",
        "size": "Izmērs",
        "parentDirectory": "Vecākdirektorijs",
        "empty": "tukšs",
        "folders": "mapes",
        "files": "faili",
        "download": "lejupielādēt"
    },

    "nl": {
        "lang": "nederlands",
        "details": "details",
        "icons": "iconen",
        "name": "Naam",
        "lastModified": "Laatste wijziging",
        "size": "Grootte",
        "parentDirectory": "Bovenliggende map",
        "empty": "lege",
        "folders": "folders",
        "files": "files",
        "download": "download"
    },

    "pl": {
        "lang": "polski",
        "details": "szczegóły",
        "icons": "ikony",
        "name": "Nazwa",
        "lastModified": "Ostatnia modyfikacja",
        "size": "Rozmiar",
        "parentDirectory": "Katalog nadrzędny",
        "empty": "pusty",
        "folders": "foldery",
        "files": "pliki",
        "download": "download"
    },

    "pt": {
        "lang": "português",
        "details": "detalhes",
        "icons": "ícones",
        "name": "Nome",
        "lastModified": "Última modificação",
        "size": "Tamanho",
        "parentDirectory": "Diretório superior",
        "empty": "vazio",
        "folders": "pastas",
        "files": "arquivos",
        "download": "download"
    },

    "ru": {
        "lang": "русский",
        "details": "детали",
        "icons": "иконки",
        "name": "Имя",
        "lastModified": "Последние изменения",
        "size": "Размер",
        "parentDirectory": "Главная директория",
        "empty": "пусто",
        "folders": "папки",
        "files": "файлы",
        "download": "download"
    },

    "sk": {
        "lang": "slovenčina",
        "details": "podrobnosti",
        "icons": "ikony",
        "name": "Názov",
        "lastModified": "Upravené",
        "size": "Velkosť",
        "parentDirectory": "Nadriadený priečinok",
        "empty": "prázdny",
        "folders": "priečinkov",
        "files": "súborov",
        "download": "download"
    },

    "sv": {
        "lang": "svenska",
        "details": "detaljerad",
        "icons": "ikoner",
        "name": "Filnamn",
        "lastModified": "Senast ändrad",
        "size": "Filstorlek",
        "parentDirectory": "Till överordnad mapp",
        "empty": "tom",
        "folders": "folders",
        "files": "files",
        "download": "download"
    },

    "tr": {
        "lang": "türkçe",
        "details": "detaylar",
        "icons": "ikonlar",
        "name": "İsim",
        "lastModified": "Son Düzenleme",
        "size": "Boyut",
        "parentDirectory": "Üst Dizin",
        "empty": "boş",
        "folders": "klasörler",
        "files": "dosyalar",
        "download": "indir"
    },

    "zh-cn": {
        "lang": "简体中文",
        "details": "详情",
        "icons": "图标",
        "name": "文件名",
        "lastModified": "上次修改",
        "size": "大小",
        "parentDirectory": "上层文件夹",
        "empty": "空文件夹",
        "folders": "文件夹",
        "files": "文件",
        "download": "download"
    }
};

