[wesnoth-commits] [wesnoth/wesnoth] b985cb: add-ons manager translated titles and description ...

walodar noreply at github.com
Mon Sep 7 19:23:44 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b985cb7145f6ff8d244fd32432385d60a8730a2f
      https://github.com/wesnoth/wesnoth/commit/b985cb7145f6ff8d244fd32432385d60a8730a2f
  Author: walodar <58367382+walodar at users.noreply.github.com>
  Date:   2020-09-07 (Mon, 07 Sep 2020)

  Changed paths:
    M src/addon/info.cpp
    M src/gettext.cpp
    M src/gettext.hpp

  Log Message:
  -----------
  add-ons manager translated titles and description also for System default language

The nice new feature that allows translated add-on titles and descriptions in the add-ons manager works well when the language preference is explicitly set to some supported language, but not when "System default language" is selected, because this is represented by an empty string in language.hpp. This pull request fixes this by getting the effective locale (the actual translation target language) from gettext.





More information about the Commits mailing list