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

Celtic Minstrel noreply at github.com
Sun Jun 13 19:58:38 UTC 2021


  Branch: refs/heads/schema_tstring
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c48c1636a2b600dbeeb5425bfd5d5b88130ee022
      https://github.com/wesnoth/wesnoth/commit/c48c1636a2b600dbeeb5425bfd5d5b88130ee022
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 9d647e7518e6952b56e9b7e52a8f5bf2afe2413b
      https://github.com/wesnoth/wesnoth/commit/9d647e7518e6952b56e9b7e52a8f5bf2afe2413b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 30d066968b66da5c4cf484dbdefc30c32745ad1d
      https://github.com/wesnoth/wesnoth/commit/30d066968b66da5c4cf484dbdefc30c32745ad1d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 Jun 2021)

  Changed paths:
    M src/serialization/schema_validator.cpp

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


  Commit: 26b383b33b10f1b36a140f289f11ac6e3f2fceac
      https://github.com/wesnoth/wesnoth/commit/26b383b33b10f1b36a140f289f11ac6e3f2fceac
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 94bebf65a9338714ee58f2fc0590f6b8982dcb2a
      https://github.com/wesnoth/wesnoth/commit/94bebf65a9338714ee58f2fc0590f6b8982dcb2a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 Jun 2021)

  Changed paths:
    M utils/CI/schema_validation.sh

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


  Commit: 854c91b9bcbd0dc6ba2ffee4561d7c0526287a6a
      https://github.com/wesnoth/wesnoth/commit/854c91b9bcbd0dc6ba2ffee4561d7c0526287a6a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 5c3181ada10cd6710aa82a35bd299c9e3bc977c0
      https://github.com/wesnoth/wesnoth/commit/5c3181ada10cd6710aa82a35bd299c9e3bc977c0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 205628a1f9efc7e7af152149e7e7279b9fb2c9ed
      https://github.com/wesnoth/wesnoth/commit/205628a1f9efc7e7af152149e7e7279b9fb2c9ed
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 092f01de8a4f83fae63a7031eb85de09e66a09da
      https://github.com/wesnoth/wesnoth/commit/092f01de8a4f83fae63a7031eb85de09e66a09da
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 4f5b4f42b8cc12e6bdc6f334b1f353b2d1791e90
      https://github.com/wesnoth/wesnoth/commit/4f5b4f42b8cc12e6bdc6f334b1f353b2d1791e90
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 1eac6e7b04f837c2d578d212e42b91e69ab301ff
      https://github.com/wesnoth/wesnoth/commit/1eac6e7b04f837c2d578d212e42b91e69ab301ff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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: 3286fcc8b05392e239e247f9627dfd7ad32d7b42
      https://github.com/wesnoth/wesnoth/commit/3286fcc8b05392e239e247f9627dfd7ad32d7b42
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-13 (Sun, 13 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/f3c7cdd0172a...3286fcc8b053



More information about the Commits mailing list