Improve messages relating to game support

This commit is contained in:
rubenwardy 2023-06-20 00:36:33 +01:00
parent edce45f71a
commit dcce351ad2
3 changed files with 9 additions and 7 deletions

@ -651,8 +651,8 @@ def similar(package):
class GameSupportForm(FlaskForm):
enable_support_detection = BooleanField(lazy_gettext("Enable support detection based on dependencies (recommended)"), [Optional()])
supported = StringField(lazy_gettext("Supported games (Comma-separated)"), [Optional()])
unsupported = StringField(lazy_gettext("Unsupported games (Comma-separated)"), [Optional()])
supported = StringField(lazy_gettext("Supported games"), [Optional()])
unsupported = StringField(lazy_gettext("Unsupported games"), [Optional()])
supports_all_games = BooleanField(lazy_gettext("Supports all games (unless stated) / is game independent"), [Optional()])
submit = SubmitField(lazy_gettext("Save"))

@ -30,7 +30,7 @@
{% if package.supports_all_games %}
<div class="list-group-item">
{{ _("Supports all games unless otherwise stated") }}
{{ _("Supports all games (unless excluded by unsupported_games)") }}
</div>
{% endif %}
@ -93,7 +93,7 @@
{{ render_checkbox_field(form.supports_all_games, disabled=not can_support_all_games) }}
{% if can_support_all_games %}
<p class="text-muted">
{{ _("Unless otherwise stated, this package should work with all games.") }}
{{ _("When checked, this indicates that this package should support all games, unless excluded by unsupported_games.") }}
{{ _("You can check this and still specify games in supported_games that you've tested.") }}
</p>
{% elif package.type.name == "TXP" %}
@ -109,9 +109,11 @@
<p class="text-muted">
{{ _("It's best to add supported/unsupported games to %(conf)s, but in the meantime you can add them here.",
conf=package.get_conf_file_name()) }}
{{ _("Adding to %(conf)s allows users who install outside ContentDB to benefit as well.",
conf=package.get_conf_file_name()) }}
</p>
{{ render_field(form.supported) }}
{{ render_field(form.unsupported) }}
{{ render_field(form.supported, hint=_("Comma-separated game names, ex: minetest_game, nodecore")) }}
{{ render_field(form.unsupported, hint=_("Comma-separated game names, ex: minetest_game, nodecore")) }}
{% endif %}
{{ render_submit_field(form.submit, class_="mt-4 btn btn-primary") }}

@ -10,7 +10,7 @@
<p>
{{ _("You should specify the games supported by your mods and texture packs.") }}
{{ _("Specifying game support makes it easier for players to find your content.") }}
{{ _("If your package supports all games unless otherwise stated, confirm this using 'Supports all games'") }}
{{ _("If your package is game independent, confirm this using 'Supports all games'") }}
</p>