From b3c29d9dc3a0967b7ce678de2c456c9819034364 Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Thu, 26 May 2022 15:00:09 +0200 Subject: [PATCH] arabic and portuguese_br languages --- CHANGELOG.md | 2 + docs/translations/default.md | 2 + frontend/mixins/shared.js | 4 ++ frontend/translations/arabic.js | 81 ++++++++++++++++++++++++++ frontend/translations/portuguese_br.js | 80 +++++++++++++++++++++++++ 5 files changed, 169 insertions(+) create mode 100644 frontend/translations/arabic.js create mode 100644 frontend/translations/portuguese_br.js diff --git a/CHANGELOG.md b/CHANGELOG.md index d78a19f..0ab16ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## Upcoming... +* Arabic translations added +* Brazilian Portuguese translations added ## 7.8.1 - 2022-05-25 * Database auth adapter session fix diff --git a/docs/translations/default.md b/docs/translations/default.md index f7954da..366c7fa 100644 --- a/docs/translations/default.md +++ b/docs/translations/default.md @@ -33,6 +33,8 @@ Available languages: - ```slovenian``` - ```hebrew``` - ```romanian``` +- ```arabic``` +- ```portuguese_br``` (Brazilian Portuguese pt-BR) Please help us translating FileGator to your language by submitting a Pull Request on GitHub. diff --git a/frontend/mixins/shared.js b/frontend/mixins/shared.js index a21b3d0..ba9d8d6 100644 --- a/frontend/mixins/shared.js +++ b/frontend/mixins/shared.js @@ -30,6 +30,8 @@ import japanese from '../translations/japanese' import slovenian from '../translations/slovenian' import hebrew from '../translations/hebrew' import romanian from '../translations/romanian' +import arabic from '../translations/arabic' +import portuguese_br from '../translations/portuguese_br' const funcs = { methods: { @@ -68,6 +70,8 @@ const funcs = { 'slovenian': slovenian, 'hebrew': hebrew, 'romanian': romanian, + 'arabic': arabic, + 'portuguese_br': portuguese_br, } let language = store.state.config.language diff --git a/frontend/translations/arabic.js b/frontend/translations/arabic.js new file mode 100644 index 0000000..9f8c204 --- /dev/null +++ b/frontend/translations/arabic.js @@ -0,0 +1,81 @@ +const data = { + 'Selected': 'ÇáãÍÏÏ: {0} ãä {1}', + 'Uploading files': 'ÊÍãíá {0}% ãä {1}', + 'File size error': '{0} ßÈíÑ ÌÏðÇ ¡ íÑÌì ÊÍãíá ãáÝÇÊ ÃÞá ãä {1}', + 'Upload failed': '{0} ÝÔá ÇáÊÍãíá', + 'Per page': '{0} áßá ÕÝÍÉ', + 'Folder': 'ãÌáÏ', + 'Login failed, please try again': 'ÝÔá ÊÓÌíá ÇáÏÎæá, íÑÌì ÇáãÍÇæáÉ ãÑÉ ÃÎÑì', + 'Already logged in': 'ÞãÊ ÈÊÓÌíá ÇáÏÎæá ÈÇáÝÚá.', + 'Please enter username and password': 'ÇáÑÌÇÁ ÅÏÎÇá ÇÓã ÇáãÓÊÎÏã æßáãÉ ÇáãÑæÑ.', + 'Not Found': 'ÛíÑ ãæÌæÏ', + 'Not Allowed': 'ÛíÑ ãÓãæÍ', + 'Please log in': 'íÑÌì ÊÓÌíá ÇáÏÎæá', + 'Unknown error': 'ÎØÃ ÛíÑ ãÚÑæÝ', + 'Add files': 'ÅÖÇÝÉ ãáÝÇÊ', + 'New': 'ÌÏíÏ', + 'New name': 'ÇÓã ÌÏíÏ', + 'Username': 'ÇÓã ÇáãÓÊÎÏã', + 'Password': 'ßáãÉ ÇáãÑæÑ', + 'Login': 'ÊÓÌíá ÇáÏÎæá', + 'Logout': 'ÊÓÌíá ÇáÎÑæÌ', + 'Profile': 'ÇáãáÝ ÇáÔÎÕí', + 'No pagination': 'áÇ ÊÑÞã ÇáÕÝÍÇÊ', + 'Time': 'ÇáæÞÊ', + 'Name': 'ÇáÅÓã', + 'Size': 'ÇáÍÌã', + 'Home': 'ÇáÑÆíÓíÉ', + 'Copy': 'äÓÎ', + 'Move': 'äÞá', + 'Rename': 'ÅÚÇÏÉ ÇáÊÓãíÉ', + 'Required': 'åÐÇ ÇáÍÞá ãØáæÈ', + 'Zip': 'Zip', + 'Batch Download': 'ÊÍãíá ÌãÇÚí', + 'Unzip': 'ÇÓÊÎÑÇÌ', + 'Delete': 'ÍÐÝ', + 'Download': 'ÊäÒíá', + 'Copy link': 'äÓÎ ÇáÑÇÈØ', + 'Done': 'Êã', + 'File': 'ãáÝ', + 'Drop files to upload': 'Þã ÈÅÓÞÇØ ÇáãáÝÇÊ áÊÍãíáåÇ', + 'Close': 'ÅÛáÇÞ', + 'Select Folder': 'ÊÍÏíÏ ÇáãÌáÏ', + 'Users': 'ÇáãÓÊÎÏãíä', + 'Files': 'ÇáãáÝÇÊ', + 'Role': 'ÞÇÚÏÉ', + 'Cancel': 'ÅáÛÇÁ', + 'Paused': 'ÅíÞÇÝ', + 'Confirm': 'ÊÃßíÏ', + 'Create': 'ÅäÔÇÁ', + 'User': 'ÇáãÓÊÎÏã', + 'Admin': 'ÇáãÏíÑ', + 'Save': 'ÍÝÙ', + 'Read': 'ÞÑÇÁÉ', + 'Write': 'ßÊÇÈÉ', + 'Upload': 'ÑÝÚ', + 'Permissions': 'ÃÐæäÇÊ', + 'Homedir': 'ÇáãÌáÏ ÇáÑÆíÓí', + 'Leave blank for no change': 'ÇÊÑßå ÝÇÑÛÇ ÈÏæä ÊÛííÑ', + 'Are you sure you want to do this?': 'åá ÇäÊ ãÊÃßÏ ãä Ãäß ÊÑíÏ Ãä ÊÝÚá åÐÇ¿', + 'Are you sure you want to allow access to everyone?': 'åá ÃäÊ ãÊÃßÏ ãä Ãäß ÊÑíÏ ÅÊÇÍÉ ÇáæÕæá ááÌãíÚ¿', + 'Are you sure you want to stop all uploads?': 'åá ÃäÊ ãÊÃßÏ Ãäß ÊÑíÏ ÅíÞÇÝ ÌãíÚ ÚãáíÇÊ ÇáÊÍãíá¿', + 'Something went wrong': 'åäÇß ÎØÃ ãÇ', + 'Invalid directory': 'ãÌáÏ ÛíÑ ÕÇáÍ', + 'This field is required': 'åÐÇ ÇáÍÞá ãØáæÈ', + 'Username already taken': 'ÇáÇÓã ãÓÊÎÏã ÈÇáÝÚá', + 'User not found': 'áã íÊã ÇáÚ辄 Úáì åÐÇ ÇáãÓÊÎÏã', + 'Old password': 'ßáãÉ ÇáãÑæÑ ÇáÞÏíãÉ', + 'New password': 'ßáãÉ ÇáãÑæÑ ÇáÌÏíÏÉ', + 'Wrong password': 'ßáãÉ ãÑæÑ ÎÇØÆÉ', + 'Updated': 'Êã ÇáÊÍÏíË', + 'Deleted': 'Êã ÇáÍÐÝ', + 'Your file is ready': 'ãáÝß ÌÇåÒ', + 'View': 'ÚÑÖ', + 'Search': 'ÇáÈÍË', + 'Download permission': 'ÕáÇÍíÇÊ ÇáÊäÒíá', + 'Guest': 'ÒÇÆÑ', + 'Show hidden': 'ÅÙåÇÑ ÇáãÎÝí', +} + +export default data + diff --git a/frontend/translations/portuguese_br.js b/frontend/translations/portuguese_br.js new file mode 100644 index 0000000..8d72971 --- /dev/null +++ b/frontend/translations/portuguese_br.js @@ -0,0 +1,80 @@ +const data = { + 'Selected': 'Selecionado: {0} de {1}', + 'Uploading files': 'Fazendo o upload {0}% de {1}', + 'File size error': '{0} é muito grande, por favor faça o upload de ficheiros menores do que {1}', + 'Upload failed': '{0} falhou ao fazer o upload', + 'Per page': '{0} Por Página', + 'Folder': 'Pasta', + 'Login failed, please try again': 'Login falhou, por favor, tente novamente.', + 'Already logged in': 'Já está logado.', + 'Please enter username and password': 'Por favor, entre com o nome de utilizador e senha.', + 'Not Found': 'Não Encontrado', + 'Not Allowed': 'Não Autorizado', + 'Please log in': 'Por favor, faça o login', + 'Unknown error': 'Erro desconhecido', + 'Add files': 'Adicionar ficheiros', + 'New': 'Novo', + 'New name': 'Novo nome', + 'Username': 'Nome de utilizador', + 'Password': 'Senha', + 'Login': 'Entrar', + 'Logout': 'Sair', + 'Profile': 'Perfil', + 'No pagination': 'Sem Paginação', + 'Time': 'Tempo', + 'Name': 'Nome', + 'Size': 'Tamanho', + 'Home': 'Página inicial', + 'Copy': 'Copiar', + 'Move': 'Mover', + 'Rename': 'Renomear', + 'Required': 'Por favor, preencha este campo', + 'Zip': 'Comprimir', + 'Batch Download': 'Download em lotes', + 'Unzip': 'Descomprimir', + 'Delete': 'Apagar', + 'Download': 'Download', + 'Copy link': 'Copiar link', + 'Done': 'Finalizado', + 'File': 'Ficheiro', + 'Drop files to upload': 'Arraste ficheiros para fazer o upload', + 'Close': 'Fechar', + 'Select Folder': 'Selecionar Pasta', + 'Users': 'Utilizadores', + 'Files': 'Ficheiros', + 'Role': 'Posição', + 'Cancel': 'Cancelar', + 'Paused': 'Parado', + 'Confirm': 'Confirmar', + 'Create': 'Criar', + 'User': 'Utilizador', + 'Admin': 'Administrador', + 'Save': 'Guardar', + 'Read': 'Ler', + 'Write': 'Escrever', + 'Upload': 'Upload', + 'Permissions': 'Permissões', + 'Homedir': 'Pasta da página inicial', + 'Leave blank for no change': 'Deixe em branco para não fazer nenhuma alteração', + 'Are you sure you want to do this?': 'Tem a certeza que deseja fazer isto?', + 'Are you sure you want to allow access to everyone?': 'Tem a certeza que deseja permitir o acesso a todos?', + 'Are you sure you want to stop all uploads?': 'Tem a certeza que deseja parar todos os uploads?', + 'Something went wrong': 'Algo deu errado', + 'Invalid directory': 'Pasta inválida', + 'This field is required': 'Este ficheiro é obrigatório', + 'Username already taken': 'O nome de utilizador já existe', + 'User not found': 'Utilizador não encontrado', + 'Old password': 'Senha atual', + 'New password': 'Nova senha', + 'Wrong password': 'Senha inválida', + 'Updated': 'Atualizado', + 'Deleted': 'Excluído', + 'Your file is ready': 'O seu ficheiro está pronto', + 'View': 'Vista', + 'Search': 'Pesquisar', + 'Download permission': 'Transferir', + 'Guest': 'Convidado', + 'Show hidden': 'Mostrar ocultos' +} + +export default data