Hi Guys
I would like to add a language other than English to my app.
I am using LCD with eGUI.
For example: how could I display french characters with accents such as: à, ç, é, à etc...
Any help will be welcome
Best Regards,
--
Theo.
Dear Theodore Black,
Hope you are doing great.
please check this post https://community.nxp.com/servlet/JiveServlet/download/330064-2-374655/Getting_started_eGUI%20.pdf , is an explanation about eGUI but there is a section that explains how to add new strings (vi) .
Also I the Freescale Embedded GUI Image Converter Utility have place to add new strings.
Please tell me if this works.
Have a great day
Best Regards.
Jonathan
this is strings.c file
---------------------------------------
/******************************************************************************
* Includes
******************************************************************************/
#include "d4d.h"
#include "strings.h"
/*******************************************
* String tables - French
********************************************/
static const D4D_WCHAR string_french_D4D_STR_GRAVE_A[] = {0x00E0, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_GRAVE_E[] = {0x00E8, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_GRAVE_U[] = {0x00F9, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_AIGU_E[] = {0x00E9, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CIRCONFLEXE_E[] = {0x00EA, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CIRCONFLEXE_I[] = {0x00EE, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CIRCONFLEXE_O[] = {0x00F4, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CEDILLE_C[] = {0x00E7, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_TREMA_E[] = {0x00EB, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_TREMA_I[] = {0x00EF, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_TREMA_O[] = {0x00F6, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_GRAVE_M_A[] = {0x00C0, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_GRAVE_M_E[] = {0x00C8, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_GRAVE_M_U[] = {0x00D9, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_AIGU_M_E[] = {0x00C9, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CIRCONFLEXE_M_E[] = {0x00CA, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CIRCONFLEXE_M_I[] = {0x00CE, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CIRCONFLEXE_M_O[] = {0x00D4, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_CEDILLE_M_C[] = {0x00C7, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_TREMA_M_E[] = {0x00CB, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_TREMA_M_I[] = {0x00CF, 0x0000};
static const D4D_WCHAR string_french_D4D_STR_TREMA_M_O[] = {0x00D6, 0x0000};
static const D4D_WCHAR* strings_french[] =
{
string_french_D4D_STR_GRAVE_A, // D4D_STR_GRAVE_A
string_french_D4D_STR_GRAVE_E, // D4D_STR_GRAVE_E
string_french_D4D_STR_GRAVE_U, // D4D_STR_GRAVE_U
string_french_D4D_STR_AIGU_E, // D4D_STR_AIGU_E
string_french_D4D_STR_CIRCONFLEXE_E, // D4D_STR_CIRCONFLEXE_E
string_french_D4D_STR_CIRCONFLEXE_I, // D4D_STR_CIRCONFLEXE_I
string_french_D4D_STR_CIRCONFLEXE_O, // D4D_STR_CIRCONFLEXE_O
string_french_D4D_STR_CEDILLE_C, // D4D_STR_CEDILLE_C
string_french_D4D_STR_TREMA_E, // D4D_STR_TREMA_E
string_french_D4D_STR_TREMA_I, // D4D_STR_TREMA_I
string_french_D4D_STR_TREMA_O, // D4D_STR_TREMA_O
string_french_D4D_STR_GRAVE_M_A, // D4D_STR_GRAVE_M_A
string_french_D4D_STR_GRAVE_M_E, // D4D_STR_GRAVE_M_E
string_french_D4D_STR_GRAVE_M_U, // D4D_STR_GRAVE_M_U
string_french_D4D_STR_AIGU_M_E, // D4D_STR_AIGU_M_E
string_french_D4D_STR_CIRCONFLEXE_M_E, // D4D_STR_CIRCONFLEXE_M_E
string_french_D4D_STR_CIRCONFLEXE_M_I, // D4D_STR_CIRCONFLEXE_M_I
string_french_D4D_STR_CIRCONFLEXE_M_O, // D4D_STR_CIRCONFLEXE_M_O
string_french_D4D_STR_CEDILLE_M_C, // D4D_STR_CEDILLE_M_C
string_french_D4D_STR_TREMA_M_E, // D4D_STR_TREMA_M_E
string_french_D4D_STR_TREMA_M_I, // D4D_STR_TREMA_M_I
string_french_D4D_STR_TREMA_M_O // D4D_STR_TREMA_M_O
};
/*******************************************
* Table of string tables
********************************************/
D4D_DECLARE_STRING_TABLE_BEGIN
D4D_DECLARE_STRING(STRING_LANG_FRENCH, strings_french)
D4D_DECLARE_STRING_TABLE_END
Hi Jonathan
Sorry for asking again. I am still having trouble with the french characters. I followed the link you mentioned but without success.
I was able to create strings.c and strings.h using Freescale Embedded GUI Image Converter Utility but I don't know how to call the character to be displayed on the screen.
I attached the strings.c and strings.h
please have a look if you have time.
Or if you do not have time just let me know by step how I can display this latin character <à> on the LCD
Best Regards,
--
Theo
This is strings.h file
-----------------------------
#ifndef __STRINGS_FR_H
#define __STRINGS_FR_H
/******************************************************************************
* Includes
******************************************************************************/
/******************************************************************************
* Constants
******************************************************************************/
#define D4D_STRINGTABLE_PREFIX '@'
// String table names
#define STRING_LANG_FRENCH 0
// String names
#define D4D_STR_GRAVE_A D4D_DEFSTR("@00")
#define D4D_STR_GRAVE_E D4D_DEFSTR("@01")
#define D4D_STR_GRAVE_U D4D_DEFSTR("@02")
#define D4D_STR_AIGU_E D4D_DEFSTR("@03")
#define D4D_STR_CIRCONFLEXE_E D4D_DEFSTR("@04")
#define D4D_STR_CIRCONFLEXE_I D4D_DEFSTR("@05")
#define D4D_STR_CIRCONFLEXE_O D4D_DEFSTR("@06")
#define D4D_STR_CEDILLE_C D4D_DEFSTR("@07")
#define D4D_STR_TREMA_E D4D_DEFSTR("@08")
#define D4D_STR_TREMA_I D4D_DEFSTR("@09")
#define D4D_STR_TREMA_O D4D_DEFSTR("@10")
#define D4D_STR_GRAVE_M_A D4D_DEFSTR("@11")
#define D4D_STR_GRAVE_M_E D4D_DEFSTR("@12")
#define D4D_STR_GRAVE_M_U D4D_DEFSTR("@13")
#define D4D_STR_AIGU_M_E D4D_DEFSTR("@14")
#define D4D_STR_CIRCONFLEXE_M_E D4D_DEFSTR("@15")
#define D4D_STR_CIRCONFLEXE_M_I D4D_DEFSTR("@16")
#define D4D_STR_CIRCONFLEXE_M_O D4D_DEFSTR("@17")
#define D4D_STR_CEDILLE_M_C D4D_DEFSTR("@18")
#define D4D_STR_TREMA_M_E D4D_DEFSTR("@19")
#define D4D_STR_TREMA_M_I D4D_DEFSTR("@20")
#define D4D_STR_TREMA_M_O D4D_DEFSTR("@21")
/******************************************************************************
* Macros
******************************************************************************/
/******************************************************************************
* Global variables
******************************************************************************/
/******************************************************************************
* Global functions
******************************************************************************/