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

Celtic Minstrel noreply at github.com
Sat Jun 12 02:28:48 UTC 2021


  Branch: refs/heads/schema_tstring
  Home:   https://github.com/wesnoth/wesnoth
  Commit: adb5daee4aa75ba0b5d297c7fdbccd75df04435d
      https://github.com/wesnoth/wesnoth/commit/adb5daee4aa75ba0b5d297c7fdbccd75df04435d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: fe7590922c29d30b506fad73a02640c57313108a
      https://github.com/wesnoth/wesnoth/commit/fe7590922c29d30b506fad73a02640c57313108a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: 32c08ea5f99d2be5aa471e8378fd7d6b8ee26c55
      https://github.com/wesnoth/wesnoth/commit/32c08ea5f99d2be5aa471e8378fd7d6b8ee26c55
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 Jun 2021)

  Changed paths:
    M src/serialization/schema_validator.cpp

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


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

  Changed paths:
    M data/test/scenarios/test_move.cfg
    M data/test/scenarios/test_terrain_mask.cfg
    M src/wesnoth.cpp
    M utils/CI/schema_validation.sh

  Log Message:
  -----------
  Schema: Define SCHEMA_VALIDATION on all schema validation runs

This replaces the SCHEMA_SHOULD_SKIP_THIS define on only test runs.
Additionally, it's now defined on ALL schema validation, not just CI validation.


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

  Changed paths:
    M utils/CI/schema_validation.sh

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


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

  Changed paths:
    M data/tools/wmllint

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


  Commit: 4bafb65ea25b23a19fff5e63a6b87b1f53adfb50
      https://github.com/wesnoth/wesnoth/commit/4bafb65ea25b23a19fff5e63a6b87b1f53adfb50
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: acc6493fe1763ac34d6e62387ab7844d638c31a3
      https://github.com/wesnoth/wesnoth/commit/acc6493fe1763ac34d6e62387ab7844d638c31a3
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: bdaf2b319e914b0de194828e9316ad086b189b55
      https://github.com/wesnoth/wesnoth/commit/bdaf2b319e914b0de194828e9316ad086b189b55
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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

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


  Commit: fcab0365c2334fa917c731953d1b2ca3241ce693
      https://github.com/wesnoth/wesnoth/commit/fcab0365c2334fa917c731953d1b2ca3241ce693
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: 52b1221965dce1a708d2002ba50de84ae4fdfc79
      https://github.com/wesnoth/wesnoth/commit/52b1221965dce1a708d2002ba50de84ae4fdfc79
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: 0f7a756498b1c356da8745a2a19570c1e32c9b87
      https://github.com/wesnoth/wesnoth/commit/0f7a756498b1c356da8745a2a19570c1e32c9b87
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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: f3c7cdd0172af6d5ce63e7eb61b133c6d32a6f76
      https://github.com/wesnoth/wesnoth/commit/f3c7cdd0172af6d5ce63e7eb61b133c6d32a6f76
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-11 (Fri, 11 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/7e98fd32af0f...f3c7cdd0172a



More information about the Commits mailing list