From f9d38b5ef5944e94549b25ef4d8577092023ba76 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 3 Apr 2013 03:16:49 +0200 Subject: [PATCH] 2013-04-03 03:15 UTC+0200 Viktor Szakats (harbour syenar.net) * bin/check.hb ! fix to filename filter (needs large cleanup) * config/lang.hb * include/hblang.hbx * src/lang/Makefile * src/rtl/langcomp.prg + src/lang/l_pt_br.c + added 'pt_br' language --- ChangeLog.txt | 11 ++++ bin/check.hb | 3 +- config/lang.hb | 5 +- include/hblang.hbx | 1 + src/lang/Makefile | 1 + src/lang/l_pt_br.c | 150 +++++++++++++++++++++++++++++++++++++++++++ src/rtl/langcomp.prg | 2 +- 7 files changed, 168 insertions(+), 5 deletions(-) create mode 100644 src/lang/l_pt_br.c diff --git a/ChangeLog.txt b/ChangeLog.txt index 7880bd255b..c3d3d953d4 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,17 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-04-03 03:15 UTC+0200 Viktor Szakats (harbour syenar.net) + * bin/check.hb + ! fix to filename filter (needs large cleanup) + + * config/lang.hb + * include/hblang.hbx + * src/lang/Makefile + * src/rtl/langcomp.prg + + src/lang/l_pt_br.c + + added 'pt_br' language + 2013-04-03 03:02 UTC+0200 Viktor Szakats (harbour syenar.net) * config/lang.hb + enabled pulling all translation for core-lang diff --git a/bin/check.hb b/bin/check.hb index 01d0b78e33..6184a8feed 100644 --- a/bin/check.hb +++ b/bin/check.hb @@ -400,7 +400,8 @@ STATIC FUNCTION FNameExc( cName, aList ) LOCAL tmp, tmp1 FOR EACH tmp IN aList - IF !( Left( tmp, 1 ) == "!" ) .AND. hb_FileMatch( cName, hb_DirSepToOS( tmp ) ) + IF !( Left( tmp, 1 ) == "!" ) .AND. ; + ( hb_FileMatch( cName, hb_DirSepToOS( tmp ) ) .OR. hb_FileMatch( hb_FNameNameExt( cName ), hb_DirSepToOS( tmp ) ) ) FOR EACH tmp1 IN aList IF Left( tmp1, 1 ) == "!" .AND. hb_FileMatch( cName, hb_DirSepToOS( SubStr( tmp1, 2 ) ) ) RETURN .F. diff --git a/config/lang.hb b/config/lang.hb index 5f89b4b483..c5d6110bcd 100644 --- a/config/lang.hb +++ b/config/lang.hb @@ -41,9 +41,8 @@ STATIC sc_hLangMapping := { ; "zh_CN.GB2312" => "zh_sim", ; "sr" => "sr_cyr", ; "sr@latin" => "sr_lat", ; - "fr_FR" => "fr", ; - "es_ES" => "es", ; - "pt_BR" => "pt" } + "fr_FR" => "fr", ; /* TODO: Synchronize Harbour with Transifex */ + "es_ES" => "es" } /* TODO: Synchronize Harbour with Transifex */ PROCEDURE Main( cCommand, cMain, ... ) diff --git a/include/hblang.hbx b/include/hblang.hbx index b43d0a0128..50f85f6463 100644 --- a/include/hblang.hbx +++ b/include/hblang.hbx @@ -53,6 +53,7 @@ DYNAMIC HB_LANG_LT DYNAMIC HB_LANG_NL DYNAMIC HB_LANG_PL DYNAMIC HB_LANG_PT +DYNAMIC HB_LANG_PT_BR DYNAMIC HB_LANG_RO DYNAMIC HB_LANG_RU DYNAMIC HB_LANG_SK diff --git a/src/lang/Makefile b/src/lang/Makefile index 30c2566f1e..9a41c73111 100644 --- a/src/lang/Makefile +++ b/src/lang/Makefile @@ -25,6 +25,7 @@ C_SOURCES := \ l_nl.c \ l_pl.c \ l_pt.c \ + l_pt_br.c \ l_ro.c \ l_ru.c \ l_sk.c \ diff --git a/src/lang/l_pt_br.c b/src/lang/l_pt_br.c new file mode 100644 index 0000000000..a1f2f4afe7 --- /dev/null +++ b/src/lang/l_pt_br.c @@ -0,0 +1,150 @@ +/* Last Translator: SAMI */ + +#include "hbapilng.h" + +static HB_LANG s_lang = +{ + { + /* Identification */ + + "pt", + "Portuguese", + "Portugues", + "", + "UTF8", + "", + + /* Month names */ + + "Janeiro", + "Fevereiro", + "Março", + "Abril", + "Maio", + "Junho", + "Julho", + "Agosto", + "Setembro", + "Outubro", + "Novembro", + "Dezembro", + + /* Day names */ + + "Domingo", + "Segunda-feira", + "Terça-feira", + "Quarta-feira", + "Quinta-feira", + "Sexta-feira", + "Sábado", + + /* CA-Cl*pper compatible natmsg items */ + + "Banco de Dados # Registro Ult. Atuali. Tam.", + "Voce quer mais testes?", + "Pagina No.", + "** Subtotal **", + "* Subsubtotal *", + "*** Total ***", + "Ins", + " ", + "Data inválida", + "Faixa: ", + " - ", + "S/N", + "EXPRESSÃO INVALIDA", + + /* Error description names */ + + "Erro desconhecido", + "Erro nos parâmetros", + "Erro de limite", + "Overflow de string", + "Overflow numérico", + "Divisão por zero", + "Erro numérico", + "Erro de sintaxe", + "Operação muito complexa", + "", + "", + "Memória insuficiente", + "Função indefinida", + "Método não exportado", + "Variável não existe", + "Alias não existe", + "Nenhuma variável exportada", + "Nome de alias incorreto", + "Nome de alias duplicado", + "", + "Erro de criação", + "Erro de abertura", + "Erro ao fechar", + "Erro de leitura", + "Erro de escrita", + "Erro de impressão", + "", + "", + "", + "", + "Operação não suportada", + "Limite excedido", + "Detectado índice corrompido", + "Tipo incorreto de dado", + "Tamanho do dado muito longo", + "Workarea não está em uso", + "Workarea não indexada", + "Uso exclusivo requerido", + "Travamento requerido", + "Escrita não permitida", + "Falha no travamento do Append", + "Falha no travamento", + "", + "", + "", + "Falha Object destructor", + "acesso de array", + "matriz atribuir", + "dimensão da matriz", + "não é um array", + "condicional", + + /* Internal error names */ + + "Erro irrecuperável %d: ", + "Erro na recuperaçao do erro", + "ERRORBLOCK() para erro ausente", + "Muitas chamadas recursivas ao manipulador de erros", + "Falha ao carregar ou RDD inválido", + "Método de %s inválido", + "hb_xgrab nao pode alocar memória", + "hb_xrealloc chamado com ponteiro NULL", + "hb_xrealloc chamado com ponteiro inválido", + "hb_xrealloc nao pode realocar memória", + "hb_xfree chamado com ponteiro inválido", + "hb_xfree chamado com ponteiro NULL", + "Impossivel localizar procedure de inícializaçao: '%s'", + "Nao ha procedure de inicializaçao", + "VM opcode nao suportado", + "Item de símbolo esperado de %s", + "Tipo de símbolo inválido para self em %s", + "Codeblock esperado em %s", + "Tipo incorreto de item na pilha tentando executar um pop de %s", + "Stack underflow \"estouro negativo de pilha\"", + "Um item iria ser copiado para ele mesmo em %s", + "Symbol item inválido passado como memvar %s", + "Buffer overflow de memória", + "hb_xgrab requisitou para alocar zero bytes", + "hb_xrealloc requisitou para redimensiorar para zero byte", + "hb_xalloc requisitou para alocar zero bytes", + + /* Texts */ + + "DD/MM/YYYY", + "S", + "N" + } +}; + +#define HB_LANG_ID PT +#include "hbmsgreg.h" diff --git a/src/rtl/langcomp.prg b/src/rtl/langcomp.prg index bac57446a3..935d17f269 100644 --- a/src/rtl/langcomp.prg +++ b/src/rtl/langcomp.prg @@ -338,7 +338,7 @@ STATIC FUNCTION __LangStdToLangHb( cLangStd ) CASE "pa" ; EXIT CASE "pl-pl" CASE "pl" ; cLangHb := "pl" ; EXIT - CASE "pt-br" + CASE "pt-br" ; cLangHb := "pt_br" ; EXIT CASE "pt-pt" CASE "pt" ; cLangHb := "pt" ; EXIT CASE "ro-ro"