Merge pull request 'Translation related several patches' (#14) from sabriunal/Imaginer:fix-tr into master
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: https://codeberg.org/Imaginer/Imaginer/pulls/14
This commit is contained in:
commit
3c61fd0ad0
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop">
|
||||
<id>page.codeberg.Imaginer.Imaginer.desktop</id>
|
||||
<name>Imaginer</name>
|
||||
<name translatable="no">Imaginer</name>
|
||||
<summary>Imagine with AI</summary>
|
||||
<developer_name>0xMRTT</developer_name>
|
||||
<launchable type="desktop-id">page.codeberg.Imaginer.Imaginer.desktop</launchable>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Desktop Entry]
|
||||
# Translators: Do not translate the application name
|
||||
Name=Imaginer
|
||||
Exec=imaginer
|
||||
Icon=page.codeberg.Imaginer.Imaginer
|
||||
|
|
|
@ -2,7 +2,7 @@ using Gtk 4.0;
|
|||
using Adw 1;
|
||||
|
||||
template $ImaginerWindow : Adw.ApplicationWindow {
|
||||
title: _("Imaginer");
|
||||
title: "Imaginer";
|
||||
default-width: 350;
|
||||
default-height: 500;
|
||||
width-request: 250;
|
||||
|
@ -210,6 +210,7 @@ menu main-menu {
|
|||
}
|
||||
|
||||
item {
|
||||
//Translators: Do not translate the application name
|
||||
label: _("About Imaginer");
|
||||
action: "app.about";
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-06-01 17:41+0000\n"
|
||||
"POT-Creation-Date: 2023-10-07 17:03+0300\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"
|
||||
|
@ -17,10 +17,36 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: data/page.codeberg.Imaginer.Imaginer.desktop.in:3 data/ui/window.blp:5
|
||||
#. Translators: Do not translate the application name
|
||||
#: data/page.codeberg.Imaginer.Imaginer.desktop.in:4
|
||||
msgid "Imaginer"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/help-overlay.blp:11
|
||||
msgctxt "shortcut window"
|
||||
msgid "General"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/help-overlay.blp:14
|
||||
msgctxt "shortcut window"
|
||||
msgid "Imagine"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/help-overlay.blp:19
|
||||
msgctxt "shortcut window"
|
||||
msgid "Show Shortcuts"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/help-overlay.blp:24
|
||||
msgctxt "shortcut window"
|
||||
msgid "Preferences"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/help-overlay.blp:29
|
||||
msgctxt "shortcut window"
|
||||
msgid "Quit"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/preferences.blp:5 data/ui/window.blp:198 src/main.py:217
|
||||
msgid "Preferences"
|
||||
msgstr ""
|
||||
|
@ -83,7 +109,8 @@ msgstr ""
|
|||
msgid "New window"
|
||||
msgstr ""
|
||||
|
||||
#: data/ui/window.blp:213
|
||||
#. Translators: Do not translate the application name
|
||||
#: data/ui/window.blp:214 src/main.py:220
|
||||
msgid "About Imaginer"
|
||||
msgstr ""
|
||||
|
||||
|
@ -95,11 +122,11 @@ msgstr ""
|
|||
msgid "New Window"
|
||||
msgstr ""
|
||||
|
||||
#: src/main.py:219
|
||||
msgid "About"
|
||||
#: src/main.py:263
|
||||
msgid "Special thanks to"
|
||||
msgstr ""
|
||||
|
||||
#: src/main.py:370
|
||||
#: src/main.py:371
|
||||
msgid "No image found"
|
||||
msgstr ""
|
||||
|
||||
|
|
38
po/LINGUAS
38
po/LINGUAS
|
@ -1,23 +1,23 @@
|
|||
th
|
||||
sv
|
||||
fa
|
||||
fi
|
||||
ru
|
||||
ta
|
||||
nl
|
||||
es
|
||||
fr
|
||||
pt
|
||||
hu
|
||||
de
|
||||
tr
|
||||
pl
|
||||
oc
|
||||
it
|
||||
zh_Hans
|
||||
ar
|
||||
az
|
||||
cs
|
||||
uk
|
||||
ar
|
||||
da
|
||||
de
|
||||
es
|
||||
fa
|
||||
fi
|
||||
fr
|
||||
he
|
||||
hu
|
||||
it
|
||||
nl
|
||||
oc
|
||||
pl
|
||||
pt
|
||||
ru
|
||||
sv
|
||||
ta
|
||||
th
|
||||
tr
|
||||
uk
|
||||
zh_Hans
|
||||
|
|
|
@ -1,10 +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
|
||||
xgettext --files-from="$po_dir"/POTFILES --output="$po_dir"/Imaginer.pot --add-comments --keyword=_ --keyword=C_:1c,2
|
||||
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"
|
||||
find "$po_dir" -type f -name "*.po" | sort | sed 's|.*/\(.*\)\.po$|\1|' > "$po_dir/LINGUAS"
|
||||
|
|
|
@ -216,7 +216,8 @@ class ImaginerApplication(Adw.Application):
|
|||
|
||||
section_menu.append_item(Gio.MenuItem.new(label=_("Preferences"), detailed_action="app.preferences"))
|
||||
section_menu.append_item(Gio.MenuItem.new(label=_("Keyboard Shortcuts"), detailed_action="win.show-help-overlay"))
|
||||
section_menu.append_item(Gio.MenuItem.new(label=_("About"), detailed_action="app.about"))
|
||||
# Translators: Do not translate the application name
|
||||
section_menu.append_item(Gio.MenuItem.new(label=_("About Imaginer"), detailed_action="app.about"))
|
||||
|
||||
self.menu_model.append_section(None, section_menu)
|
||||
|
||||
|
@ -229,7 +230,7 @@ class ImaginerApplication(Adw.Application):
|
|||
except KeyError: # provider not in data
|
||||
pass
|
||||
|
||||
def on_about_action(self, widget, _):
|
||||
def on_about_action(self, widget, *args):
|
||||
"""Callback for the app.about action."""
|
||||
about = Adw.AboutWindow(
|
||||
transient_for=self.props.active_window,
|
||||
|
@ -259,7 +260,7 @@ class ImaginerApplication(Adw.Application):
|
|||
)
|
||||
|
||||
about.add_acknowledgement_section(
|
||||
"Special thanks to",
|
||||
_("Special thanks to"),
|
||||
[
|
||||
"Telegraph https://apps.gnome.org/app/io.github.fkinoshita.Telegraph",
|
||||
"Apostrophe https://apps.gnome.org/app/org.gnome.gitlab.somas.Apostrophe",
|
||||
|
|
Loading…
Reference in a new issue