Skip to content

Commit

Permalink
fix(Attachment.Item): mark alt text dialog titles as translatable (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Jul 27, 2023
1 parent f631f92 commit d42b541
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 35 deletions.
76 changes: 43 additions & 33 deletions po/dev.geopjr.Tuba.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-18 01:52+0300\n"
"POT-Creation-Date: 2023-07-19 22:14+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"
Expand Down Expand Up @@ -348,7 +348,7 @@ msgstr ""
msgid "Search"
msgstr ""

#: data/gtk/help-overlay.ui:33 src/Views/MediaViewer.vala:264
#: data/gtk/help-overlay.ui:33 src/Views/MediaViewer.vala:271
msgid "Go Back"
msgstr ""

Expand Down Expand Up @@ -388,13 +388,13 @@ msgstr ""
msgid "React with %s"
msgstr ""

#: src/Widgets/Status.vala:270 src/Widgets/Attachment/Item.vala:193
#: src/Views/MediaViewer.vala:372
#: src/Widgets/Status.vala:270 src/Widgets/Attachment/Item.vala:194
#: src/Views/MediaViewer.vala:381
msgid "Open in Browser"
msgstr ""

#: src/Widgets/Status.vala:271 src/Widgets/Attachment/Item.vala:194
#: src/Views/MediaViewer.vala:373
#: src/Widgets/Status.vala:271 src/Widgets/Attachment/Item.vala:195
#: src/Views/MediaViewer.vala:382
msgid "Copy URL"
msgstr ""

Expand Down Expand Up @@ -530,14 +530,20 @@ msgstr ""
msgid "View Alt Text"
msgstr ""

#: src/Widgets/Attachment/Item.vala:195 src/Views/MediaViewer.vala:374
#. translators: the variable is the media type (for example VIDEO)
#: src/Widgets/Attachment/Item.vala:176
#, c-format
msgid "Alternative text for %s"
msgstr ""

#: src/Widgets/Attachment/Item.vala:196 src/Views/MediaViewer.vala:383
msgid "Save Media"
msgstr ""

#: src/Widgets/Attachment/Item.vala:212 src/Views/MediaViewer.vala:482
#: src/Widgets/Attachment/Item.vala:213 src/Views/MediaViewer.vala:491
#: src/Views/Sidebar.vala:271 src/Services/Accounts/SecretAccountStore.vala:124
#: src/Services/Accounts/SecretAccountStore.vala:222
#: src/Services/Accounts/AccountStore.vala:43 src/Dialogs/ProfileEdit.vala:298
#: src/Services/Accounts/AccountStore.vala:43 src/Dialogs/ProfileEdit.vala:326
#: src/Application.vala:140
msgid "Error"
msgstr ""
Expand All @@ -552,27 +558,27 @@ msgstr ""
msgid "Sensitive Media"
msgstr ""

#: src/Views/MediaViewer.vala:258
#: src/Views/MediaViewer.vala:265
msgid "Media Viewer"
msgstr ""

#: src/Views/MediaViewer.vala:271
#: src/Views/MediaViewer.vala:278
msgid "Toggle Fullscreen"
msgstr ""

#: src/Views/MediaViewer.vala:589
#: src/Views/MediaViewer.vala:582
msgid "Previous Attachment"
msgstr ""

#: src/Views/MediaViewer.vala:594
#: src/Views/MediaViewer.vala:587
msgid "Next Attachment"
msgstr ""

#: src/Views/MediaViewer.vala:612
#: src/Views/MediaViewer.vala:605
msgid "Zoom Out"
msgstr ""

#: src/Views/MediaViewer.vala:617
#: src/Views/MediaViewer.vala:610
msgid "Zoom In"
msgstr ""

Expand Down Expand Up @@ -678,7 +684,7 @@ msgstr ""
msgid "%lld Followers"
msgstr ""

#: src/Views/Profile.vala:301 src/Dialogs/ProfileEdit.vala:127
#: src/Views/Profile.vala:301 src/Dialogs/ProfileEdit.vala:131
msgid "Edit Profile"
msgstr ""

Expand Down Expand Up @@ -1061,55 +1067,55 @@ msgstr ""
msgid "Content"
msgstr ""

#: src/Dialogs/ProfileEdit.vala:116
#: src/Dialogs/ProfileEdit.vala:120
#: src/Dialogs/Composer/AttachmentsPage.vala:206
msgid "All Supported Files"
msgstr ""

#: src/Dialogs/ProfileEdit.vala:145
#: src/Dialogs/ProfileEdit.vala:149
msgid "Display Name"
msgstr ""

#. translators: profile bio or description
#: src/Dialogs/ProfileEdit.vala:151
#: src/Dialogs/ProfileEdit.vala:155
msgid "Bio"
msgstr ""

#: src/Dialogs/ProfileEdit.vala:171 src/Dialogs/Composer/EditorPage.vala:218
#: src/Dialogs/ProfileEdit.vala:199 src/Dialogs/Composer/EditorPage.vala:218
msgid "Custom Emoji Picker"
msgstr ""

#. translators: profile fields, if unsure take a look at Mastodon https://github.com/mastodon/mastodon/blob/main/config/locales/ (under simple_form)
#: src/Dialogs/ProfileEdit.vala:186
#: src/Dialogs/ProfileEdit.vala:214
msgid "Fields"
msgstr ""

#: src/Dialogs/ProfileEdit.vala:210
#: src/Dialogs/Composer/AttachmentsPageAttachment.vala:137
#: src/Dialogs/ProfileEdit.vala:238
#: src/Dialogs/Composer/AttachmentsPageAttachment.vala:166
msgid "Save"
msgstr ""

#: src/Dialogs/ProfileEdit.vala:215
#: src/Dialogs/ProfileEdit.vala:243
msgid "Close"
msgstr ""

#: src/Dialogs/ProfileEdit.vala:230
#: src/Dialogs/ProfileEdit.vala:258
msgid "Edit Profile Picture"
msgstr ""

#. translators: if unsure take a look at Mastodon https://github.com/mastodon/mastodon/blob/main/config/locales/ (under simple_form)
#: src/Dialogs/ProfileEdit.vala:250
#: src/Dialogs/ProfileEdit.vala:278
msgid "Edit Header Picture"
msgstr ""

#. translators: profile field, the variable is a number, if unsure take a look at Mastodon https://github.com/mastodon/mastodon/blob/main/config/locales/ (under simple_form)
#: src/Dialogs/ProfileEdit.vala:360
#: src/Dialogs/ProfileEdit.vala:388
#, c-format
msgid "Field %d"
msgstr ""

#. translators: Open file
#: src/Dialogs/ProfileEdit.vala:375 src/Dialogs/ProfileEdit.vala:383
#: src/Dialogs/ProfileEdit.vala:403 src/Dialogs/ProfileEdit.vala:411
#: src/Dialogs/Composer/AttachmentsPage.vala:226
#: src/Dialogs/Composer/AttachmentsPage.vala:235
msgid "Open"
Expand All @@ -1127,20 +1133,20 @@ msgstr ""
msgid "Please enter a valid instance URL"
msgstr ""

#: src/Dialogs/NewAccount.vala:158
#: src/Dialogs/NewAccount.vala:162
msgid "Please enter a valid authorization code"
msgstr ""

#: src/Dialogs/NewAccount.vala:175
#: src/Dialogs/NewAccount.vala:179
msgid "Instance failed to authorize the access token"
msgstr ""

#: src/Dialogs/NewAccount.vala:184
#: src/Dialogs/NewAccount.vala:188
#, c-format
msgid "Hello, %s!"
msgstr ""

#: src/Dialogs/NewAccount.vala:240
#: src/Dialogs/NewAccount.vala:244
msgid "Server returned an error"
msgstr ""

Expand Down Expand Up @@ -1242,7 +1248,7 @@ msgid "Text"
msgstr ""

#: src/Dialogs/Composer/EditorPage.vala:163
#: src/Dialogs/Composer/AttachmentsPageAttachment.vala:132
#: src/Dialogs/Composer/AttachmentsPageAttachment.vala:161
msgid "Characters Left"
msgstr ""

Expand Down Expand Up @@ -1302,6 +1308,10 @@ msgstr ""
msgid "Remove Attachment"
msgstr ""

#: src/Dialogs/Composer/AttachmentsPageAttachment.vala:181
msgid "Alternative text for attachment"
msgstr ""

#: src/Dialogs/Composer/AttachmentsPage.vala:50
msgid "Media"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/Composer/AttachmentsPageAttachment.vala
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public class Tuba.AttachmentsPageAttachment : Widgets.Attachment.Item {

dialog = new Adw.Window () {
modal = true,
title = "Alternative text for attachment",
title = _("Alternative text for attachment"),
transient_for = compose_dialog,
content = box,
default_width = 400,
Expand Down
3 changes: 2 additions & 1 deletion src/Widgets/Attachment/Item.vala
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ public class Tuba.Widgets.Attachment.Item : Adw.Bin {
var headerbar = new Adw.HeaderBar ();
var window = new Adw.Window () {
modal = true,
title = @"Alternative text for $media_kind",
// translators: the variable is the media type (for example VIDEO)
title = _("Alternative text for %s").printf (media_kind),
transient_for = app.main_window,
content = box,
default_width = 400,
Expand Down

0 comments on commit d42b541

Please sign in to comment.