From f2a2f8dfa62d88cd3ff08cb15f5b8302e0e3db96 Mon Sep 17 00:00:00 2001 From: Mindaugas Kavaliauskas Date: Sat, 1 Dec 2007 18:31:17 +0000 Subject: [PATCH] 2007-12-01 20:30 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + harbour/source/lang/msgltwin.c * harbour/source/lang/Makefile * harbour/common.mak + message file for Lithuanian language --- harbour/ChangeLog | 6 + harbour/common.mak | 1 + harbour/source/lang/Makefile | 1 + harbour/source/lang/msgltwin.c | 220 +++++++++++++++++++++++++++++++++ 4 files changed, 228 insertions(+) create mode 100644 harbour/source/lang/msgltwin.c diff --git a/harbour/ChangeLog b/harbour/ChangeLog index ba03f5ea6b..3b9125200c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-12-01 20:30 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + + harbour/source/lang/msgltwin.c + * harbour/source/lang/Makefile + * harbour/common.mak + + message file for Lithuanian language + 2007-12-01 15:27 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl) * harbour/source/rtl/hbinet.c ! Fixed compilation under Cygwin environment diff --git a/harbour/common.mak b/harbour/common.mak index 23338f557c..46f3859b43 100644 --- a/harbour/common.mak +++ b/harbour/common.mak @@ -704,6 +704,7 @@ LANG_LIB_OBJS = \ $(OBJ_DIR)\msgis850$(OBJEXT) \ $(OBJ_DIR)\msgit$(OBJEXT) \ $(OBJ_DIR)\msgko$(OBJEXT) \ + $(OBJ_DIR)\msgltwin$(OBJEXT) \ $(OBJ_DIR)\msgnl$(OBJEXT) \ $(OBJ_DIR)\msgpl852$(OBJEXT) \ $(OBJ_DIR)\msgpliso$(OBJEXT) \ diff --git a/harbour/source/lang/Makefile b/harbour/source/lang/Makefile index 5f7fb76876..81c1860891 100644 --- a/harbour/source/lang/Makefile +++ b/harbour/source/lang/Makefile @@ -35,6 +35,7 @@ C_SOURCES=\ msgis850.c \ msgit.c \ msgko.c \ + msgltwin.c \ msgnl.c \ msgpl852.c \ msgpliso.c \ diff --git a/harbour/source/lang/msgltwin.c b/harbour/source/lang/msgltwin.c new file mode 100644 index 0000000000..7806c94e92 --- /dev/null +++ b/harbour/source/lang/msgltwin.c @@ -0,0 +1,220 @@ +/* + * $Id: msgltwin.c,v 1.5 2005/06/10 22:51:37 ronpinkas Exp $ + */ + +/* + * Harbour Project source code: + * Language Support Module ( LT ) + * + * Copyright 2003 Mindaugas Kavaliauskas + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +/* Language name: Lithuanian */ +/* ISO language code (2 chars): LT */ +/* Codepage: Windows-1257 */ + +#include "hbapilng.h" + +static HB_LANG s_lang = +{ + { + /* Identification */ + + "LT", /* ID */ + "Lithuanian", /* Name (in English) */ + "Lietuvių", /* Name (in native language) */ + "LT", /* RFC ID */ + "Windows-1257", /* Codepage */ + "$Revision: 1.5 $ $Date: 2005/06/10 22:51:37 $", /* Version */ + + /* Month names */ + + "Sausis", + "Vasaris", + "Kovas", + "Balandis", + "Kovas", + "Birželis", + "Liepa", + "Rugpjūtis", + "Rugsėjis", + "Spalis", + "Lapkritis", + "Gruodis", + + /* Day names */ + + "Sekmadienis", + "Pirmadienis", + "Antradienis", + "Trečiadienis", + "Ketvirtadienis", + "Penktadienis", + "Šeštadienis", + + /* CA-Cl*pper compatible natmsg items */ + + "Database Files # Records Last Update Size", + "Do you want more samples?", + "Page No.", + "** Subtotal **", + "* Subsubtotal *", + "*** Total ***", + "Ins", + " ", + "Invalid date", + "Range: ", + " - ", + "Y/N", + "INVALID EXPRESSION", + + /* Error description names */ + + "Unknown error", + "Argument error", + "Bound error", + "String overflow", + "Numeric overflow", + "Zero divisor", + "Numeric error", + "Syntax error", + "Operation too complex", + "", + "", + "Memory low", + "Undefined function", + "No exported method", + "Variable does not exist", + "Alias does not exist", + "No exported variable", + "Illegal characters in alias", + "Alias already in use", + "", + "Create error", + "Open error", + "Close error", + "Read error", + "Write error", + "Print error", + "", + "", + "", + "", + "Operation not supported", + "Limit exceeded", + "Corruption detected", + "Data type error", + "Data width error", + "Workarea not in use", + "Workarea not indexed", + "Exclusive required", + "Lock required", + "Write not allowed", + "Append lock failed", + "Lock Failure", + "", + "", + "", + "", + "array access", + "array assign", + "array dimension", + "not an array", + "conditional", + + /* Internal error names */ + + "Unrecoverable error %lu: ", + "Error recovery failure", + "No ERRORBLOCK() for error", + "Too many recursive error handler calls", + "RDD invalid or failed to load", + "Invalid method type from %s", + "hb_xgrab can't allocate memory", + "hb_xrealloc called with a NULL pointer", + "hb_xrealloc called with an invalid pointer", + "hb_xrealloc can't reallocate memory", + "hb_xfree called with an invalid pointer", + "hb_xfree called with a NULL pointer", + "Can\'t locate the starting procedure: \'%s\'", + "No starting procedure", + "Unsupported VM opcode", + "Symbol item expected from %s", + "Invalid symbol type for self from %s", + "Codeblock expected from %s", + "Incorrect item type on the stack trying to pop from %s", + "Stack underflow", + "An item was going to be copied to itself from %s", + "Invalid symbol item passed as memvar %s", + "Memory buffer overflow", + "hb_xgrab requested to allocate zero bytes", + "hb_xrealloc requested to resize to zero bytes", + "hb_xalloc requested to allocate zero bytes", + + /* Texts */ + + "YYYY-MM-DD", + "T", + "N" + } +}; + +HB_LANG_ANNOUNCE( LT ); + +HB_CALL_ON_STARTUP_BEGIN( hb_lang_Init_LT ) + hb_langRegister( &s_lang ); +HB_CALL_ON_STARTUP_END( hb_lang_Init_LT ) + +#if defined(HB_PRAGMA_STARTUP) + #pragma startup hb_lang_Init_LT +#elif defined(HB_MSC_STARTUP) + #if _MSC_VER >= 1010 + #pragma data_seg( ".CRT$XIY" ) + #pragma comment( linker, "/Merge:.CRT=.data" ) + #else + #pragma data_seg( "XIY" ) + #endif + static HB_$INITSYM hb_vm_auto_hb_lang_Init_LT = hb_lang_Init_LT; + #pragma data_seg() +#endif