CPG-Nuke source documentation ⇒ CPG Dragonfly™ CMS
Files - Classes
  includes/functions/language.php
properties
functions
get_langcode

string get_langcode(string $thislang, boolean $set_define)

Returns the short notation for an language.
At pageload it is called using $currentlang to set a define for the page main language.

Arguments

  • $thislang

    current language setting of the user

  • $set_define [optional, default value = false]

    don't use it, it's called by mainfile already