multilingual interface for TFT

Status
Not open for further replies.

Lukashuk

Well-known member
Hello!
I am using T3.6 and ILI9341 display (SPI). my project must have a multilingual interface: English, Russian and Ukrainian.
Can you please tell me how can I modify the Arduino environment and my sketch to display multiple languages ​​at the same time?
Code:
#include "SPI.h"
#include "LoRa.h"
#include "ILI9341_t3.h"
// For the Adafruit shield, these are the default.
#define TFT_DC  9
#define TFT_CS 10
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC);

void setup() 
{
  tft.begin();
  tft.setRotation(2);
  tft.fillScreen(ILI9341_BLACK);
  tft.setTextColor(ILI9341_YELLOW);
  tft.setCursor(0, 0);
  tft.setTextSize(2);

  tft.println("Hello Word");
  tft.println("Здравствуй Мир");// Rusian text
}

void loop() {
  // put your main code here, to run repeatedly:
}
 
A common technique is to use code numbers for text strings, and a dynamic mapping occurs when printing strings to
the screen, dependent on the selected language. I'd suggest googling "I18N"
 
I understand that in my case different encodings are used. But your recommendation does not help me or I do not know how to apply it.
 
Status
Not open for further replies.
Back
Top