mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2026-03-14 12:45:51 +01:00
pt-PT translation
Add pt-PT translation and some bugfixes related to translati
This commit is contained in:
parent
dd79258999
commit
2c50b1f88e
2 changed files with 96 additions and 49 deletions
|
|
@ -1780,6 +1780,7 @@ if (isset($_GET['view'])) {
|
|||
<?php $display_path = fm_get_display_path($file_path); ?>
|
||||
<li class="list-group-item"><strong><?php echo $display_path['label']; ?>:</strong> <?php echo $display_path['path']; ?></li>
|
||||
<li class="list-group-item"><strong><?php echo lng('Date Modified') ?>:</strong> <?php echo date(FM_DATETIME_FORMAT, filemtime($file_path)); ?></li>
|
||||
<li class="list-group-item"><strong><?php echo lng($display_path['label']); ?>:</strong> <?php echo $display_path['path']; ?></li>
|
||||
<li class="list-group-item"><strong><?php echo lng('File size') ?>:</strong> <?php echo ($filesize_raw <= 1000) ? "$filesize_raw bytes" : $filesize; ?></li>
|
||||
<li class="list-group-item"><strong><?php echo lng('MIME-type') ?>:</strong> <?php echo $mime_type ?></li>
|
||||
<?php
|
||||
|
|
@ -1825,7 +1826,12 @@ if (isset($_GET['view'])) {
|
|||
<button type="submit" class="btn btn-link btn-sm text-decoration-none fw-bold p-0"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></button>
|
||||
</form>
|
||||
<?php if (!FM_READONLY): ?>
|
||||
<a class="fw-bold btn btn-outline-primary" title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&del=<?php echo urlencode($file) ?>" onclick="confirmDailog(event, 1209, '<?php echo lng('Delete') . ' ' . lng('File'); ?>','<?php echo urlencode($file); ?>', this.href);"> <i class="fa fa-trash"></i> Delete</a>
|
||||
<a class="fw-bold btn btn-outline-primary"
|
||||
title="<?php echo lng('Delete'); ?>"
|
||||
href="?p=<?php echo urlencode(FM_PATH); ?>&del=<?php echo urlencode($file); ?>"
|
||||
onclick="confirmDialog(event, 1209, '<?php echo lng('Delete') . ' ' . lng('File'); ?>', <?php echo json_encode($file); ?>, this.href);">
|
||||
<i class="fa fa-trash"></i> <?php echo lng('Delete'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a class="fw-bold btn btn-outline-primary" href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
|
||||
<?php
|
||||
|
|
@ -2213,7 +2219,7 @@ $all_files_size = 0;
|
|||
</td>
|
||||
<?php endif; ?>
|
||||
<td class="inline-actions"><?php if (!FM_READONLY): ?>
|
||||
<a title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&del=<?php echo urlencode($f) ?>" onclick="confirmDailog(event, '1028','<?php echo lng('Delete') . ' ' . lng('Folder'); ?>','<?php echo urlencode($f) ?>', this.href);"> <i class="fa fa-trash-o" aria-hidden="true"></i></a>
|
||||
<a title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&del=<?php echo urlencode($f) ?>" onclick="confirmDialog(event, '1028','<?php echo lng('Delete') . ' ' . lng('Folder'); ?>','<?php echo urlencode($f) ?>', this.href);"> <i class="fa fa-trash-o" aria-hidden="true"></i></a>
|
||||
<a title="<?php echo lng('Rename') ?>" href="#" onclick="rename('<?php echo fm_enc(addslashes(FM_PATH)) ?>', '<?php echo fm_enc(addslashes($f)) ?>');return false;"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
|
||||
<a title="<?php echo lng('CopyTo') ?>..." href="?p=&copy=<?php echo urlencode(trim(FM_PATH . '/' . $f, '/')) ?>"><i class="fa fa-files-o" aria-hidden="true"></i></a>
|
||||
<?php endif; ?>
|
||||
|
|
@ -2290,13 +2296,13 @@ $all_files_size = 0;
|
|||
<?php endif; ?>
|
||||
<td class="inline-actions">
|
||||
<?php if (!FM_READONLY): ?>
|
||||
<a title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&del=<?php echo urlencode($f) ?>" onclick="confirmDailog(event, 1209, '<?php echo lng('Delete') . ' ' . lng('File'); ?>','<?php echo urlencode($f); ?>', this.href);"> <i class="fa fa-trash-o"></i></a>
|
||||
<a title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&del=<?php echo urlencode($f) ?>" onclick="confirmDialog(event, 1209, '<?php echo lng('Delete') . ' ' . lng('File'); ?>','<?php echo urlencode($f); ?>', this.href);"> <i class="fa fa-trash-o"></i></a>
|
||||
<a title="<?php echo lng('Rename') ?>" href="#" onclick="rename('<?php echo fm_enc(addslashes(FM_PATH)) ?>', '<?php echo fm_enc(addslashes($f)) ?>');return false;"><i class="fa fa-pencil-square-o"></i></a>
|
||||
<a title="<?php echo lng('CopyTo') ?>..."
|
||||
href="?p=<?php echo urlencode(FM_PATH) ?>&copy=<?php echo urlencode(trim(FM_PATH . '/' . $f, '/')) ?>"><i class="fa fa-files-o"></i></a>
|
||||
<?php endif; ?>
|
||||
<a title="<?php echo lng('DirectLink') ?>" href="<?php echo fm_enc(FM_ROOT_URL . (FM_PATH != '' ? '/' . FM_PATH : '') . '/' . $f) ?>" target="_blank"><i class="fa fa-link"></i></a>
|
||||
<a title="<?php echo lng('Download') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&dl=<?php echo urlencode($f) ?>" onclick="confirmDailog(event, 1211, '<?php echo lng('Download'); ?>','<?php echo urlencode($f); ?>', this.href);"><i class="fa fa-download"></i></a>
|
||||
<a title="<?php echo lng('Download') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&dl=<?php echo urlencode($f) ?>" onclick="confirmDialog(event, 1211, '<?php echo lng('Download'); ?>','<?php echo urlencode($f); ?>', this.href);"><i class="fa fa-download"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
|
@ -5076,7 +5082,7 @@ function fm_show_header_login()
|
|||
}
|
||||
|
||||
// action confirm dailog modal
|
||||
function confirmDailog(e, id = 0, title = "Action", content = "", action = null) {
|
||||
function confirmDialog(e, id = 0, title = "Action", content = "", action = null) {
|
||||
e.preventDefault();
|
||||
const tplObj = {
|
||||
id,
|
||||
|
|
@ -5085,10 +5091,10 @@ function fm_show_header_login()
|
|||
action
|
||||
};
|
||||
let tpl = $("#js-tpl-confirm").html();
|
||||
$(".modal.confirmDailog").remove();
|
||||
$(".modal.confirmDialog").remove();
|
||||
$('#wrapper').append(template(tpl, tplObj));
|
||||
const $confirmDailog = $("#confirmDailog-" + tplObj.id);
|
||||
$confirmDailog.modal('show');
|
||||
const $confirmDialog = $("#confirmDialog-" + tplObj.id);
|
||||
$confirmDialog.modal('show');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -5597,9 +5603,6 @@ function fm_show_header_login()
|
|||
$tr['en']['File or folder with this path already exists'] = 'File or folder with this path already exists';
|
||||
$tr['en']['Are you sure want to rename?'] = 'Are you sure want to rename?';
|
||||
$tr['en']['Are you sure want to'] = 'Are you sure want to';
|
||||
$tr['en']['Date Modified'] = 'Date Modified';
|
||||
$tr['en']['File size'] = 'File size';
|
||||
$tr['en']['MIME-type'] = 'MIME-type';
|
||||
|
||||
$i18n = fm_get_translations($tr);
|
||||
$tr = $i18n ? $i18n : $tr;
|
||||
|
|
|
|||
122
translation.json
122
translation.json
|
|
@ -863,10 +863,10 @@
|
|||
"Rename": "Umbenennen",
|
||||
"CopyTo": "Kopieren nach",
|
||||
"DirectLink": "Direktlink",
|
||||
"UploadingFiles": "Dateien hochladen",
|
||||
"UploadingFiles": "Datei hochladen",
|
||||
"ChangePermissions": "Berechtigungen ändern",
|
||||
"Copying": "Kopieren",
|
||||
"CreateNewItem": "Neues Element erstellen",
|
||||
"CreateNewItem": "Neue Datei erstellen",
|
||||
"Name": "Name",
|
||||
"AdvancedEditor": "Erweiterter Editor",
|
||||
"RememberMe": "Eingeloggt bleiben",
|
||||
|
|
@ -933,7 +933,7 @@
|
|||
"already exists": "existiert bereits",
|
||||
"Error while moving from": "Fehler beim Verschieben aus",
|
||||
"Create archive?": "Archiv erstellen?",
|
||||
"Invalid file or folder name": "Ungültiger Datei- oder Ordnername",
|
||||
"Invalid file or folder name": "Ungältiger Datei- oder Ordnername",
|
||||
"Archive unpacked": "Archive entpackt",
|
||||
"File extension is not allowed": "Dateityp nicht erlaubt",
|
||||
"Root path": "Quellverzeichnis",
|
||||
|
|
@ -948,7 +948,7 @@
|
|||
"Search file in folder and subfolders...": "Suchen in Ordnern und Unterordnern...",
|
||||
"Access denied. IP restriction applicable": "Zugriff verweigert - IP-Beschränkung.",
|
||||
"Invalid characters in file or folder name": "Unzulässige Zeichen im Datei- oder Ordnernamen",
|
||||
"Operations with archives are not available": "Archiv-Funktionen nicht verfügbar",
|
||||
"Operations with archives are not available": "Archiv-Funktionen nicht verfägbar",
|
||||
"File or folder with this path already exists": "Datei oder Ordner mit diesem Pfad existiert bereits",
|
||||
"Moved from": "Verschoben aus"
|
||||
}
|
||||
|
|
@ -1393,8 +1393,8 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"name": "Português Brasileiro",
|
||||
"code": "pt_BR",
|
||||
"name": "Português (Brasileiro)",
|
||||
"code": "ptBR",
|
||||
"translation": {
|
||||
"AppName": "Gerenciador de arquivos Tiny",
|
||||
"AppTitle": "Gerenciador de arquivos",
|
||||
|
|
@ -1417,6 +1417,7 @@
|
|||
"NewItem": "Novo Item",
|
||||
"Folder": "Pasta",
|
||||
"Delete": "Excluir",
|
||||
"Image size": "Tamanho da imagem",
|
||||
"Rename": "Renomear",
|
||||
"CopyTo": "Copiar em",
|
||||
"DirectLink": "Link direto",
|
||||
|
|
@ -1518,10 +1519,10 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"name": "Português Europeu",
|
||||
"code": "pt_PT",
|
||||
"name": "Português (Europeu)",
|
||||
"code": "ptPT",
|
||||
"translation": {
|
||||
"AppName": "Gestor de Ficheiros",
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "Gestor de Ficheiros",
|
||||
"Login": "Iniciar sessão",
|
||||
"Username": "Nome de utilizador",
|
||||
|
|
@ -1530,40 +1531,42 @@
|
|||
"Move": "Mover",
|
||||
"Copy": "Copiar",
|
||||
"Save": "Guardar",
|
||||
"SelectAll": "Seleccionar tudo",
|
||||
"UnSelectAll": "Desseleccionar tudo",
|
||||
"SelectAll": "Selecionar tudo",
|
||||
"UnSelectAll": "Desselecionar tudo",
|
||||
"File": "Ficheiro",
|
||||
"Back": "Voltar",
|
||||
"Size": "Tamanho",
|
||||
"Perms": "Permissões",
|
||||
"Modified": "Modificado",
|
||||
"Owner": "Proprietário",
|
||||
"Search": "Procurar",
|
||||
"Search": "Pesquisar",
|
||||
"NewItem": "Novo item",
|
||||
"Folder": "Pasta",
|
||||
"Delete": "Eliminar",
|
||||
"Path": "Caminho",
|
||||
"Rename": "Renomear",
|
||||
"CopyTo": "Copiar para",
|
||||
"DirectLink": "Ligação directa",
|
||||
"DirectLink": "Ligação direta",
|
||||
"UploadingFiles": "A enviar ficheiros",
|
||||
"ChangePermissions": "Alterar permissões",
|
||||
"Copying": "A copiar",
|
||||
"CreateNewItem": "Criar novo item",
|
||||
"Name": "Nome",
|
||||
"AdvancedEditor": "Editor avançado",
|
||||
"Actions": "Acções",
|
||||
"Actions": "Ações",
|
||||
"Folder is empty": "A pasta está vazia",
|
||||
"Upload": "Enviar",
|
||||
"Cancel": "Cancelar",
|
||||
"InvertSelection": "Inverter selecção",
|
||||
"InvertSelection": "Inverter seleção",
|
||||
"DestinationFolder": "Pasta de destino",
|
||||
"ItemType": "Tipo de item",
|
||||
"ItemName": "Nome do item",
|
||||
"CreateNow": "Criar agora",
|
||||
"Download": "Descarregar",
|
||||
"Download": "Transferir",
|
||||
"Open": "Abrir",
|
||||
"UnZip": "Descomprimir",
|
||||
"UnZipToFolder": "Descomprimir para pasta",
|
||||
"Theme": "Tema",
|
||||
"UnZip": "Extrair",
|
||||
"UnZipToFolder": "Extrair para pasta",
|
||||
"Edit": "Editar",
|
||||
"NormalEditor": "Editor normal",
|
||||
"BackUp": "Cópia de segurança",
|
||||
|
|
@ -1576,59 +1579,100 @@
|
|||
"ShowHiddenFiles": "Mostrar ficheiros ocultos",
|
||||
"Help": "Ajuda",
|
||||
"Created": "Criado",
|
||||
"Help Documents": "Documentos de ajuda",
|
||||
"Help Documents": "Documentação de ajuda",
|
||||
"Report Issue": "Comunicar problema",
|
||||
"Generate": "Gerar",
|
||||
"FullSize": "Tamanho total",
|
||||
"HideColumns": "Ocultar colunas de permissões/proprietário",
|
||||
"You are logged in": "Sessão iniciada",
|
||||
"Nothing selected": "Nenhum ficheiro seleccionado seleccionado",
|
||||
"Nothing selected": "Nada selecionado",
|
||||
"Paths must be not equal": "Os caminhos não podem ser iguais",
|
||||
"Renamed from": "Renomeado de",
|
||||
"Archive not unpacked": "Arquivo não descomprimido",
|
||||
"Deleted": "Eliminado",
|
||||
"Archive not unpacked": "Arquivo não extraído",
|
||||
"Archive not created": "Arquivo não criado",
|
||||
"Archive unpacked": "Arquivo extraído",
|
||||
"Deleted": "Eliminado",
|
||||
"Copied from": "Copiado de",
|
||||
"Permissions changed": "Permissões alteradas",
|
||||
"Permissions not changed": "Permissões não alteradas",
|
||||
"to": "para",
|
||||
"Saved Successfully": "Guardado com sucesso",
|
||||
"not found!": "não encontrado!",
|
||||
"File Saved Successfully": "Ficheiro guardado com sucesso",
|
||||
"Archive": "Arquivo",
|
||||
"Permissions not changed": "Permissões não alteradas",
|
||||
"Select folder": "Seleccionar pasta",
|
||||
"Select folder": "Selecionar pasta",
|
||||
"Source path not defined": "Caminho de origem não definido",
|
||||
"already exists": "já existe",
|
||||
"Error while moving from": "Erro ao mover de",
|
||||
"Create archive?": "Deseja criar um arquivo?",
|
||||
"Create archive?": "Criar arquivo?",
|
||||
"Invalid file or folder name": "Nome de ficheiro ou pasta inválido",
|
||||
"Archive unpacked": "Arquivo descomprimido",
|
||||
"File extension is not allowed": "Extensão de ficheiro não permitida",
|
||||
"Root path": "Caminho raiz",
|
||||
"Error while renaming from": "Erro ao renomear de",
|
||||
"File not found": "Ficheiro não encontrado",
|
||||
"Error while deleting items": "Erro ao eliminar itens",
|
||||
"Moved from": "Movido de",
|
||||
"Generate new password hash": "Gerar novo hash de palavra-passe",
|
||||
"Login failed. Invalid username or password": "Falha na autenticação. Nome de utilizador ou palavra-passe inválido",
|
||||
"password_hash not supported, Upgrade PHP version": "password_hash não suportado. Actualize a versão do PHP",
|
||||
"Generate new password hash": "Gerar hash de palavra-passe",
|
||||
"Login failed. Invalid username or password": "Falha na autenticação. Nome de utilizador ou palavra-passe inválidos",
|
||||
"password_hash not supported, Upgrade PHP version": "password_hash não suportado, atualize a versão do PHP",
|
||||
"Advanced Search": "Pesquisa avançada",
|
||||
"Error while copying from": "Erro ao copiar de",
|
||||
"Invalid characters in file name": "Caracteres inválidos no nome do ficheiro",
|
||||
"FILE EXTENSION HAS NOT SUPPORTED": "A EXTENSÃO DO FICHEIRO NÃO É SUPORTADA",
|
||||
"Selected files and folder deleted": "Ficheiros e pasta seleccionados eliminados",
|
||||
"Error while fetching archive info": "Erro ao obter informações do arquivo",
|
||||
"Delete selected files and folders?": "Deseja eliminar os ficheiros e pastas seleccionados?",
|
||||
"Search file in folder and subfolders...": "Procurar ficheiro na pasta e subpastas...",
|
||||
"Access denied. IP restriction applicable": "Acesso negado. Restrição de IP activa",
|
||||
"Invalid characters in file or folder name": "Caracteres inválidos no nome do ficheiro ou da pasta",
|
||||
"Operations with archives are not available": "As operações com arquivos não estão disponíveis",
|
||||
"FILE EXTENSION HAS NOT SUPPORTED": "A EXTENSÃO DO FICHEIRO NÃO É SUPORTADA",
|
||||
"Selected files and folder deleted": "Ficheiros e pastas selecionados eliminados",
|
||||
"Error while fetching archive info": "Erro ao obter informações do arquivo",
|
||||
"Delete selected files and folders?": "Eliminar os ficheiros e pastas selecionados?",
|
||||
"Search file in folder and subfolders...": "Pesquisar ficheiro na pasta e subpastas...",
|
||||
"Access denied. IP restriction applicable": "Acesso negado. Restrição de IP ativa",
|
||||
"Operations with archives are not available": "Operações com arquivos não disponíveis",
|
||||
"File or folder with this path already exists": "Já existe um ficheiro ou pasta com este caminho",
|
||||
"Are you sure want to rename?": "Tem a certeza que deseja renomear?",
|
||||
"Are you sure want to": "Tem a certeza que deseja",
|
||||
"Are you sure want to rename?": "Tens a certeza que queres mudar o nome?",
|
||||
"Are you sure want to": "Tens a certeza que queres",
|
||||
"Sometimes the save action may not work on the first try, so please attempt it again": "Por vezes, a ação de guardar pode não funcionar à primeira, tente novamente.",
|
||||
"Date Modified": "Data de modificação",
|
||||
"File size": "Tamanho do ficheiro",
|
||||
"MIME-type": "Tipo MIME"
|
||||
"MIME-type": "Tipo MIME",
|
||||
"MemoryUsed": "Memória utilizada",
|
||||
"PartitionSize": "Tamanho da partição",
|
||||
"FreeOf": "Livre de",
|
||||
"Preview": "Pré-visualização",
|
||||
"Full path": "Caminho completo",
|
||||
"Image": "Imagem",
|
||||
"Image sizes": "Dimensões das imagens",
|
||||
"Image size": "Dimensões da imagem",
|
||||
"Audio": "Áudio",
|
||||
"Video": "Vídeo",
|
||||
"Charset": "Conjunto de caracteres",
|
||||
"Invalid Token.": "Token inválido",
|
||||
"not created": "não criado",
|
||||
"not deleted": "não eliminado",
|
||||
"Undo": "Anular",
|
||||
"Redo": "Refazer",
|
||||
"Fullscreen": "Ecrã completo",
|
||||
"Select Theme": "Selecionar tema",
|
||||
"Select Font Size": "Selecionar tamanho da letra",
|
||||
"dark": "escuro",
|
||||
"light": "claro",
|
||||
"Group": "Grupo",
|
||||
"Other": "Outros",
|
||||
"Read": "Ler",
|
||||
"Write": "Escrever",
|
||||
"Execute": "Executar",
|
||||
"Calculate folder size": "Calcular tamanho da pasta",
|
||||
"CalculateFolderSize": "Calcular tamanho da pasta",
|
||||
"Files in archive": "Ficheiros no arquivo",
|
||||
"Total size": "Tamanho total",
|
||||
"Compression": "Compressão",
|
||||
"Size in archive": "Tamanho no arquivo",
|
||||
"Tar": "Tar",
|
||||
"Zip": "Zip",
|
||||
"ProcessID": "ID do processo",
|
||||
"Enter here...": "Escreve aqui...",
|
||||
"Enter new file name": "Introduce o novo nome do ficheiro",
|
||||
"Okay": "OK",
|
||||
"Upload from URL": "Enviar a partir de URL",
|
||||
"Zero byte file! Aborting download": "Ficheiro de tamanho zero! A cancelar transferência"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue