[wesnoth-commits] [wesnoth/wesnoth] 2975d6: Lua: Add wesnoth.get_language returning the curren...

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


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 2975d616dcf0dffb7450b6d4e35b7e6b679fcd4b
      https://github.com/wesnoth/wesnoth/commit/2975d616dcf0dffb7450b6d4e35b7e6b679fcd4b
  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