gb.language.print

Description

void gb.language.print( const MultiLang* lang [, uint8_t length] )

gb.language.print fetches the pointer off a MultiLang array "lang" and prints the correct one to gb.display .

It follows the same rules as gb.language.get .

Parameters

  • const MultiLang* lang: multi-language array
  • uint8_t length (optional): length of the array

Returns

none

Example

#include <Gamebuino-Meta.h>

const MultiLang[] lang_fox = {
  {LANG_EN, "fox"},
  {LANG_DE, "Fuchs"},
};

void setup() {
  gb.begin();
}

void loop() {
  if (gb.update()) {
    gb.display.clear();
    
    // print the pointer to the display
    gb.language.print(lang_fox);
  }
}