/*-------------------------------------------------------------------------
   UI string copy right information

   Copyright (C) 2006-2009. Lin, Rongrong <woody@palmmicro.com>
                            Tang, Li      <tangli@palmmicro.com>
                            Li, Yajing    <liyajing@palmmicro.com>

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   This software 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
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

   Sebastien RAILLARD <sebastien.raillard at gmail.com> added French support

   Alfredo Sorbello <sorbello at antek.it> added Italian support

   Diego Frick <dfrick at bit2net.com> added Spanish support

   Ferhat OLGUN <ferhatolgun2 at yahoo.com> added Turkish support

   Geisom <geisom at canall.com.br> added Brasil Portuguese support

-------------------------------------------------------------------------*/

#include "version.h"
#include "type.h"
#include "ar168.h"
#include "core.h"
#include "apps.h"
#include "bank4.h"

#ifdef OEM_BT2008
#if defined RES_CN && defined DISPLAY_DOT
#include "res\\bt2008\\cn\\menu.h"
#else // Default = REG_US
#include "res\\bt2008\\us\\menu.h"
#endif
#elif defined OEM_INNOMEDIA
#include "res\\innomedia\\us\\menu.h"
#else
#ifdef RES_BR // Brasil
#include "res\\br\\menu.h"
#elif defined RES_CN && defined DISPLAY_DOT
#include "res\\cn\\menu.h"
#elif defined RES_ES // Espaņol
#include "res\\es\\menu.h"
#elif defined RES_FR // French
#include "res\\fr\\menu.h"
#elif defined RES_IT // Italy
#include "res\\it\\menu.h"
#elif defined RES_KR && defined DISPLAY_DOT // Korean
#include "res\\kr\\menu.h"
#elif defined RES_RO // Romanian
#include "res\\ro\\menu.h"
#elif defined RES_RU && defined DISPLAY_DOT // Russian
#include "res\\ru\\menu.h"
#elif defined RES_TR // Turkish
#ifdef OEM_IP20
#include "res\\ip20\\tr\\menu.h"
#else
#include "res\\tr\\menu.h"
#endif
#elif defined RES_VN // Vietnam
#include "res\\vn\\menu.h"
#else // Default = REG_US
#include "res\\us\\menu.h"
#endif
#endif

const UCHAR _cIDS[][DISPLAY_MAX_CHAR+1] = {
{'V', 'e', 'r', ':', ' ', SOFT_VER_HIGH+'0', '.', SOFT_VER_LOW+'0', SOFT_VER_BUILD+'0', '.', ENG_BUILD_HIGH+'0', ENG_BUILD_MID+'0', ENG_BUILD_LOW+'0', 0},
#ifdef OEM_BT2008
#if defined RES_CN && defined DISPLAY_DOT
#include "res\\bt2008\\cn\\str.h"
#else // Default = REG_US
#include "res\\bt2008\\us\\str.h"
#endif
#elif defined OEM_INNOMEDIA
#include "res\\innomedia\\us\\str.h"
#else
#ifdef RES_BR // Brasil
#include "res\\br\\str.h"
#elif defined RES_CN && defined DISPLAY_DOT
#include "res\\cn\\str.h"
#elif defined RES_ES // Espaņol
#include "res\\es\\str.h"
#elif defined RES_FR // French
#include "res\\fr\\str.h"
#elif defined RES_IT // Italy
#include "res\\it\\str.h"
#elif defined RES_KR && defined DISPLAY_DOT // Korean
#include "res\\kr\\str.h"
#elif defined RES_RO // Romanian
#include "res\\ro\\str.h"
#elif defined RES_RU && defined DISPLAY_DOT // Russian
#include "res\\ru\\str.h"
#elif defined RES_TR // Turkish
#ifdef OEM_IP20
#include "res\\ip20\\tr\\str.h"
#else
#include "res\\tr\\str.h"
#endif
#elif defined RES_VN // Vietnam
#include "res\\vn\\str.h"
#else // Default = REG_US
#include "res\\us\\str.h"
#endif
#endif
};

void LoadString(UCHAR iIDS, PCHAR pBuf)
{
	if (iIDS == IDS_DISPLAY_MODEL)
	{
#ifdef OEM_BIT2NET
		strcpy(pBuf, "b2N1000");
#elif defined VER_AR168G
		strcpy(pBuf, (PCHAR)"GP1260");
#elif defined OEM_IP20
		strcpy(pBuf, "KAREL IP20");
#elif defined OEM_WEBNEED
		strcpy(pBuf, (PCHAR)"WebNeed");
#elif defined OEM_AEM
		strcpy(pBuf, (PCHAR)"AEM2266");
#elif defined OEM_INNOMEDIA
		strcpy(pBuf, (PCHAR)"MTA7308-SL");
#else
		OptionsGetString(pBuf, OPT_FLAG_PRODUCT, MAX_FLAG_PRODUCT_LEN);
#endif	
	}
	else
	{
		strcpy(pBuf, _cIDS[iIDS]);
	}
}
