Skip to content

Commit

Permalink
Define the Weblate badge size to avoid reflows during page loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou committed Apr 25, 2020
1 parent 6af982b commit 263ff56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion community/contributing/documentation_guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ You can help to translate the official Godot documentation on our `Hosted Weblat
:alt: Translation state
:align: center
:target: https://hosted.weblate.org/engage/godot-engine/?utm_source=widget
:width: 287
:height: 66

There also is the official
`Godot i18N repository <https://github.com/godotengine/godot-docs-l10n>`_
`Godot i18n repository <https://github.com/godotengine/godot-docs-l10n>`_
where you can see when the data was last synchronized.

License
Expand Down
2 changes: 2 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
.. |weblate_widget| image:: https://hosted.weblate.org/widgets/godot-engine/{image_locale}/godot-docs/287x66-white.png
:alt: Translation status
:target: https://hosted.weblate.org/engage/godot-engine{target_locale}/?utm_source=widget
:width: 287
:height: 66
""".format(
image_locale="-" if language == "en" else language,
target_locale="" if language == "en" else "/" + language,
Expand Down

0 comments on commit 263ff56

Please sign in to comment.