Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
6 changes: 3 additions & 3 deletions help/fr/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
#. Put one translator per line, in the form NAME <EMAIL>, 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
Expand All @@ -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
Expand Down Expand Up @@ -324,7 +324,7 @@ msgid ""
"that comes with <app>Length</app>. When the <gui style=\"button\">Use "
"Default Font</gui> checkbox is cleared, you can select a custom font."
msgstr ""
" Dans la page <gui style=\"tab\">Général</gui>, dans la section <gui "
"Dans la page <gui style=\"tab\">Général</gui>, dans la section <gui "
"style=\"group\">Apparence</gui>, décocher <gui style=\"button\">Utiliser la "
"police par défaut</gui>. Quand <gui style=\"button\">Utiliser la police par "
"défaut</gui> est actif, la police est celle qui vient avec <app>Longueur</"
Expand Down
10 changes: 4 additions & 6 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 "
Expand Down
10 changes: 4 additions & 6 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 "
Expand Down
10 changes: 4 additions & 6 deletions po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 "
Expand Down
7 changes: 1 addition & 6 deletions po/length.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -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"
Expand Down
10 changes: 4 additions & 6 deletions po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <vistausss@fastmail.com>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -581,3 +576,6 @@ msgstr "Pixels"
#, fuzzy
msgid "Relative Percentages"
msgstr "Percentages"

#~ msgid "%"
#~ msgstr "%"
10 changes: 4 additions & 6 deletions po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <applesause454@gmail.com>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -586,3 +581,6 @@ msgstr "Пиксели"
#: src/unit_rel_pct.py:31
msgid "Relative Percentages"
msgstr "Относительные проценты"

#~ msgid "%"
#~ msgstr "%"
10 changes: 4 additions & 6 deletions po/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <applesause454@gmail.com>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -584,3 +579,6 @@ msgstr "Пікселі"
#: src/unit_rel_pct.py:31
msgid "Relative Percentages"
msgstr "Відносні проценти"

#~ msgid "%"
#~ msgstr "%"
2 changes: 1 addition & 1 deletion src/unit_pct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion src/unit_rel_pct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down