Use the Luanti name in places where forgotten (#600)

This commit is contained in:
Wuzzy
2025-07-01 21:47:47 +02:00
committed by GitHub
parent c495fcbd1a
commit 5243176d74
4 changed files with 10 additions and 9 deletions

View File

@@ -68,8 +68,9 @@ window.addEventListener("load", () => {
}
setupHints("short_desc", {
"short_desc_mods": (val) => val.indexOf("minetest") >= 0 || val.indexOf("mod") >= 0 ||
val.indexOf("modpack") >= 0 || val.indexOf("mod pack") >= 0,
"short_desc_mods": (val) => val.indexOf("luanti") >= 0 || val.indexOf("minetest") >= 0 ||
val.indexOf("mod") >= 0 || val.indexOf("modpack") >= 0 ||
val.indexOf("mod pack") >= 0,
});
setupHints("desc", {

View File

@@ -21,7 +21,7 @@
<script src="/static/js/polltask.js?v=3"></script>
<script src="/static/js/package_create.js"></script>
{% endif %}
<script src="/static/js/package_edit.js?v=3"></script>
<script src="/static/js/package_edit.js?v=4"></script>
{% endblock %}
{% block content %}
@@ -82,7 +82,7 @@
</div>
{{ render_field(form.short_desc, class_="pkg_meta") }}
<p class="form-text text-warning d-none" id="short_desc_mods">
{{ _("Tip: Don't include <i>Minetest</i>, <i>mod</i>, or <i>modpack</i> anywhere in the short description. It is unnecessary and wastes characters.") }}
{{ _("Tip: Don't include <i>Luanti</i>, <i>Minetest</i>, <i>mod</i>, or <i>modpack</i> anywhere in the short description. It is unnecessary and wastes characters.") }}
</p>
{{ render_field(form.dev_state, class_="pkg_meta", hint=_("Please choose 'Work in Progress' if your package is unstable, and shouldn't be recommended to all players")) }}