summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/ui/window.ui2
-rw-r--r--po/.gitignore3
-rw-r--r--po/LINGUAS1
-rw-r--r--po/POTFILES.template (renamed from po/POTFILES.in)0
-rw-r--r--po/bn_BD.po86
-rw-r--r--po/meson.build12
-rwxr-xr-xpo/scripts/potfiles.py17
7 files changed, 117 insertions, 4 deletions
diff --git a/data/ui/window.ui b/data/ui/window.ui
index 14f9138..2a67dbc 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -202,7 +202,7 @@
<property name="vscroll-policy">natural</property>
<property name="allow-hyperlink">True</property>
<property name="bold-is-bright">True</property>
- <property name="encoding">UTF-8</property>
+ <property name="enable-sixel">True</property>
<property name="pointer-autohide">True</property>
<property name="scroll-on-keystroke">True</property>
<child internal-child="accessible">
diff --git a/po/.gitignore b/po/.gitignore
new file mode 100644
index 0000000..11d6f10
--- /dev/null
+++ b/po/.gitignore
@@ -0,0 +1,3 @@
+!/scripts
+*.pot
+/POTFILES
diff --git a/po/LINGUAS b/po/LINGUAS
index e69de29..017894d 100644
--- a/po/LINGUAS
+++ b/po/LINGUAS
@@ -0,0 +1 @@
+bn_BD
diff --git a/po/POTFILES.in b/po/POTFILES.template
index 657ea12..657ea12 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.template
diff --git a/po/bn_BD.po b/po/bn_BD.po
new file mode 100644
index 0000000..5736af5
--- /dev/null
+++ b/po/bn_BD.po
@@ -0,0 +1,86 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR JaduPc Ltd.
+# This file is distributed under the same license as the jadupc-support package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+# Mubashshir <ahm@jadupc.com>, 2023
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: jadupc-support\n"
+"Report-Msgid-Bugs-To: bugs+translations@jadupc.com\n"
+"POT-Creation-Date: 2023-10-02 20:52+0600\n"
+"PO-Revision-Date: 2023-10-02 20:51+0600\n"
+"Last-Translator: Mubashshir <ahm@jadupc.com>\n"
+"Language-Team: JaduPc Translators <translation@jadupc.com>\n"
+"Language: bn_BD\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n==0 || n==1);\n"
+"X-Generator: Poedit 3.3.2\n"
+
+#: src/window.vala:48
+msgid "Connecting..."
+msgstr "কানেক্টিং..."
+
+#: src/window.vala:55
+#, c-format
+msgid "Error: %s"
+msgstr "এরর: %s"
+
+#: src/window.vala:59
+msgid "Welcome to JaduPc Remote Support Console!"
+msgstr "জাদুপিসি রিমোট সাপোর্ট কনসোলে স্বাগতম!"
+
+#: src/window.vala:73 data/ui/window.ui:249
+msgid "Disconnected..."
+msgstr "ডিসকানেক্টেড..."
+
+#: src/application.vala:57 data/ui/window.ui:272
+#: build/data/com.jadupc.support.desktop.in:3
+#: build/data/com.jadupc.support.appdata.xml.in:7
+msgid "JaduPc Remote Support Console"
+msgstr "জাদুপিসি রিমোট সাপোর্ট কনসোল"
+
+#: src/application.vala:64
+msgid "JaduPc Ltd."
+msgstr "জাদুপিসি লিমিটেড."
+
+#: src/utils.vala:32 src/utils.vala:34
+#, c-format
+msgid "Unknown Signal - %d"
+msgstr "অজানা সিগন্যাল - %d"
+
+#: src/utils.vala:36
+#, c-format
+msgid "Process returned %d"
+msgstr "ফলাফল %d"
+
+#: src/utils.vala:37
+#, c-format
+msgid "Exit status - %d (unknown)"
+msgstr "এক্সিট স্ট্যাটাস - %d (আননোন)"
+
+#: src/config.vala:9
+msgid "Mubashshir <ahm@jadupc.com>"
+msgstr "মুবাশশির <ahm@jadupc.com>"
+
+#: src/config.vala:10
+msgid "Saikat <fas@jadupc.com>"
+msgstr "সৈকত <fas@jadupc.com>"
+
+#: src/config.vala:13
+msgid "Copyright © 2023 Mubashshir"
+msgstr "কপিরাইট © ২০২৩ মুবাশশির"
+
+#: src/config.vala:14
+msgid "Copyright © 2023 Saikat"
+msgstr "কপিরাইট © ২০২৩ সৈকত"
+
+#: src/config.vala:17
+msgid "Maliha <maliha.0250@gmail.com>"
+msgstr "মালিহা <maliha.0250@gmail.com>"
+
+#: data/ui/window.ui:127
+msgid "Initiate Support Session"
+msgstr "সাপোর্ট সেশন শুরু করুন"
diff --git a/po/meson.build b/po/meson.build
index cf61bee..05bb600 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,5 +1,3 @@
-i18n.gettext(project_name, preset: 'glib')
-
i18n_sources = []
foreach file : srcs + ui_defs + i18n_data
@@ -7,9 +5,17 @@ foreach file : srcs + ui_defs + i18n_data
endforeach
potfiles = configure_file(
- input: 'POTFILES.in',
+ input: 'POTFILES.template',
output: '@BASENAME@',
configuration: configuration_data({
'SOURCES': '\n'.join(i18n_sources)
}),
)
+
+update_potfile = run_target('@0@-potfiles'.format(application_name), command: files('scripts/potfiles.py'))
+gettext_deps = i18n.gettext(application_name, preset: 'glib', args: [
+ '--copyright-holder=JaduPc Ltd.',
+ '--msgid-bugs-address=bugs+translations@jadupc.com'
+],)
+
+alias_target('update-translations', update_potfile, gettext_deps[2])
diff --git a/po/scripts/potfiles.py b/po/scripts/potfiles.py
new file mode 100755
index 0000000..4b00743
--- /dev/null
+++ b/po/scripts/potfiles.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+from os import path, environ as ENV
+
+source, build = (ENV['MESON_SOURCE_ROOT'], ENV['MESON_BUILD_ROOT'],)
+if not all([path.isdir(source), path.isdir(build)]):
+ print("Must be run inside meson.")
+ exit(1)
+
+with open(path.join(source, 'po', 'POTFILES'), 'w') as p:
+ with open(path.join(build, 'po', 'POTFILES')) as f:
+ for fp in map(str.strip, f.readlines()):
+ if path.isfile(path.join(source, fp)):
+ print(f'Found {fp}')
+ print(fp, file=p)
+ elif path.isfile(path.join(build, fp)):
+ print(f'Found {path.relpath(path.join(build, fp), source)}')
+ print(path.relpath(path.join(build, fp), source), file=p)