digitarald / digitarald-fancyupload

Swiff meets Ajax for powerful and elegant uploads (MooTools Plugin).
http://digitarald.de/project/fancyupload/
277 stars 105 forks source link

where are this file? "https://github.com/mootools/mootools-more/raw/master/Source/Core/Lang.js" #23

Open yojose opened 12 years ago

yojose commented 12 years ago

Hi. Im a spanish and whold like traslate fancyupload in spanish. im not expert in mootool but I think in this file is list of lang. thanks, and sorry for my English. ;)

khalil00 commented 7 years ago

I dit it that way :

// Avoiding MooTools.lang dependency
(function() {
    var phrases = {
        'progressOverall': 'Progression totale ({total})',
        'currentTitle': 'Progression du fichier',
        'currentFile': 'En train d\'uploader "{name}"',
        'currentProgress': 'Upload en cours: {bytesLoaded} à {rate}, {timeRemaining} restant.',
        'uploadCompleted': 'Upload effectué!',
        'fileName': '{name}',
        'remove': 'Retirer',
        'removeTitle': 'Cliquez pour retirer cet élément',
        'fileError': 'Upload échoué',
        'validationErrors': {
            'duplicate': 'Le fichier <em>{name}</em> a déjà été ajouté.',
            'sizeLimitMin': 'File <em>{name}</em> (<em>{size}</em>) is too small, the minimal file size is {fileSizeMin}.',
            'sizeLimitMax': 'Le fichier <em>{name}</em> (<em>{size}</em>) est trop gros, la taille maximale est <em>{fileSizeMax}</em>.',
            'fileListMax': 'Le fichier <em>{name}</em> ne peut être ajouté, le nombre total maximal de fichiers est atteint (<em>{fileListMax} fichiers</em>).',
            'fileListSizeMax': 'File <em>{name}</em> (<em>{size}</em>) is too big, overall filesize of <em>{fileListSizeMax}</em> exceeded.'
        },
        'errors': {
            'httpStatus': 'Le serveur a retourné un statut avec le code <code>#{code}</code>',
            'securityError': 'Une erreur de sécurité s\'est produite : ({text})',
            'ioError': 'Une erreur a entrainé l\'échec de l\'upload ({text})'
        }
    };

    var phrases_en = {
        'progressOverall': 'Overall Progress ({total})',
        'currentTitle': 'File Progress',
        'currentFile': 'Uploading "{name}"',
        'currentProgress': 'Upload: {bytesLoaded} with {rate}, {timeRemaining} remaining.',
        'uploadCompleted': 'Upload completed',
        'fileName': '{name}',
        'remove': 'Remove',
        'removeTitle': 'Click to remove this entry.',
        'fileError': 'Upload failed',
        'validationErrors': {
            'duplicate': 'File <em>{name}</em> is already added, duplicates are not allowed.',
            'sizeLimitMin': 'File <em>{name}</em> (<em>{size}</em>) is too small, the minimal file size is {fileSizeMin}.',
            'sizeLimitMax': 'File <em>{name}</em> (<em>{size}</em>) is too big, the maximal file size is <em>{fileSizeMax}</em>.',
            'fileListMax': 'File <em>{name}</em> could not be added, amount of <em>{fileListMax} files</em> exceeded.',
            'fileListSizeMax': 'File <em>{name}</em> (<em>{size}</em>) is too big, overall filesize of <em>{fileListSizeMax}</em> exceeded.'
        },
        'errors': {
            'httpStatus': 'Server returned HTTP-Status <code>#{code}</code>',
            'securityError': 'Security error occured ({text})',
            'ioError': 'Error caused a send or load operation to fail ({text})'
        }
    };

    if (MooTools.lang) {
        MooTools.lang.set('en', 'FancyUpload', phrases_en);
        MooTools.lang.set('fr', 'FancyUpload', phrases);
    } else {
        MooTools.lang = {
            get: function(from, key) {
                if($("cur_lang").value == 1)
                    return phrases[key];
                else
                    return phrases_en[key];
            }
        };
    }
})();