Skip to content

Commit

Permalink
Fix in running of xgettext to show locations relative to the project …
Browse files Browse the repository at this point in the history
…root
  • Loading branch information
insolor committed Jul 22, 2024
1 parent ce21654 commit 1fba7d1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions package_build/locale/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-22 18:19+0300\n"
"POT-Creation-Date: 2024-07-22 18:47+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -83,69 +83,69 @@ msgstr ""
msgid "Download package"
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/metadata.py:22
msgid "Getting hook metadata..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/metadata.py:28
msgid "Getting dict metadata..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:29
#: package_build/download_parts.py:29
msgid "Downloading library..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:32
#: package_build/download_parts.py:32
msgid "Downloading dfhooks library..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:35
#: package_build/download_parts.py:35
msgid "Downloading config..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:38
#: package_build/download_parts.py:38
msgid "Downloading offsets..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:41
#: package_build/download_parts.py:41
msgid "Downloading csv dictionary..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:44
#: package_build/download_parts.py:44
msgid "Downloading font file..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/download_parts.py:47
#: package_build/download_parts.py:47
msgid "Downloading encoding config..."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:12
#: package_build/file_list.py:12
msgid "Package files awailable to download"
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:17
#: package_build/file_list.py:17
msgid "No package files available."
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:21
#: package_build/file_list.py:21
msgid "Package name"
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:22
#: package_build/file_list.py:22
msgid "When created"
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:29
#: package_build/file_list.py:29
msgid "less than an hour ago"
msgstr ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:31
#: package_build/file_list.py:31
#, python-format
msgid "%(num)d hour ago"
msgid_plural "%(num)d hours ago"
msgstr[0] ""
msgstr[1] ""

#: /home/insolor/Projects/DwarfFortress/package-build/package_build/file_list.py:34
#: package_build/file_list.py:34
msgid "Download"
msgstr ""

#: package_build/metadata.py:22
msgid "Getting hook metadata..."
msgstr ""

#: package_build/metadata.py:28
msgid "Getting dict metadata..."
msgstr ""
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poe.tasks]
run = "streamlit run app.py"
xgettext = "xgettext -d messages -o package_build/locale/messages.pot app.py package_build/*.py --from-code UTF-8"
xgettext.shell = "xgettext -d messages -o package_build/locale/messages.pot app.py package_build/*.py --from-code UTF-8"
msgfmt = "find ./package_build/locale -name \\*.po -execdir msgfmt messages.po -o messages.mo \\;"

[tool.ruff]
Expand Down

0 comments on commit 1fba7d1

Please sign in to comment.