Skip to content

Commit

Permalink
Prepare project for Weblate integration [UA] (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Nov 21, 2023
1 parent 7e4912f commit ee359a7
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*.DS_Store
*.egg-info
*.mo
*.pot
*.pyc
build/*
coverage.lcov
dist/
docs/build
holidays/locale/pot
holidays/locale/pot/*.pot
!holidays/locale/pot/UA.pot
MANIFEST
Pipfile
venv/
94 changes: 94 additions & 0 deletions holidays/locale/pot/UA.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Python Holidays package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.38\n"
"POT-Creation-Date: 2023-11-20 15:58-0800\n"
"PO-Revision-Date: 2023-11-20 15:58-0800\n"
"Last-Translator: \n"
"Language-Team: Python Holidays Localization Team\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingua 4.15.0\n"

#. %s (Observed).
#, c-format
msgid "%s (вихідний)"
msgstr ""

#. New Year's Day.
msgid "Новий рік"
msgstr ""

#. Christmas (Julian calendar).
msgid "Різдво Христове (за юліанським календарем)"
msgstr ""

#. International Women's Day.
msgid "Міжнародний жіночий день"
msgstr ""

#. Easter Sunday (Pascha).
msgid "Великдень (Пасха)"
msgstr ""

#. Holy Trinity Day.
msgid "Трійця"
msgstr ""

#. Labour Day.
msgid "День праці"
msgstr ""

#. International Workers' Solidarity Day.
msgid "День міжнародної солідарності трудящих"
msgstr ""

#. Day of Victory over Nazism in World War II (Victory Day).
msgid "День перемоги над нацизмом у Другій світовій війні (День перемоги)"
msgstr ""

#. Victory Day.
msgid "День перемоги"
msgstr ""

#. Day of the Constitution of Ukraine.
msgid "День Конституції України"
msgstr ""

#. Independence Day.
msgid "День незалежності України"
msgstr ""

#. Day of defenders of Ukraine.
msgid "День захисників і захисниць України"
msgstr ""

#. Defender of Ukraine Day.
msgid "День захисника України"
msgstr ""

#. Anniversary of the Great October Socialist Revolution.
msgid "Річниця Великої Жовтневої соціалістичної революції"
msgstr ""

#. Christmas (Gregorian calendar).
msgid "Різдво Христове (за григоріанським календарем)"
msgstr ""

#. Presidential decree holiday.
msgid "Вихідний згідно указу Президента"
msgstr ""

#. Date format (see strftime() Format Codes)
msgid "%d.%m.%Y"
msgstr ""

#. Day off (substituted from %s).
#, c-format
msgid "Вихідний день (перенесено з %s)"
msgstr ""
10 changes: 10 additions & 0 deletions scripts/l10n/generate_po_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ def process_countries(self):
standalone_mode=False,
)

# Update .pot file metadata.
pot_file = pofile(pot_file_path)
pot_file.metadata.update(
{
"Language-Team": "Python Holidays Localization Team",
"PO-Revision-Date": pot_file.metadata["POT-Creation-Date"],
}
)
pot_file.save()

# Create country default .po file from the .pot file.
po_directory = locale_path / default_language / "LC_MESSAGES"
po_directory.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit ee359a7

Please sign in to comment.