[wesnoth-commits] [wesnoth/wesnoth] 3466b5: WML Schema: t_string is now a built-in type and no...

Celtic Minstrel noreply at github.com
Mon Jun 7 01:13:16 UTC 2021


  Branch: refs/heads/schema_tstring
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3466b5ee45e4b299cfee0e0df245b05edc7352cd
      https://github.com/wesnoth/wesnoth/commit/3466b5ee45e4b299cfee0e0df245b05edc7352cd
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M src/serialization/parser.cpp
    M src/serialization/schema/type.cpp
    M src/serialization/schema/type.hpp
    M src/serialization/schema_validator.cpp
    M src/serialization/schema_validator.hpp
    M src/serialization/validator.hpp
    M src/theme.cpp

  Log Message:
  -----------
  WML Schema: t_string is now a built-in type and no longer attempts a regex match

A key validates as type t_string if one of the following is true:
- The key is not present
- The key has at least one segment with a translation mark
- The key is blank (an empty string)

Any type other than t_string is not allowed to be translatable,
unless you specify allow_translatable=yes in the [type] tag.

An optionally-translatable string could also be defined
as a union of t_string and some other type.


  Commit: d5c189f6ac0d2243587d8a27e5eb111aa16a494d
      https://github.com/wesnoth/wesnoth/commit/d5c189f6ac0d2243587d8a27e5eb111aa16a494d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/schema/ai/_main.cfg
    M data/schema/core/actionwml.cfg
    M data/schema/core/addons.cfg
    M data/schema/core/conditionalwml.cfg
    M data/schema/core/config.cfg
    M data/schema/core/mapgen/lua.cfg
    M data/schema/core/themes.cfg
    M data/schema/editor/groups.cfg
    M data/schema/game_config.cfg
    M data/schema/gui.cfg
    M data/schema/macros.cfg
    M data/schema/schema.cfg
    M data/schema/types/basic.cfg
    M data/schema/types/subst.cfg
    M data/schema/units/modifications.cfg
    M data/schema/units/single.cfg
    M data/schema/units/types.cfg

  Log Message:
  -----------
  Update schema to support the new t_string


  Commit: e3e5736461bfb4ac6201e5f20eab685f3aa6b6e4
      https://github.com/wesnoth/wesnoth/commit/e3e5736461bfb4ac6201e5f20eab685f3aa6b6e4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M src/serialization/schema_validator.cpp

  Log Message:
  -----------
  WML Schema: Ellipsize very long values in error messages


  Commit: 92049e97649e48da8c497bcabaed6a015940d704
      https://github.com/wesnoth/wesnoth/commit/92049e97649e48da8c497bcabaed6a015940d704
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M utils/CI/schema_validation.sh

  Log Message:
  -----------
  CI: Define SCHEMA_SHOULD_SKIP_THIS on all schema validation runs


  Commit: 13eda6520fa87ae2218a200e4753db398e1c6f30
      https://github.com/wesnoth/wesnoth/commit/13eda6520fa87ae2218a200e4753db398e1c6f30
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M utils/CI/schema_validation.sh

  Log Message:
  -----------
  CI: The tutorial doesn't have difficulties


  Commit: 53855ff5d4a2b0a124722028b2999223f53b0b59
      https://github.com/wesnoth/wesnoth/commit/53855ff5d4a2b0a124722028b2999223f53b0b59
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/tools/wmllint

  Log Message:
  -----------
  wmllint: Remove the markcheck functionality and the variation_name check


  Commit: 40c166254f21b63f4d5c74fdedc97f00b4cfd63b
      https://github.com/wesnoth/wesnoth/commit/40c166254f21b63f4d5c74fdedc97f00b4cfd63b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/gui/window/network_transmission.cfg
    M src/gui/dialogs/network_transmission.cpp

  Log Message:
  -----------
  Set the network transmission label in C++ instead so it can pass schema validation


  Commit: bdd31520a8e78b6c230b647e178dc6f10dd6ea82
      https://github.com/wesnoth/wesnoth/commit/bdd31520a8e78b6c230b647e178dc6f10dd6ea82
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/core/help.cfg
    M data/core/terrain.cfg
    M data/themes/default.cfg
    M data/themes/editor.cfg

  Log Message:
  -----------
  Update core WML to pass schema validation with the new t_string


  Commit: bbefe4a225c5ba8d5f26b26319970af30e06b349
      https://github.com/wesnoth/wesnoth/commit/bbefe4a225c5ba8d5f26b26319970af30e06b349
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/campaigns/Dead_Water/scenarios/04_Slavers.cfg
    M data/campaigns/Descent_Into_Darkness/scenarios/07a_A_Small_Favor.cfg
    M data/campaigns/Descent_Into_Darkness/utils/abilities.cfg
    M data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
    M data/campaigns/Northern_Rebirth/scenarios/05a_01_The_Pursuit.cfg
    M data/campaigns/Sceptre_of_Fire/scenarios/4_Gathering_Materials.cfg
    M data/campaigns/Son_Of_The_Black_Eye/scenarios/14_Back_Home.cfg
    M data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg

  Log Message:
  -----------
  Update the campaigns to pass schema validation with the new t_string


  Commit: 66f4bd60571347220353d5a7550a79ce2b2e4cf5
      https://github.com/wesnoth/wesnoth/commit/66f4bd60571347220353d5a7550a79ce2b2e4cf5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/gui/widget/window_borderless.cfg
    M data/gui/window/addon_auth.cfg
    M data/gui/window/addon_license_prompt.cfg
    M data/gui/window/addon_manager.cfg
    M data/gui/window/debug_clock.cfg
    M data/gui/window/depcheck_confirm_change.cfg
    M data/gui/window/editor_edit_side.cfg
    M data/gui/window/editor_resize_map.cfg
    M data/gui/window/game_version.cfg
    M data/gui/window/gamestate_inspector.cfg
    M data/gui/window/install_dependencies.cfg
    M data/gui/window/loadscreen.cfg
    M data/gui/window/lobby_main.cfg
    M data/gui/window/mp_login.cfg
    M data/gui/window/story_viewer.cfg
    M data/gui/window/title_screen.cfg

  Log Message:
  -----------
  Update the GUI WML to pass schema validation with the new t_string


  Commit: d4e6d0083b7810a26688811d867c421f7ab9b8b1
      https://github.com/wesnoth/wesnoth/commit/d4e6d0083b7810a26688811d867c421f7ab9b8b1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/ai/micro_ais/scenarios/animals.cfg
    M data/ai/micro_ais/scenarios/goto.cfg
    M data/ai/micro_ais/scenarios/protect_unit.cfg
    M data/ai/micro_ais/scenarios/wolves.cfg
    M data/ai/scenarios/scenario-formula-recruitment.cfg
    M data/ai/scenarios/scenario-formula.cfg
    M data/ai/scenarios/scenario-high_xp_attack.cfg
    M data/ai/scenarios/scenario-lua_ai.cfg
    M data/ai/scenarios/scenario-lua_ai_old_syntax.cfg
    M data/ai/scenarios/scenario-poisoning.cfg

  Log Message:
  -----------
  Update the AI test scenarios to pass schema validation with the new t_string


  Commit: 108a1f44daf9b050e6c7f9bcbb33222ae6ca8fb0
      https://github.com/wesnoth/wesnoth/commit/108a1f44daf9b050e6c7f9bcbb33222ae6ca8fb0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/test/macros/wml_unit_test_macros.cfg
    M data/test/maps/pathfind_1.cfg
    M data/test/scenarios/ai/_main.cfg
    M data/test/scenarios/characterize_pathfinding.cfg
    M data/test/scenarios/events-test_filterable1.cfg
    M data/test/scenarios/events-test_filterable2.cfg
    M data/test/scenarios/feeding.cfg
    M data/test/scenarios/filter_vision.cfg
    M data/test/scenarios/has_ally.cfg
    M data/test/scenarios/move_skip_sighted.cfg
    M data/test/scenarios/sighted_events.cfg
    M data/test/scenarios/simple_find_path.cfg
    M data/test/scenarios/store_reachable_locations_vision.cfg
    M data/test/scenarios/swarm_disables_upgrades_with_abilities_adjacent.cfg
    M data/test/scenarios/swarm_disables_upgrades_with_abilities_adjacent_fail.cfg
    M data/test/scenarios/swarm_disables_upgrades_with_abilities_adjacent_leadership.cfg
    M data/test/scenarios/swarm_disables_upgrades_with_abilities_adjacent_leadership_fail.cfg
    M data/test/scenarios/test_check_victory.cfg
    M data/test/scenarios/test_create_side.cfg
    M data/test/scenarios/test_grunt_tod_damage.cfg
    M data/test/scenarios/test_max_menu_items.cfg
    M data/test/scenarios/test_menu_items.cfg
    M data/test/scenarios/test_move.cfg
    M data/test/scenarios/test_movetype.cfg

  Log Message:
  -----------
  Update the WML unit tests to pass schema validation with the new t_string


  Commit: 7e98fd32af0f367a8b9c51b89369c6c3afa120c0
      https://github.com/wesnoth/wesnoth/commit/7e98fd32af0f367a8b9c51b89369c6c3afa120c0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M data/scenario-leaders.cfg
    M data/scenario-movethrough.cfg
    M data/scenario-story.cfg
    M data/scenario-test.cfg

  Log Message:
  -----------
  Update the interactive test scenarios to pass schema validation with the new t_string


Compare: https://github.com/wesnoth/wesnoth/compare/33b8640e4d3e...7e98fd32af0f



More information about the Commits mailing list