Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portuguese translation #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/lang/credits.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const credits = {
"lang": ["Arabic"],
"url": "https://github.com/Faisal-beep22"
}
"Tiago M. Neves": {
"lang": ["Portuguese"],
"url": "https://github.com/tiagomneves-pt"
}
}

export default credits;
export default credits;
4 changes: 2 additions & 2 deletions src/lang/eng.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default {
},
time: {
months: {
long: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "Noemvber", "December"],
long: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
short: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
},
days: {
Expand All @@ -173,4 +173,4 @@ export default {
theme: "Theme"
}
}
}
}
6 changes: 4 additions & 2 deletions src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import japanesse from "./jap";
import arab from "./arb";
import german from "./ger";
import french from "./fre";

// New languages here
import portuguese from "./por"

export const langs = [english, spanish, japanesse, arab, german, french /*New languages here*/];
export const langs = [english, spanish, japanesse, arab, german, french, portuguese /*New languages here*/];
export const names = langs.map(lang => lang.names.long);
export const data = function() {
let _data = {get(lang, path) {return query(this[lang], path);}};
Expand All @@ -29,4 +31,4 @@ export const data = function() {

let lang;
export function get_lang() {return lang;}
export function set_lang(_lang) {lang = _lang;}
export function set_lang(_lang) {lang = _lang;}
176 changes: 176 additions & 0 deletions src/lang/por.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
/**
* @license Shikai
* eng.js
*
* Copyright (c) 2023, TheWisker.
*
* This source code is licensed under the GNU license found in the
* LICENSE file in the root directory of this source tree.
*/

export default {
names: {
short: "por",
long: "portuguese"
},
data: {
demo: {
hostname: "hostname",
notifications: {
info: "Notificação de informação!",
success: "Notificação de sucesso!",
warning: "Notificação de aviso!",
error: "Notificação de erro"
},
hint: "Dica:",
hints: [
"A palavra-passe é 'password'!",
"Passe o cursor pelo canto superior esquerdo",
"Clique na imagem de fundo para alterá-la",
"Feche o menu das definições para guardar as alterações",
"Após 60 segundos de inatividade, o tema fica inativo",
"Faça duplo clique nos controlos de arraste para regressar à posição padrão"
]
},
commands: {
names: {
sleep: "suspender",
reboot: "reiniciar",
shutdown: "desligar",
hibernate: "hibernar"
},
messages: {
sleep: "A fazer uma sesta...",
reboot: "A reiniciar...",
shutdown: "A encerrar...",
hibernate: "A hibernar...",
unavailable: "Acção não disponível!"
}
},
settings: {
behaviour: {
name: "Comportamento",
sections: {
lang: {
name: "Idioma"
},
general: {
name: "Geral",
options: {
logo: "Logótipo activado",
hostname: "Hostname activado",
avatar: "Avatar activado",
username: "Nome de utilizador activado",
session: "Sessão activada"
}
},
commands: {
name: "Comandos",
options: {
shutdown: "Encerrar activado",
reboot: "Reiniciar activado",
sleep: "Suspender activado",
hibernate: "Hibernar activado"
}
},
time: {
name: "Relógio e Data",
options: {
clock: {
enabled: "Relógio activado",
format: "Formato do relógio"
},
date: {
enabled: "Data activada",
format: "Formato da data"
}
}
},
misc: {
name: "Miscelânea",
options: {
idle: {
enabled: "Esconder aquando inativo ",
value: "Tempo até ficar inativo (s)"
},
evoker: "Botão das configurações invisível"
}
}
}
},
style: {
name: "Estilo",
sections: {
main: {
name: "Principal",
options: {
avatar: "Cor do avatar",
text: "Cor do texto",
sidebar: "Cor da barra lateral",
userbar_top: "Cor da barra superior do utilizador",
userbar_bottom: "Cor da barra inferior do utilizador",
session_text: "Cor do texto da sessão",
session_background: "Cor de fundo da sessão",
password_text: "Cor do texto da palavra-passe",
password_background: "Cor de fundo da palavra-passe",
icon_background: "Cor de fundo do ícone",
icon_foreground: "Cor de primeiro plano do ícone",
}
},
misc: {
name: "Miscelânea",
options: {
vertical: "Contornos superiores e inferiores da palavra-passe",
horizontal: "Contornos à esquerda e à direita da palavra-passe",
password: "Raio do contorno da palavra-passe",
session: "Raio do contorno da sessão",
caret: {
left: "Símbolo decorativo esquerdo da palavra-passe",
right: "Símbolo decorativo direito da palavra-passe"
}
}
}
}
},
themes: {
name: "Temas",
current: {
name: "Actual",
option: "Nome"
},
saved: "Guardado"
}
},
notifications: {
logged_in: "Iniciou sessão como",
wrong_password: "Palavra-passe errada!",
delete_local: "Armazenamento local eliminado!",
delete_themes: "Temas eliminados!",
theme_activated: "activado!",
theme_removed: "apagado!",
theme_added: "adicionado!"
},
buttons: {
switch: "Modificar",
confirmation: "Isto não pode ser desfeito!",
delete_local: "Apagar armazenamento local",
delete_themes: "Apagar Temas",
remove: "Remover",
save: "Guardar",
use: "Utilizar"
},
time: {
months: {
long: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
short: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"]
},
days: {
long: ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"],
short: ["Sun", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"]
}
},
misc: {
theme: "Tema"
}
}
}