gb.language.println

Description

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

gb.language.println fetches the pointer off a MultiLang array "lang" and prints the correct one to gb.display , followed by a new line.

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, followed by a new line
    gb.language.println(lang_fox);
  }
}