po: generate pot
This commit is contained in:
parent
3eaa4ceba0
commit
bc73e49fcf
110
po/Imaginer.pot
Normal file
110
po/Imaginer.pot
Normal file
@ -0,0 +1,110 @@
|
||||
# Imaginer POT file
|
||||
# Copyright (C) 2023 Imaginer
|
||||
# This file is distributed under the GNU GPLv3 license.
|
||||
# Imaginer, 2023.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-05-02 00:33+0200\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"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: data/io.github.ImaginerApp.Imaginer.desktop.in:3 src/window.blp:9
|
||||
msgid "Imaginer"
|
||||
msgstr ""
|
||||
|
||||
#: data/io.github.ImaginerApp.Imaginer.appdata.xml.in:7
|
||||
msgid "No description"
|
||||
msgstr ""
|
||||
|
||||
#: src/main.py:74
|
||||
msgid "Choose a directory"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:19
|
||||
msgid "Main Menu"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:25
|
||||
msgid "Error while querying the API"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:47
|
||||
msgid "Prompt"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:53
|
||||
msgid "Options"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:56
|
||||
msgid "Save Location"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:72
|
||||
msgid "(None)"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:79
|
||||
msgid "Provider"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:84
|
||||
msgid "Token"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:93
|
||||
msgid "_Imagine"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:94
|
||||
msgid "Save location is missing."
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:128
|
||||
msgid "New Window"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:135
|
||||
msgid "Keyboard Shortcuts"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:140
|
||||
msgid "About Imaginer"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "Stable Diffusion"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "OpenAI"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "Waifu Diffusion"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "Open Journey"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "Nitro Diffusion"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "Analog Diffusion"
|
||||
msgstr ""
|
||||
|
||||
#: src/window.blp:147
|
||||
msgid "Portrait Plus"
|
||||
msgstr ""
|
10
po/update-pot.sh
Normal file
10
po/update-pot.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
po_dir=$(dirname "$(realpath "$0")")
|
||||
xgettext -f "$po_dir"/POTFILES -o "$po_dir"/Imaginer.pot --add-comments=Translators --keyword=_ --keyword=C_1c,2 --from-code=UTF-8
|
||||
sed -i "s/SOME DESCRIPTIVE TITLE./Imaginer POT file/" "$po_dir"/Imaginer.pot
|
||||
sed -i "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/$(date +%Y) Imaginer/" "$po_dir"/Imaginer.pot
|
||||
sed -i "s@same license as the PACKAGE package.@GNU GPLv3 license.@" "$po_dir"/Imaginer.pot
|
||||
sed -i "s/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR./Imaginer, $(date +%Y)./" "$po_dir"/Imaginer.pot
|
||||
|
||||
regex="$po_dir/([a-zA-Z_]*).po"
|
||||
find "$po_dir" -type f -name "*.po" | sed -rn "s:$regex:\1:p" > "$po_dir/LINGUAS"
|
Loading…
Reference in New Issue
Block a user