Skip to content

Commit

Permalink
docs: Clarify supported formats for screenshots
Browse files Browse the repository at this point in the history
- update list in the documentation to be complete
- remove incomplete list from the UI as any reasonable format should be
  supported

Fixes #9580
  • Loading branch information
nijel committed Aug 1, 2023
1 parent c22c330 commit 4a3cd04
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/admin/projects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ Screenshot file mask
This feature allows the discovery and updating of screenshots through screenshot file masks, using paths from the VCS repository.
This operates at the component level and necessitates the use of an asterisk "*" to replace the screenshot file name.

Allowed formats are JPEG, PNG, APNG and GIF.
Allowed formats are WebP, JPEG, PNG, APNG and GIF.

Note:

Expand Down
27 changes: 27 additions & 0 deletions weblate/screenshots/migrations/0007_alter_screenshot_image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later

# Generated by Django 4.2.3 on 2023-07-17 08:01

from django.db import migrations

import weblate.screenshots.fields


class Migration(migrations.Migration):
dependencies = [
("screenshots", "0006_screenshot_repository_filename"),
]

operations = [
migrations.AlterField(
model_name="screenshot",
name="image",
field=weblate.screenshots.fields.ScreenshotField(
help_text="Upload image up to 2000x2000 pixels.",
upload_to="screenshots/",
verbose_name="Image",
),
),
]
2 changes: 1 addition & 1 deletion weblate/screenshots/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Screenshot(models.Model, UserDisplayMixin):
)
image = ScreenshotField(
verbose_name=gettext_lazy("Image"),
help_text=gettext_lazy("Upload JPEG or PNG images up to 2000x2000 pixels."),
help_text=gettext_lazy("Upload image up to 2000x2000 pixels."),
upload_to="screenshots/",
)
translation = models.ForeignKey(Translation, on_delete=models.deletion.CASCADE)
Expand Down

0 comments on commit 4a3cd04

Please sign in to comment.