[wesnoth-commits] [wesnoth/wesnoth] 3c3e73: Lua: Add wesnoth.get_language returning the curren...

jostephd noreply at github.com
Sun Feb 17 16:46:58 UTC 2019


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3c3e73ac2dbcf91be8efd87e33ca7d7523042dc0
      https://github.com/wesnoth/wesnoth/commit/3c3e73ac2dbcf91be8efd87e33ca7d7523042dc0
  Author: josteph <josteph at fastmail.com>
  Date:   2019-02-17 (Sun, 17 Feb 2019)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Lua: Add wesnoth.get_language returning the current locale

As @ProditorMagnus points out, Lua code can already figure out the
locale by calling wesnoth.textdomain("wesnoth")(s) where s is any string
from po/wesnoth/wesnoth.pot.  https://forums.wesnoth.org/viewtopic.php?p=638560#p638562





More information about the Commits mailing list