diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a9617b..f1ee537 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: types: - yaml - repo: https://github.com/psf/black - rev: 25.9.0 + rev: 25.11.0 hooks: - id: black name: black diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d855cb8..c894929 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,3 +38,7 @@ Prepare and submit pull requests as follows: Make sure to run `pre-commit` before submitting your code. For more details of forks and pull request, see the [Creating a pull request from a fork](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) and [How to create a pull request in GitHub](https://opensource.com/article/19/7/create-pull-request-github) documentations. + +## Contributing Translations + +You can contribute to Lenght translations with [Weblate](https://hosted.weblate.org/projects/length/). diff --git a/help/fr/fr.po b/help/fr/fr.po index 81b2940..daf1fa2 100644 --- a/help/fr/fr.po +++ b/help/fr/fr.po @@ -7,7 +7,7 @@ msgstr "" #. Put one translator per line, in the form NAME , YEAR1, YEAR2 msgctxt "_" msgid "translator-credits" -msgstr "" +msgstr "Hervé Quatremain, 2025" #. (itstool) path: credit/years #: ../help/C/adjusting.page:13 ../help/C/calibrating.page:13 @@ -17,7 +17,7 @@ msgstr "" #: ../help/C/scale.page:13 ../help/C/tracking.page:13 #: ../help/C/transparency.page:13 ../help/C/units.page:14 msgid "2025" -msgstr "" +msgstr "2025" #. (itstool) path: info/desc #: ../help/C/adjusting.page:25 @@ -324,7 +324,7 @@ msgid "" "that comes with Length. When the Use " "Default Font checkbox is cleared, you can select a custom font." msgstr "" -" Dans la page Général, dans la section Général, dans la section Apparence, décocher Utiliser la " "police par défaut. Quand Utiliser la police par " "défaut est actif, la police est celle qui vient avec Longueur\n" "Language-Team: LANGUAGE \n" @@ -523,11 +523,6 @@ msgstr "" msgid "Inches" msgstr "" -#. Short name that is used to display the unit on the ruler -#: src/unit_pct.py:29 src/unit_rel_pct.py:29 -msgid "%" -msgstr "" - #. Human readable unit name that is used in the Preferences dialog #: src/unit_pct.py:31 msgid "Percentages" diff --git a/po/nl.po b/po/nl.po index 7183920..ef45170 100644 --- a/po/nl.po +++ b/po/nl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: length\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-20 14:53+0200\n" +"POT-Creation-Date: 2025-11-13 17:16+0100\n" "PO-Revision-Date: 2025-03-15 18:22+0100\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: \n" @@ -536,11 +536,6 @@ msgstr "inch" msgid "Inches" msgstr "Inches" -#. Short name that is used to display the unit on the ruler -#: src/unit_pct.py:29 src/unit_rel_pct.py:29 -msgid "%" -msgstr "%" - #. Human readable unit name that is used in the Preferences dialog #: src/unit_pct.py:31 msgid "Percentages" @@ -581,3 +576,6 @@ msgstr "Pixels" #, fuzzy msgid "Relative Percentages" msgstr "Percentages" + +#~ msgid "%" +#~ msgstr "%" diff --git a/po/ru.po b/po/ru.po index 9cb606b..2adf191 100644 --- a/po/ru.po +++ b/po/ru.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: length\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-20 14:53+0200\n" +"POT-Creation-Date: 2025-11-13 17:16+0100\n" "PO-Revision-Date: 2025-07-05 20:02+0300\n" "Last-Translator: freeducks-debug \n" "Language-Team: \n" @@ -542,11 +542,6 @@ msgstr "дйм" msgid "Inches" msgstr "Дюймы" -#. Short name that is used to display the unit on the ruler -#: src/unit_pct.py:29 src/unit_rel_pct.py:29 -msgid "%" -msgstr "%" - #. Human readable unit name that is used in the Preferences dialog #: src/unit_pct.py:31 msgid "Percentages" @@ -586,3 +581,6 @@ msgstr "Пиксели" #: src/unit_rel_pct.py:31 msgid "Relative Percentages" msgstr "Относительные проценты" + +#~ msgid "%" +#~ msgstr "%" diff --git a/po/uk.po b/po/uk.po index cee2b4b..b601402 100644 --- a/po/uk.po +++ b/po/uk.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: length\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-20 14:53+0200\n" +"POT-Creation-Date: 2025-11-13 17:16+0100\n" "PO-Revision-Date: 2025-07-05 19:29+0300\n" "Last-Translator: freeducks-debug \n" "Language-Team: \n" @@ -540,11 +540,6 @@ msgstr "дюйм" msgid "Inches" msgstr "Дюйми" -#. Short name that is used to display the unit on the ruler -#: src/unit_pct.py:29 src/unit_rel_pct.py:29 -msgid "%" -msgstr "%" - #. Human readable unit name that is used in the Preferences dialog #: src/unit_pct.py:31 msgid "Percentages" @@ -584,3 +579,6 @@ msgstr "Пікселі" #: src/unit_rel_pct.py:31 msgid "Relative Percentages" msgstr "Відносні проценти" + +#~ msgid "%" +#~ msgstr "%" diff --git a/src/unit_pct.py b/src/unit_pct.py index c7ad854..4dd93da 100644 --- a/src/unit_pct.py +++ b/src/unit_pct.py @@ -26,7 +26,7 @@ class UnitPct(Unit): # Identifier of the unit in the "unit" GSettings option id: str = "pct" # Short name that is used to display the unit on the ruler - short_name: str = _("%") + short_name: str = "%" # Human readable unit name that is used in the Preferences dialog long_name: str = _("Percentages") diff --git a/src/unit_rel_pct.py b/src/unit_rel_pct.py index 7b4e8b4..edd64f1 100644 --- a/src/unit_rel_pct.py +++ b/src/unit_rel_pct.py @@ -26,7 +26,7 @@ class UnitRelativePct(Unit): # Identifier of the unit in the "unit" GSettings option id: str = "relpct" # Short name that is used to display the unit on the ruler - short_name: str = _("%") + short_name: str = "%" # Human readable unit name that is used in the Preferences dialog long_name: str = _("Relative Percentages")