Skip to content

Commit

Permalink
cleanup: Remove untranslatable strings from translations.
Browse files Browse the repository at this point in the history
These are confusing and useless to translate.
  • Loading branch information
iphydf committed Feb 5, 2025
1 parent 6d6d83e commit 9cdfbe9
Show file tree
Hide file tree
Showing 57 changed files with 137 additions and 1,292 deletions.
2 changes: 0 additions & 2 deletions src/widget/about/aboutfriendform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ AboutFriendForm::AboutFriendForm(std::unique_ptr<IAboutFriend> about_, Settings&
, messageBoxManager{messageBoxManager_}
{
ui->setupUi(this);
ui->label_4->hide();
ui->aliases->hide();

connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &AboutFriendForm::onAcceptedClicked);
connect(ui->autoacceptfile, &QCheckBox::clicked, this, &AboutFriendForm::onAutoAcceptDirClicked);
Expand Down
77 changes: 30 additions & 47 deletions src/widget/about/aboutfriendform.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string notr="true">{{username}}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
Expand All @@ -23,7 +23,7 @@
<item>
<widget class="QLabel" name="userName">
<property name="text">
<string>username</string>
<string notr="true">{{username}}</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
Expand All @@ -48,7 +48,7 @@
<bool>false</bool>
</property>
<property name="text">
<string>status message</string>
<string notr="true">{{status message}}</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
Expand Down Expand Up @@ -112,7 +112,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
Expand Down Expand Up @@ -150,48 +150,7 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Used aliases:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="aliases">
<property name="text">
<string>HISTORY OF ALIASES</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QCheckBox" name="autoacceptfile">
<property name="accessibleDescription">
<string>Automatically accept files from contact if set</string>
</property>
<property name="text">
<string>Auto-accept files</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Default directory to save files:</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QPushButton" name="selectSaveDir">
<property name="text">
<string>Auto-accept for this contact is disabled</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<item row="1" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
Expand Down Expand Up @@ -221,7 +180,7 @@
</item>
</layout>
</item>
<item row="4" column="0" colspan="2">
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="autoConferenceInvite">
<property name="accessibleDescription">
<string>Automatically accept conference invitations from this contact if set.</string>
Expand All @@ -231,6 +190,30 @@
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="autoacceptfile">
<property name="accessibleDescription">
<string>Automatically accept files from contact if set</string>
</property>
<property name="text">
<string>Auto-accept files</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Default directory to save files:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QPushButton" name="selectSaveDir">
<property name="text">
<string>Auto-accept for this contact is disabled</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down
2 changes: 2 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ cc_fuzz_test(
testonly = True,
srcs = ["persistence/serialize_fuzz_test.cpp"],
copts = COPTS,
# corpus = ["//tools/toktok-fuzzer/corpus:serialize_fuzz_test"],
tags = ["qt"],
deps = ["//qtox/src:serialize"],
)
Expand Down Expand Up @@ -135,6 +136,7 @@ cc_fuzz_test(
testonly = True,
srcs = ["model/exiftransform_fuzz_test.cpp"],
copts = COPTS,
# corpus = ["//tools/toktok-fuzzer/corpus:exiftransform_fuzz_test"],
tags = ["qt"],
deps = ["//qtox/src:exiftransform"],
)
26 changes: 2 additions & 24 deletions translations/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,28 +208,6 @@ which may lead to problems with video calls.</source>
</context>
<context>
<name>AboutFriendForm</name>
<message>
<source>Dialog</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">الحوار</translation>
</message>
<message>
<source>username</source>
<translation type="unfinished">اسم المستخدم</translation>
</message>
<message>
<source>status message</source>
<translation type="unfinished">الحالة</translation>
</message>
<message>
<source>Used aliases:</source>
<translation type="unfinished">الاسم:</translation>
</message>
<message>
<source>HISTORY OF ALIASES</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">تاريخ الأسماء المستعارة</translation>
</message>
<message>
<source>Automatically accept files from contact if set</source>
<translation type="unfinished">قبول الملفات تلقائيا من جهة الاتصال المسجلة</translation>
Expand Down Expand Up @@ -272,9 +250,9 @@ which may lead to problems with video calls.</source>
<translation type="unfinished">تم مسح السجل</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<source>This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;هذا هو المفتاح العام لصديقك، استخدمه للتحقق من هويته عبر قناة أخرى. لا يمكنك إرسال هذا إلى أشخاص آخرين حتى يتمكنوا من إضافة جهة الاتصال هذه.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
<translation type="unfinished">هذا هو المفتاح العام لصديقك، استخدمه للتحقق من هويته عبر قناة أخرى. لا يمكنك إرسال هذا إلى أشخاص آخرين حتى يتمكنوا من إضافة جهة الاتصال هذه.</translation>
</message>
<message>
<source>Public key (not ToxID):</source>
Expand Down
24 changes: 2 additions & 22 deletions translations/be.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,26 +202,6 @@ which may lead to problems with video calls.</source>
</context>
<context>
<name>AboutFriendForm</name>
<message>
<source>Dialog</source>
<translation>Дыялог</translation>
</message>
<message>
<source>username</source>
<translation>імя карыстальніка</translation>
</message>
<message>
<source>status message</source>
<translation>паведамленне аб стане</translation>
</message>
<message>
<source>Used aliases:</source>
<translation>Ужытыя псеўданімы:</translation>
</message>
<message>
<source>HISTORY OF ALIASES</source>
<translation>ГІСТОРЫЯ ПСЕЎДАНІМАЎ</translation>
</message>
<message>
<source>Automatically accept files from contact if set</source>
<translation>Аўтаматычна прымаць файлы ад кантактаў, калі зададзеная</translation>
Expand Down Expand Up @@ -263,8 +243,8 @@ which may lead to problems with video calls.</source>
<translation>Гісторыя выдаленая</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Гэта адкрыты ключ вашага сябра, выкарыстоўвайце яго, каб пацвердзіць яго асобу з дапамогай іншага канала. Вы не можаце адправіць гэта іншым людзям, каб яны маглі дадаць гэты кантакт.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
<source>This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.</source>
<translation>Гэта адкрыты ключ вашага сябра, выкарыстоўвайце яго, каб пацвердзіць яго асобу з дапамогай іншага канала. Вы не можаце адправіць гэта іншым людзям, каб яны маглі дадаць гэты кантакт.</translation>
</message>
<message>
<source>Public key (not ToxID):</source>
Expand Down
29 changes: 2 additions & 27 deletions translations/ber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,31 +221,6 @@ which may lead to problems with video calls.</source>
</context>
<context>
<name>AboutFriendForm</name>
<message>
<source>Dialog</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ⴰⴷⵉⵡⴻⵏⵏⵉ</translation>
</message>
<message>
<source>username</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ⵉⵙⴻⵎ ⵏ ⵓⵙⴻⵇⴷⴰⵛ</translation>
</message>
<message>
<source>status message</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ⵉⵣⴻⵏ ⵏ ⵜⴻⴳⵏⵉⵜ</translation>
</message>
<message>
<source>Used aliases:</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ⵉⵙⴻⵎ ⵏ ⵓⵙⵎⴻⴽⵜⵉ ⵢⴻⵜⵜⵡⴰⵙⵇⴻⴷⵛⴻⵏ:</translation>
</message>
<message>
<source>HISTORY OF ALIASES</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">AMEZRUY N YISMAWEN</translation>
</message>
<message>
<source>Automatically accept files from contact if set</source>
<translatorcomment>Automated translation.</translatorcomment>
Expand Down Expand Up @@ -294,9 +269,9 @@ which may lead to problems with video calls.</source>
<translation>ⵉⵜⵜⵡⴰⴽⴽⵙ ⵓⵎⵣⵔⵓⵢ</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<source>This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">&lt;ⵀⵜⵎⵍ&gt;&lt;ⵀⴻⴰⴷ/&gt;&lt;body&gt;&lt;p&gt;Tagi ⴷ ⵜⴰⵙⴰⵔⵓⵜ ⵜⴰⵖⴻⵍⵏⴰⵡⵜ ⵏ ⵓⵎⴻⴷⴷⴰⴽⴻⵍⵉⴽ, ⵙⵙⴻⵇⴷⴻⵛⵉⵜⵜ ⴰⴽⴽⴻⵏ ⴰⴷ ⵜⴻⵙⵙⴻⴼⵇⴻⴷ ⵜⴰⵎⴰⴳⵉⵜⵏⵙⴻⵏ ⵙ ⵜⵜⴰⵡⵉⵍ ⵏⵏⵉⴹⴻⵏ. ⵓⵔ ⵜⴻⵣⵎⵉⵔⴻⴹ ⴰⵔⴰ ⴰⴷ ⵜⴰⵣⵏⴻⴹ ⴰⵢⴰ ⵉ ⵢⵉⵎⴷⴰⵏⴻⵏ ⵢⴰⴹⵏⵉⵏ ⴰⴽⴽⴻⵏ ⴰⴷ ⵣⴻⵎⵔⴻⵏ ⴰⴷ ⵔⵏⵓⵏ ⴰⵎⵢⴰⴳⴻⵔⴰ.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
<translation type="unfinished">ⵡⴰⴷ ⴰⵢⴷ ⵉⴳⴰⵏ ⵜⴰⵙⵓⵔⵉⴼⵜ ⵜⴰⴳⴷⵓⴷⴰⵏⵜ ⵏ ⵓⵎⴷⴷⴰⴽⴽⵍ ⵏⵏⵓⵏ, ⵙⵙⵎⵔⵙ ⵜ ⵃⵎⴰ ⴰⴷ ⵜⵙⵙⵎⵔⵙⵎ ⵜⴰⵎⴰⴳⵉⵜ ⵏⵏⵙⵏ ⵙ ⵜⴱⵔⵉⴷⵜ ⵏ ⵢⴰⵏ ⵓⴱⵔⵉⴷ ⵢⴰⴹⵏ. ⵓⵔ ⵜⵣⵎⵉⵔⴷ ⴰⴷ ⵜⵣⵔⵉⴷ ⴰⵢⴰ ⵉ ⵉⵡⴷⴰⵏ ⵢⴰⴹⵏⵉⵏ ⵃⵎⴰ ⴰⴷ ⵥⴹⴰⵕⵏ ⴰⴷ ⵔⵏⵓⵏ ⴰⵙⵖⵍ ⴰⴷ.</translation>
</message>
<message>
<source>Public key (not ToxID):</source>
Expand Down
24 changes: 2 additions & 22 deletions translations/bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,6 @@ which may lead to problems with video calls.</source>
</context>
<context>
<name>AboutFriendForm</name>
<message>
<source>Dialog</source>
<translation>Диалог</translation>
</message>
<message>
<source>username</source>
<translation>потребителско име</translation>
</message>
<message>
<source>status message</source>
<translation>съобщение за състояние</translation>
</message>
<message>
<source>Used aliases:</source>
<translation>Използвани псевдоними:</translation>
</message>
<message>
<source>HISTORY OF ALIASES</source>
<translation>ИСТОРИЯ НА ПСЕВДОНИМИ</translation>
</message>
<message>
<source>Automatically accept files from contact if set</source>
<translation>Автоматично приемане на файлове от контакт, ако е зададено</translation>
Expand Down Expand Up @@ -257,8 +237,8 @@ which may lead to problems with video calls.</source>
<translation>Историята е премахната</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Това е публичният ключ на вашия приятел. Използвайте го за да потвърдите тяхната идентичност чрез друг канал. Не можете да го изпратите на други хора, за да добавят в контакти.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
<source>This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.</source>
<translation>Това е публичният ключ на вашия приятел. Използвайте го за да потвърдите тяхната идентичност чрез друг канал. Не можете да го изпратите на други хора, за да добавят в контакти.</translation>
</message>
<message>
<source>Public key (not ToxID):</source>
Expand Down
29 changes: 2 additions & 27 deletions translations/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,31 +231,6 @@ which may lead to problems with video calls.</source>
</context>
<context>
<name>AboutFriendForm</name>
<message>
<source>Dialog</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ডায়ালগ</translation>
</message>
<message>
<source>username</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ব্যবহারকারীর নাম</translation>
</message>
<message>
<source>status message</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">অবস্থা বার্তা</translation>
</message>
<message>
<source>Used aliases:</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ব্যবহৃত উপনাম:</translation>
</message>
<message>
<source>HISTORY OF ALIASES</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">ALIASES ইতিহাস</translation>
</message>
<message>
<source>Automatically accept files from contact if set</source>
<translatorcomment>Automated translation.</translatorcomment>
Expand Down Expand Up @@ -307,9 +282,9 @@ which may lead to problems with video calls.</source>
<translation type="unfinished">ইতিহাস মুছে ফেলা হয়েছে</translation>
</message>
<message>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<source>This is the public key of your friend, use it to verify their identity via another channel. You can not send this to other people so they can add this contact.</source>
<translatorcomment>Automated translation.</translatorcomment>
<translation type="unfinished">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;এটি আপনার বন্ধুর সর্বজনীন কী, অন্য চ্যানেলের মাধ্যমে তাদের পরিচয় যাচাই করতে এটি ব্যবহার করুন৷ আপনি এটি অন্য লোকেদের কাছে পাঠাতে পারবেন না যাতে তারা এই পরিচিতি যোগ করতে পারে৷&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;৷</translation>
<translation type="unfinished">এটি আপনার বন্ধুর সর্বজনীন কী, অন্য চ্যানেলের মাধ্যমে তাদের পরিচয় যাচাই করতে এটি ব্যবহার করুন৷ আপনি এটি অন্য লোকেদের কাছে পাঠাতে পারবেন না যাতে তারা এই পরিচিতি যোগ করতে পারে৷৷</translation>
</message>
<message>
<source>Public key (not ToxID):</source>
Expand Down
Loading

0 comments on commit 9cdfbe9

Please sign in to comment.