From d8d14ea7b95dd70c0ddcd78c4ac88ff679657d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Quatremain?= Date: Thu, 13 Nov 2025 17:16:13 +0100 Subject: [PATCH 1/2] Prepare for Weblate --- CONTRIBUTING.md | 4 ++++ help/fr/fr.po | 6 +++--- src/unit_pct.py | 2 +- src/unit_rel_pct.py | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) 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 Date: Thu, 13 Nov 2025 17:23:00 +0100 Subject: [PATCH 2/2] Fix translation files --- .pre-commit-config.yaml | 2 +- po/es.po | 10 ++++------ po/fr.po | 10 ++++------ po/it.po | 10 ++++------ po/length.pot | 7 +------ po/nl.po | 10 ++++------ po/ru.po | 10 ++++------ po/uk.po | 10 ++++------ 8 files changed, 26 insertions(+), 43 deletions(-) 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/po/es.po b/po/es.po index 5e25a4b..0baf107 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,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-22 17:23-0300\n" "Last-Translator: Haggen\n" "Language-Team: \n" @@ -543,11 +543,6 @@ msgstr "pulgada" msgid "Inches" msgstr "Pulgadas" -#. 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" @@ -589,6 +584,9 @@ msgstr "Pixeles" msgid "Relative Percentages" msgstr "Porcentajes" +#~ msgid "%" +#~ msgstr "%" + #~ msgid "" #~ "Whether let Length try to compute the monitor size, or let you provide " #~ "your monitor size in \"monitor-size\". In some environments, that " diff --git a/po/fr.po b/po/fr.po index 0650dbf..89a7601 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,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-18 09:13+0100\n" "Last-Translator: Hervé Quatremain\n" "Language-Team: none\n" @@ -537,11 +537,6 @@ msgstr "pouce" msgid "Inches" msgstr "Pouces" -#. 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" @@ -582,6 +577,9 @@ msgstr "Pixels" msgid "Relative Percentages" msgstr "Pourcentages relatifs" +#~ msgid "%" +#~ msgstr "%" + #~ msgid "" #~ "Whether let Length try to compute the monitor size, or let you provide " #~ "your monitor size in \"monitor-size\". In some environments, that " diff --git a/po/it.po b/po/it.po index 2c61d0b..2500269 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,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-09-21 08:48+0200\n" "Last-Translator: Albano Battistella\n" "Language-Team: Zorin OS\n" @@ -536,11 +536,6 @@ msgstr "pollice" msgid "Inches" msgstr "Pollici" -#. 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,6 +576,9 @@ msgstr "Pixel" msgid "Relative Percentages" msgstr "Percentuali relative" +#~ msgid "%" +#~ msgstr "%" + #~ msgid "" #~ "Whether let Length try to compute the monitor size, or let you provide " #~ "your monitor size in \"monitor-size\". In some environments, that " diff --git a/po/length.pot b/po/length.pot index 8befe37..97f4dee 100644 --- a/po/length.pot +++ b/po/length.pot @@ -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: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \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 "%"