Merge pull request #464 from solstag/master

Bunch of translation work
This commit is contained in:
RedMatrix 2014-05-21 19:24:24 +10:00
commit 3e75f9cbb1
10 changed files with 6339 additions and 6109 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ include/jquery-1.4.2.min.js
home.html
addon
*~
.*.swp
compiled/
custom/
/store/

View File

@ -131,12 +131,12 @@ class Item extends BaseObject {
} else {
$like_list_part = '';
}
$like_button_label = ((x($alike,$item['mid'])) && ($alike[$item['mid']] < 2 ) ? t('Like') : t('Likes'));
$like_button_label = tt('Like','Likes',$like_count,'noun');
if (feature_enabled($conv->get_profile_owner(),'dislike')) {
$dislike_count = ((x($dlike,$item['mid'])) ? $dlike[$item['mid']] : '');
$dislike_list = ((x($dlike,$item['mid'])) ? $dlike[$item['mid'] . '-l'] : '');
$dislike_button_label = ((x($dlike,$item['mid'])) && ($dlike[$item['mid']] < 2) ? t('Dislike') : t('Dislikes'));
$dislike_button_label = tt('Dislike','Dislikes',$dislike_count,'noun');
if (count($dislike_list) > MAX_LIKERS) {
$dislike_list_part = array_slice($dislike_list, 0, MAX_LIKERS);
array_push($dislike_list_part, '<a href="#" data-toggle="modal" data-target="#dislikeModal-' . $this->get_id() . '"><b>' . t('View all') . '</b></a>');
@ -276,8 +276,8 @@ class Item extends BaseObject {
'like_list' => $like_list,
'like_list_part' => $like_list_part,
'like_button_label' => $like_button_label,
'like_modal_title' => t('Likes'),
'dislike_modal_title' => t('Dislikes'),
'like_modal_title' => t('Likes','noun'),
'dislike_modal_title' => t('Dislikes','noun'),
'dislike_count' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike_count : ''),
'dislike_list' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike_list : ''),
'dislike_list_part' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike_list_part : ''),

View File

@ -153,19 +153,21 @@ function load_translation_table($lang, $install = false) {
function t($s,$ctx = '') {
global $a;
if(x($a->strings,$s)) {
$t = $a->strings[$s];
$cs = $ctx?"__ctx:".$ctx."__ ".$s:$s;
if(x($a->strings,$cs)) {
$t = $a->strings[$cs];
return is_array($t) ? $t[0] : $t;
}
return $s;
}
function tt($singular, $plural, $count){
function tt($singular, $plural, $count, $ctx = ''){
$a = get_app();
if(x($a->strings,$singular)) {
$t = $a->strings[$singular];
$cs = $ctx?"__ctx:".$ctx."__ ".$singular:$singular;
if(x($a->strings,$cs)) {
$t = $a->strings[$cs];
$f = 'string_plural_select_' . str_replace('-', '_', $a->language);
if(! function_exists($f))
$f = 'string_plural_select_default';

File diff suppressed because it is too large Load Diff

View File

@ -30,6 +30,7 @@ function po2php_run($argv, $argc) {
$infile = file($pofile);
$k="";
$v="";
$ctx="";
$arr = False;
$ink = False;
$inv = False;
@ -92,23 +93,27 @@ function po2php_run($argv, $argc) {
if ($k!="") $out .= $arr?");\n":";\n";
$arr=False;
$k = str_replace("msgid ","",$l);
if ($k != '""' ) {
$k = trim($k,"\"\r\n");
} else {
$k = "";
}
$k = trim($k,"\"\r\n");
$k = $ctx.$k;
// echo $ctx ? $ctx."\nX\n":"";
$k = preg_replace_callback($escape_s_exp,'escape_s',$k);
$ctx = "";
$ink = True;
}
if ($inv && substr($l,0,6)!="msgstr") {
if ($inv && substr($l,0,6)!="msgstr" && substr($l,0,7)!="msgctxt") {
$v .= trim($l,"\"\r\n");
$v = preg_replace_callback($escape_s_exp,'escape_s',$v);
//$out .= '$a->strings['.$k.'] = ';
}
if (substr($l,0,7)=="msgctxt") {
$ctx = str_replace("msgctxt ","",$l);
$ctx = trim($ctx,"\"\r\n");
$ctx = "__ctx:".$ctx."__ ";
$ctx = preg_replace_callback($escape_s_exp,'escape_s',$ctx);
}
}
if ($inv) { $inv = False; $out .= '"'.$v.'"'; }

View File

@ -44,7 +44,7 @@ OPTS=
# fi
#fi
KEYWORDS="-k -kt:1 -kt:1,2c,2t -ktt:1,2"
KEYWORDS="-k -kt:1 -kt:1,2c,2t -ktt:1,2 -ktt:1,2,4c,4t"
echo "extract strings to $OUTFILE.."

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ Os detalhes de autenticação são os seguintes:
Localização do site: {{$siteurl}}
Nome: {{$email}}
Senha: (the password which was provided during registration)
Senha: (a senha escolhida ao registrar a conta)
Se esta conta foi criada sem seu conhecimento e não é desejada, você pode
visitar o site e reiniciar a senha. Isso permitirá que você a remova a partir

View File

@ -7,6 +7,12 @@ function string_plural_select_pt_br($n){
;
$a->strings["Cannot locate DNS info for database server '%s'"] = "Não foi possível localizar a informação de DNS para o servidor de banco de dados '%s'";
$a->strings["Profile Photos"] = "Fotos do perfil";
$a->strings["Matrix"] = "Matriz";
$a->strings["Channel Home"] = "Página inicial do canal";
$a->strings["Profile"] = "Perfil";
$a->strings["Photos"] = "Fotos";
$a->strings["Events"] = "Eventos";
$a->strings["Directory"] = "Diretório";
$a->strings["Embedded content"] = "Conteúdo incorporado";
$a->strings["Embedding disabled"] = "A incorporação está desabilitada";
$a->strings["created a new post"] = "criou uma nova publicação";
@ -23,49 +29,6 @@ $a->strings["Page Link"] = "Link da página";
$a->strings["Title"] = "Título";
$a->strings["Created"] = "Criado";
$a->strings["Edited"] = "Editado";
$a->strings["Private Message"] = "Mensagem privada";
$a->strings["Delete"] = "Excluir";
$a->strings["Select"] = "Selecionar";
$a->strings["save to folder"] = "salvar na pasta";
$a->strings["add star"] = "destacar";
$a->strings["remove star"] = "remover destaque";
$a->strings["toggle star status"] = "alternar destaque";
$a->strings["starred"] = "destacado";
$a->strings["Message is verified"] = "A mensagem foi verificada";
$a->strings["add tag"] = "adicionar etiqueta";
$a->strings["I like this (toggle)"] = "Eu gostei disso (alterna)";
$a->strings["like"] = "gostei";
$a->strings["I don't like this (toggle)"] = "Eu não gostei disso (alterna)";
$a->strings["dislike"] = "não gostei";
$a->strings["Share this"] = "Compartilhar isso";
$a->strings["share"] = "compartilhar";
$a->strings["View %s's profile - %s"] = "Ver o perfil de %s - %s";
$a->strings["to"] = "para";
$a->strings["via"] = "via";
$a->strings["Wall-to-Wall"] = "Mural-para-mural";
$a->strings["via Wall-To-Wall:"] = "via Mural-para-mural";
$a->strings[" from %s"] = "de %s";
$a->strings["last edited: %s"] = "última edição: %s";
$a->strings["Expires: %s"] = "Expira: %s";
$a->strings["Bookmark Links"] = "Guardar links";
$a->strings["Please wait"] = "Por favor, espere";
$a->strings["%d comment"] = array(
0 => "%d comentário",
1 => "%d comentários",
);
$a->strings["show more"] = "exibir mais";
$a->strings["This is you"] = "Este(a) é você";
$a->strings["Comment"] = "Comentar";
$a->strings["Submit"] = "Enviar";
$a->strings["Bold"] = "Negrito";
$a->strings["Italic"] = "Itálico";
$a->strings["Underline"] = "Sublinhado";
$a->strings["Quote"] = "Citação";
$a->strings["Code"] = "Código";
$a->strings["Image"] = "Imagem";
$a->strings["Link"] = "Link";
$a->strings["Video"] = "Vídeo";
$a->strings["Encrypt text"] = "Encriptar texto";
$a->strings["Can view my \"public\" stream and posts"] = "Pode ver meus fluxo e publicações \"públicos\"";
$a->strings["Can view my \"public\" channel profile"] = "Pode ver o perfil \"público\" do meu canal";
$a->strings["Can view my \"public\" photo albums"] = "Pode ver meus álbuns de fotos \"públicos\"";
@ -144,6 +107,53 @@ $a->strings["QR code"] = "código QR";
$a->strings["%1\$s wrote the following %2\$s %3\$s"] = "%1\$s escreveu a seguinte %2\$s %3\$s";
$a->strings["post"] = "publicação";
$a->strings["$1 wrote:"] = "$1 escreveu:";
$a->strings["Private Message"] = "Mensagem privada";
$a->strings["Delete"] = "Excluir";
$a->strings["Select"] = "Selecionar";
$a->strings["save to folder"] = "salvar na pasta";
$a->strings["Like"] = "Gostou";
$a->strings["Likes"] = "Gosta de";
$a->strings["Dislike"] = "Desgostou";
$a->strings["Dislikes"] = "Não gosta de";
$a->strings["add star"] = "destacar";
$a->strings["remove star"] = "remover destaque";
$a->strings["toggle star status"] = "alternar destaque";
$a->strings["starred"] = "destacado";
$a->strings["Message is verified"] = "A mensagem foi verificada";
$a->strings["add tag"] = "adicionar etiqueta";
$a->strings["I like this (toggle)"] = "Eu gostei disso (alterna)";
$a->strings["like"] = "gostei";
$a->strings["I don't like this (toggle)"] = "Eu não gostei disso (alterna)";
$a->strings["dislike"] = "não gostei";
$a->strings["Share this"] = "Compartilhar isso";
$a->strings["share"] = "compartilhar";
$a->strings["View %s's profile - %s"] = "Ver o perfil de %s - %s";
$a->strings["to"] = "para";
$a->strings["via"] = "via";
$a->strings["Wall-to-Wall"] = "Mural-para-mural";
$a->strings["via Wall-To-Wall:"] = "via Mural-para-mural";
$a->strings[" from %s"] = "de %s";
$a->strings["last edited: %s"] = "última edição: %s";
$a->strings["Expires: %s"] = "Expira: %s";
$a->strings["Bookmark Links"] = "Guardar links";
$a->strings["Please wait"] = "Por favor, espere";
$a->strings["%d comment"] = array(
0 => "%d comentário",
1 => "%d comentários",
);
$a->strings["show more"] = "exibir mais";
$a->strings["This is you"] = "Este(a) é você";
$a->strings["Comment"] = "Comentar";
$a->strings["Submit"] = "Enviar";
$a->strings["Bold"] = "Negrito";
$a->strings["Italic"] = "Itálico";
$a->strings["Underline"] = "Sublinhado";
$a->strings["Quote"] = "Citação";
$a->strings["Code"] = "Código";
$a->strings["Image"] = "Imagem";
$a->strings["Link"] = "Link";
$a->strings["Video"] = "Vídeo";
$a->strings["Encrypt text"] = "Encriptar texto";
$a->strings["%1\$s's bookmarks"] = "Links guardados de %1\$s";
$a->strings["Missing room name"] = "Nome da sala vazio";
$a->strings["Duplicate room name"] = "Nome da sala duplicado";
@ -380,11 +390,9 @@ $a->strings["Channel"] = "Canal";
$a->strings["Status Messages and Posts"] = "Mensagens de status e publicações";
$a->strings["About"] = "Sobre";
$a->strings["Profile Details"] = "Detalhes do perfil";
$a->strings["Photos"] = "Fotos";
$a->strings["Files"] = "Arquivos";
$a->strings["Files and Storage"] = "Arquivos e armazenamento";
$a->strings["Chatrooms"] = "Salas de bate-papo";
$a->strings["Events"] = "Eventos";
$a->strings["Events and Calendar"] = "Eventos e calendário";
$a->strings["Bookmarks"] = "Links guardados";
$a->strings["Saved Bookmarks"] = "Links guardados";
@ -514,9 +522,6 @@ $a->strings["Channel was deleted and no longer exists."] = "O canal foi deletado
$a->strings["Channel discovery failed."] = "A descoberta de canais falhou.";
$a->strings["local account not found."] = "a conta local não foi encontrada.";
$a->strings["Cannot connect to yourself."] = "Não é possível conectar-se consigo mesmo.";
$a->strings["Invalid data packet"] = "Pacote de dados inválido";
$a->strings["Unable to verify channel signature"] = "Não foi possível verificar a assinatura do canal";
$a->strings["Unable to verify site signature for %s"] = "Não foi possível verificar a assinatura do site para %s";
$a->strings["A deleted group with this name was revived. Existing item permissions <strong>may</strong> apply to this group and any future members. If this is not what you intended, please create another group with a different name."] = "Um grupo com esse nome, anteriormente excluído, foi reativado. Permissões de itens já existentes <strong>poderão</strong> ser aplicadas a esse grupo e qualquer futuros membros. Se não é essa a sua intenção, favor criar outro grupo com um nome diferente.";
$a->strings["Default privacy group for new contacts"] = "Grupo de privacidade padrão para novos contatos";
$a->strings["All Channels"] = "Todos os canais";
@ -558,7 +563,6 @@ $a->strings["Birthdays this week:"] = "Aniversários nesta semana:";
$a->strings["[No description]"] = "[Sem descrição]";
$a->strings["Event Reminders"] = "Lembretes de eventos";
$a->strings["Events this week:"] = "Eventos nesta semana:";
$a->strings["Profile"] = "Perfil";
$a->strings["Full Name:"] = "Nome completo:";
$a->strings["j F, Y"] = "j \\d\\e F, Y";
$a->strings["j F"] = "j \\d\\e F";
@ -601,6 +605,7 @@ $a->strings["everybody"] = "todos";
$a->strings["Secret Passphrase"] = "Frase secreta";
$a->strings["Passphrase hint"] = "Dica da frase secreta";
$a->strings["Notice: Permissions have changed but have not yet been submitted."] = "Atenção: permissões foram modificadas mas ainda não foram enviadas.";
$a->strings["close all"] = "fechar tudo";
$a->strings["timeago.prefixAgo"] = "timeago.prefixAgo";
$a->strings["timeago.prefixFromNow"] = "timeago.prefixFromNow";
$a->strings["ago"] = "atrás";
@ -648,12 +653,9 @@ $a->strings["Help and documentation"] = "Ajuda e documentação";
$a->strings["Apps"] = "Aplicações";
$a->strings["Addon applications, utilities, games"] = "Aplicações adicionais, utilitários, jogos";
$a->strings["Search site content"] = "Pesquisar o conteúdo do site";
$a->strings["Directory"] = "Diretório";
$a->strings["Channel Locator"] = "Localizador de canais";
$a->strings["Matrix"] = "Matriz";
$a->strings["Your matrix"] = "Sua matriz";
$a->strings["Mark all matrix notifications seen"] = "Marcar todas as notificações da matriz como vistas";
$a->strings["Channel Home"] = "Página inicial do canal";
$a->strings["Channel home"] = "Página inicial do canal";
$a->strings["Mark all channel notifications seen"] = "Marcar todas as notificações de canais como vistas";
$a->strings["Connections"] = "Conexões";
@ -742,7 +744,13 @@ $a->strings["It's complicated"] = "É complicado";
$a->strings["Don't care"] = "Não importa";
$a->strings["Ask me"] = "Pergunte-me";
$a->strings["Edit File properties"] = "Editar propriedades do arquivo";
$a->strings["Invalid data packet"] = "Pacote de dados inválido";
$a->strings["Unable to verify channel signature"] = "Não foi possível verificar a assinatura do canal";
$a->strings["Unable to verify site signature for %s"] = "Não foi possível verificar a assinatura do site para %s";
$a->strings["The form security token was not correct. This probably happened because the form has been opened for too long (>3 hours) before submitting it."] = "O token de segurança do formulário não estava correto. Isso provavelmente aconteceu porque o formulário ficou aberto por muito tempo (>3 horas) antes da sua submissão.";
$a->strings["App Category"] = "Categoria de aplicativos";
$a->strings["System"] = "Sistema";
$a->strings["Featured"] = "Destacado";
$a->strings["Ignore/Hide"] = "Ignorar/Ocultar";
$a->strings["Suggestions"] = "Sugestões";
$a->strings["See more..."] = "Veja mais...";
@ -971,8 +979,6 @@ $a->strings["Please login to continue."] = "Por favor, autentique-se para contin
$a->strings["Do you want to authorize this application to access your posts and contacts, and/or create new posts for you?"] = "Deseja autorizar esta aplicação a acessar suas publicações e contatos e/ou criar novas publicações para você?";
$a->strings["Remote authentication blocked. You are logged into this site locally. Please logout and retry."] = "Autenticação remota bloqueada. Você está autenticado neste site localmente. Por favor, saia e tente novamente.";
$a->strings["Welcome %s. Remote authentication successful."] = "Bem vindo %s. Autenticação remota realizada com sucesso.";
$a->strings["No installed applications."] = "Não existe nenhuma aplicação instalada.";
$a->strings["Applications"] = "Aplicações";
$a->strings["Item not available."] = "O item não está disponível.";
$a->strings["Fetching URL returns error: %1\$s"] = "Carregar o URL retorna o erro: %1\$s";
$a->strings["Invalid item."] = "Item inválido.";
@ -1006,8 +1012,6 @@ $a->strings["Profile unavailable to clone."] = "O perfil não está disponível
$a->strings["Profile Name is required."] = "É obrigatório informar o nome do perfil.";
$a->strings["Marital Status"] = "Estado civil";
$a->strings["Romantic Partner"] = "Parceiro/a romântico/a";
$a->strings["Likes"] = "Gosta de";
$a->strings["Dislikes"] = "Não gosta de";
$a->strings["Work/Employment"] = "Trabalho/Emprego";
$a->strings["Religion"] = "Religião";
$a->strings["Political Views"] = "Posição política";
@ -1082,6 +1086,7 @@ $a->strings["Description"] = "Descrição";
$a->strings["Or enter new bookmark folder name"] = "Ou digite o nome para uma nova pasta de links";
$a->strings["Room not found"] = "Sala não encontrada";
$a->strings["Leave Room"] = "Sair da sala";
$a->strings["Delete This Room"] = "Deletar esta sala";
$a->strings["I am away right now"] = "Eu estou ausente no momento";
$a->strings["I am online"] = "Eu estou online";
$a->strings["Bookmark this room"] = "Guarde esta sala";
@ -1430,11 +1435,11 @@ $a->strings["view/tpl/smarty3 is writable"] = "view/tpl/smarty3 tem permissão d
$a->strings["Red uses the store directory to save uploaded files. The web server needs to have write access to the store directory under the Red top level folder"] = "A Red usa o diretório store para salvar arquivos carregados. O servidor web necessita de permissão de escrita no diretório store dentro do diretório raiz da Red";
$a->strings["store is writable"] = "store tem permissão de escrita";
$a->strings["SSL certificate cannot be validated. Fix certificate or disable https access to this site."] = "Não foi possível validar o certificado SSL. Corrija o certificado ou desabilite o acesso via https ao site.";
$a->strings["If you use https access, you MUST use a certification instance known by all internet browsers. You MUST NOT use self-signed certificates!"] = "Se você utiliza acesso https, você DEVE usar uma instância de certificação reconhecida por todos os navegadores de internet. Você NÃO DEVE usar certificados assinados por você mesmo!";
$a->strings["This restriction is incorporated because public posts from you may for example contain references to images on your own hub. If your"] = "Essa restrição é incorporada porque publicações públicas de você podem por exemplo conter referências a imagens no seu próprio hub. Se seu";
$a->strings["certificate is not known by the internet browser of users they get a warning message complaining about some security issues. Although"] = "certificado não é conhecido pelo navegador de internet do usuário eles receberão um alerta reclamando de alguns problemas de segurança. Apesar";
$a->strings["these complains are not the real truth - there are no security issues with your encryption! - the users may be confused, nerved or even"] = "dessas reclamações não serem a real verdade - não há problemas de segurança com sua encriptação! - os usuários podem ser confundidos, enervados ou pior";
$a->strings["worse may become scared about redmatrix having security issues. Use one of the free certification instances!"] = "ainda podem ficar com medo da redmatrix ter problemas de segurança. Use uma das instâncias certificadoras gratuitas!";
$a->strings["If you have https access to your website or allow connections to TCP port 443 (the https: port), you MUST use a browser-valid certificate. You MUST NOT use self-signed certificates!"] = "Se você oferece acesso https ao seu website ou permite conexões na porta TCP 443 (a porta https:), você DEVE usar um certificado reconhecido pelos navegadores. Você NÃO DEVE usar certificados assinados por você mesmo!";
$a->strings["This restriction is incorporated because public posts from you may for example contain references to images on your own hub."] = "Essa restrição é incorporada porque publicações públicas suas podem, por exemplo, conter referências a imagens no seu próprio hub.";
$a->strings["If your certificate is not recognised, members of other sites (who may themselves have valid certificates) will get a warning message on their own site complaining about security issues."] = "Se seu certificado não for reconhecido, membros de outros sites (que podem ter certificados válidos) receberão uma mensagem de aviso nos seus próprios sites reclamando de problemas de segurança.";
$a->strings["This can cause usability issues elsewhere (not just on your own site) so we must insist on this requirement."] = "Isso pode causar problemas de usabilidade (não só no seu site) então nós precisamos insistir nesse requisito.";
$a->strings["Providers are available that issue free certificates which are browser-valid."] = "Existem provedores que disponibilizam gratuitamente certificados reconhecidos por navegadores.";
$a->strings["SSL certificate validation"] = "Validação do certificado SSL";
$a->strings["Url rewrite in .htaccess is not working. Check your server configuration."] = "A reescrita de URLs não está funcionando no .htaccess. Verifique as configurações do servidor.";
$a->strings["Url rewrite is working"] = "A reescrita de URLs está funcionando";
@ -1779,7 +1784,7 @@ $a->strings["Set the background image"] = "Definir a imagem do pano de fundo";
$a->strings["Set the background colour of items"] = "Definir a cor de fundo dos items";
$a->strings["Set the background colour of comments"] = "Definir a cor de fundo dos comentários";
$a->strings["Set the border colour of comments"] = "Definir a cor da borda dos comentários";
$a->strings["Set the opacity of items"] = "Definir a opacidade de items";
$a->strings["Set the indent for comments"] = "Definir a indentação de comentários";
$a->strings["Set the basic colour for item icons"] = "Definir a cor básica para ícones de itens";
$a->strings["Set the hover colour for item icons"] = "Definir a cor para ícones de itens quando que o mouse está sobre eles";
$a->strings["Set font-size for the entire application"] = "Definir o tamanho da fonte para a aplicação como um todo";