[wesnoth-commits] [wesnoth/wesnoth] 326b4a: Make failure loading textdomains non-fatal

Steve Cotton noreply at github.com
Wed Jul 7 09:25:42 UTC 2021


  Branch: refs/heads/1.16
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 326b4a7997315a43dad96ac353ce7973163b30ae
      https://github.com/wesnoth/wesnoth/commit/326b4a7997315a43dad96ac353ce7973163b30ae
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M src/gettext.cpp

  Log Message:
  -----------
  Make failure loading textdomains non-fatal

Prior to this, if any .po file included a \v (vertical tab), then the game
exited before reaching the title screen. It didn't have to be in a mainline
translation - any add-on could break the game, and would do so before the title
screen appeared, thus preventing the user from using the add-on manager or
language selection to avoid the problem.

Instead, treat a parsing error similarly to the .po file simply not existing.
Fixes #5923.

(cherry picked from commit 23a0377b56d5455c08a741d1457a5cb92fd39091)





More information about the Commits mailing list