From 2f4d02f4f97f5d807be50cb3a85ecb1adc872937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Thu, 31 Aug 2023 13:42:48 +0300 Subject: [PATCH 1/4] data: Remove non-exist file from POTFILES Remove LockableToogleButton.vala from the POTFILES --- po/POTFILES | 1 - 1 file changed, 1 deletion(-) diff --git a/po/POTFILES b/po/POTFILES index 9c07f9788..34de13648 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -33,7 +33,6 @@ ./src/Widgets/PreviewCard.vala ./src/Widgets/Notification.vala ./src/Widgets/MarkupView.vala -./src/Widgets/LockableToggleButton.vala ./src/Widgets/LabelWithWidgets.vala ./src/Widgets/EmojiLabel.vala ./src/Widgets/Emoji.vala From c2407464d2e548c31e61bf20efa198302cd37804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Thu, 31 Aug 2023 14:20:55 +0300 Subject: [PATCH 2/4] data: update the POTFILES Order entries alphabetically respecting folder structures. Remove unused files. --- po/POTFILES | 216 +++++++++++++++++----------------------------------- 1 file changed, 70 insertions(+), 146 deletions(-) diff --git a/po/POTFILES b/po/POTFILES index 34de13648..95a312a24 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -1,148 +1,72 @@ -./data/dev.geopjr.Tuba.desktop.in -./data/dev.geopjr.Tuba.metainfo.xml.in +data/dev.geopjr.Tuba.desktop.in +data/dev.geopjr.Tuba.metainfo.xml.in -./data/ui/widgets/status.ui -./data/ui/widgets/votebox.ui -./data/ui/views/profile_header.ui -./data/ui/views/sidebar/view.ui -./data/ui/views/sidebar/item.ui -./data/ui/views/sidebar/account.ui -./data/ui/views/base.ui -./data/ui/menus.ui -./data/ui/dialogs/preferences.ui -./data/ui/dialogs/compose.ui -./data/ui/dialogs/new_account.ui -./data/ui/dialogs/main.ui -./data/ui/dialogs/profile_edit.ui -./data/ui/dialogs/list_edit.ui -./data/gtk/help-overlay.ui -./data/gtk/dropdown/expiration_title.ui -./data/gtk/dropdown/expiration.ui -./data/gtk/dropdown/language_title.ui -./data/gtk/dropdown/language.ui -./data/gtk/dropdown/icon.ui -./data/gtk/dropdown/full.ui +data/gtk/help-overlay.ui +data/ui/menus.ui +data/ui/dialogs/compose.ui +data/ui/dialogs/list_edit.ui +data/ui/dialogs/new_account.ui +data/ui/dialogs/preferences.ui +data/ui/dialogs/profile_edit.ui +data/ui/views/profile_header.ui +data/ui/views/sidebar/view.ui +data/ui/widgets/announcement.ui +data/ui/widgets/status.ui -./src/Widgets/Widgetizable.vala -./src/Widgets/VoteCheckButton.vala -./src/Widgets/VoteBox.vala -./src/Widgets/StatusActionButton.vala -./src/Widgets/Status.vala -./src/Widgets/RichLabel.vala -./src/Widgets/RelationshipButton.vala -./src/Widgets/PreviewCard.vala -./src/Widgets/Notification.vala -./src/Widgets/MarkupView.vala -./src/Widgets/LabelWithWidgets.vala -./src/Widgets/EmojiLabel.vala -./src/Widgets/Emoji.vala -./src/Widgets/CustomEmojiChooser.vala -./src/Widgets/Conversation.vala -./src/Widgets/BookWyrmPage.vala -./src/Widgets/Background.vala -./src/Widgets/Avatar.vala -./src/Widgets/Attachment/Item.vala -./src/Widgets/Attachment/Image.vala -./src/Widgets/Attachment/Box.vala -./src/Views/MediaViewer.vala -./src/Views/Timeline.vala -./src/Views/Thread.vala -./src/Views/TabbedBase.vala -./src/Views/StatusStats.vala -./src/Views/Sidebar.vala -./src/Views/Search.vala -./src/Views/Profile.vala -./src/Views/Notifications.vala -./src/Views/Main.vala -./src/Views/Local.vala -./src/Views/Lists.vala -./src/Views/List.vala -./src/Views/Home.vala -./src/Views/Hashtags.vala -./src/Views/Hashtag.vala -./src/Views/FollowRequests.vala -./src/Views/Federated.vala -./src/Views/Favorites.vala -./src/Views/Explore.vala -./src/Views/EditHistory.vala -./src/Views/Conversations.vala -./src/Views/ContentBase.vala -./src/Views/Bookmarks.vala -./src/Views/Base.vala -./src/Utils/Tracking.vala -./src/Utils/Locale.vala -./src/Utils/Html.vala -./src/Utils/Host.vala -./src/Utils/DateTime.vala -./src/Utils/Celebrate.vala -./src/Services/Settings.vala -./src/Services/Network/Streams.vala -./src/Services/Network/Streamable.vala -./src/Services/Network/Request.vala -./src/Services/Network/Network.vala -./src/Services/Cache/ImageCache.vala -./src/Services/Cache/EntityCache.vala -./src/Services/Cache/AbstractCache.vala -./src/Services/Accounts/SecretAccountStore.vala -./src/Services/Accounts/Places.vala -./src/Services/Accounts/Mastodon/Account.vala -./src/Services/Accounts/InstanceAccount.vala -./src/Services/Accounts/AccountStore.vala -./src/Services/Accounts/AccountHolder.vala -./src/Dialogs/Saveable.vala -./src/Dialogs/ProfileEdit.vala -./src/Dialogs/Preferences.vala -./src/Dialogs/NewAccount.vala -./src/Dialogs/MainWindow.vala -./src/Dialogs/Composer/PollPage.vala -./src/Dialogs/Composer/Page.vala -./src/Dialogs/Composer/EditorPage.vala -./src/Dialogs/Composer/Dialog.vala -./src/Dialogs/Composer/Completion/HashtagProvider.vala -./src/Dialogs/Composer/Completion/HandleProvider.vala -./src/Dialogs/Composer/Completion/EmojiProvider.vala -./src/Dialogs/Composer/Completion/CompletionProvider.vala -./src/Dialogs/Composer/AttachmentsPageAttachment.vala -./src/Dialogs/Composer/AttachmentsPage.vala -./src/Application.vala -./src/API/TagHistory.vala -./src/API/Tag.vala -./src/API/Suggestion.vala -./src/API/Status/Source.vala -./src/API/Status/PreviewCard.vala -./src/API/Status/Application.vala -./src/API/Status.vala -./src/API/SearchResults.vala -./src/API/Relationship.vala -./src/API/PollOption.vala -./src/API/Poll.vala -./src/API/Pleroma/Status.vala -./src/API/Pleroma/Instance.vala -./src/API/PeerTube/StreamingPlaylist.vala -./src/API/PeerTube/Resolution.vala -./src/API/PeerTube/File.vala -./src/API/PeerTube.vala -./src/API/Notification.vala -./src/API/Mention.vala -./src/API/List.vala -./src/API/Instance/Mastodon/Configuration/Statuses.vala -./src/API/Instance/Mastodon/Configuration/Reactions.vala -./src/API/Instance/Mastodon/Configuration/Polls.vala -./src/API/Instance/Mastodon/Configuration/MediaAttachments.vala -./src/API/Instance/Mastodon/Configuration.vala -./src/API/Instance.vala -./src/API/Funkwhale/Track.vala -./src/API/Funkwhale.vala -./src/API/Entity.vala -./src/API/EmojiReaction.vala -./src/API/Emoji.vala -./src/API/Conversation.vala -./src/API/BookWyrm/Cover.vala -./src/API/BookWyrm/Author.vala -./src/API/BookWyrm.vala -./src/API/Attachment.vala -./src/API/Akkoma/Source.vala -./src/API/Akkoma.vala -./src/API/AccountField.vala -./src/API/Account/Source.vala -./src/API/Account.vala +src/Application.vala +src/API/Announcement.vala +src/API/Conversation.vala +src/API/Emoji.vala +src/API/Notification.vala +src/API/SearchResults.vala +src/API/Suggestion.vala +src/API/Tag.vala +src/API/Status/PreviewCard.vala +src/Dialogs/NewAccount.vala +src/Dialogs/ProfileEdit.vala +src/Dialogs/Composer/AttachmentsPage.vala +src/Dialogs/Composer/AttachmentsPageAttachment.vala +src/Dialogs/Composer/Dialog.vala +src/Dialogs/Composer/EditorPage.vala +src/Dialogs/Composer/PollPage.vala +src/Services/Settings.vala +src/Services/Accounts/AccountStore.vala +src/Services/Accounts/InstanceAccount.vala +src/Services/Accounts/Mastodon/Account.vala +src/Services/Accounts/SecretAccountStore.vala +src/Utils/DateTime.vala +src/Utils/Units.vala +src/Views/Announcements.vala +src/Views/Base.vala +src/Views/Bookmarks.vala +src/Views/Conversations.vala +src/Views/EditHistory.vala +src/Views/Explore.vala +src/Views/Favorites.vala +src/Views/Federated.vala +src/Views/FollowRequests.vala +src/Views/Hashtag.vala +src/Views/Hashtags.vala +src/Views/Home.vala +src/Views/Lists.vala +src/Views/Local.vala +src/Views/Main.vala +src/Views/MediaViewer.vala +src/Views/Notifications.vala +src/Views/Profile.vala +src/Views/Search.vala +src/Views/Sidebar.vala +src/Views/StatusStats.vala +src/Views/Thread.vala +src/Widgets/Announcement.vala +src/Widgets/BookWyrmPage.vala +src/Widgets/CustomEmojiChooser.vala +src/Widgets/PreviewCard.vala +src/Widgets/RelationshipButton.vala +src/Widgets/Status.vala +src/Widgets/VoteBox.vala +src/Widgets/Attachment/Box.vala +src/Widgets/Attachment/Item.vala +src/Widgets/Status/ActionsRow.vala +src/Widgets/Status/FollowRequestRow.vala +src/Widgets/Status/ReactionsRow.vala From 9413aa436c3222f91cc246c2bf99ec4fdd29fb24 Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Fri, 1 Sep 2023 11:29:42 +0300 Subject: [PATCH 3/4] feat: update_potfiles.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sabri Ünal --- po/POTFILES | 140 +++++++++++++++++++++--------------------- po/update_potfiles.sh | 12 ++++ 2 files changed, 82 insertions(+), 70 deletions(-) create mode 100755 po/update_potfiles.sh diff --git a/po/POTFILES b/po/POTFILES index 95a312a24..b8d815f82 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -1,72 +1,72 @@ -data/dev.geopjr.Tuba.desktop.in -data/dev.geopjr.Tuba.metainfo.xml.in +./data/dev.geopjr.Tuba.desktop.in +./data/dev.geopjr.Tuba.metainfo.xml.in -data/gtk/help-overlay.ui -data/ui/menus.ui -data/ui/dialogs/compose.ui -data/ui/dialogs/list_edit.ui -data/ui/dialogs/new_account.ui -data/ui/dialogs/preferences.ui -data/ui/dialogs/profile_edit.ui -data/ui/views/profile_header.ui -data/ui/views/sidebar/view.ui -data/ui/widgets/announcement.ui -data/ui/widgets/status.ui +./data/gtk/help-overlay.ui +./data/ui/dialogs/compose.ui +./data/ui/dialogs/list_edit.ui +./data/ui/dialogs/new_account.ui +./data/ui/dialogs/preferences.ui +./data/ui/dialogs/profile_edit.ui +./data/ui/menus.ui +./data/ui/views/profile_header.ui +./data/ui/views/sidebar/view.ui +./data/ui/widgets/announcement.ui +./data/ui/widgets/status.ui -src/Application.vala -src/API/Announcement.vala -src/API/Conversation.vala -src/API/Emoji.vala -src/API/Notification.vala -src/API/SearchResults.vala -src/API/Suggestion.vala -src/API/Tag.vala -src/API/Status/PreviewCard.vala -src/Dialogs/NewAccount.vala -src/Dialogs/ProfileEdit.vala -src/Dialogs/Composer/AttachmentsPage.vala -src/Dialogs/Composer/AttachmentsPageAttachment.vala -src/Dialogs/Composer/Dialog.vala -src/Dialogs/Composer/EditorPage.vala -src/Dialogs/Composer/PollPage.vala -src/Services/Settings.vala -src/Services/Accounts/AccountStore.vala -src/Services/Accounts/InstanceAccount.vala -src/Services/Accounts/Mastodon/Account.vala -src/Services/Accounts/SecretAccountStore.vala -src/Utils/DateTime.vala -src/Utils/Units.vala -src/Views/Announcements.vala -src/Views/Base.vala -src/Views/Bookmarks.vala -src/Views/Conversations.vala -src/Views/EditHistory.vala -src/Views/Explore.vala -src/Views/Favorites.vala -src/Views/Federated.vala -src/Views/FollowRequests.vala -src/Views/Hashtag.vala -src/Views/Hashtags.vala -src/Views/Home.vala -src/Views/Lists.vala -src/Views/Local.vala -src/Views/Main.vala -src/Views/MediaViewer.vala -src/Views/Notifications.vala -src/Views/Profile.vala -src/Views/Search.vala -src/Views/Sidebar.vala -src/Views/StatusStats.vala -src/Views/Thread.vala -src/Widgets/Announcement.vala -src/Widgets/BookWyrmPage.vala -src/Widgets/CustomEmojiChooser.vala -src/Widgets/PreviewCard.vala -src/Widgets/RelationshipButton.vala -src/Widgets/Status.vala -src/Widgets/VoteBox.vala -src/Widgets/Attachment/Box.vala -src/Widgets/Attachment/Item.vala -src/Widgets/Status/ActionsRow.vala -src/Widgets/Status/FollowRequestRow.vala -src/Widgets/Status/ReactionsRow.vala +./src/API/Announcement.vala +./src/API/Conversation.vala +./src/API/Emoji.vala +./src/API/Notification.vala +./src/API/SearchResults.vala +./src/API/Status/PreviewCard.vala +./src/API/Suggestion.vala +./src/API/Tag.vala +./src/Application.vala +./src/Dialogs/Composer/AttachmentsPageAttachment.vala +./src/Dialogs/Composer/AttachmentsPage.vala +./src/Dialogs/Composer/Dialog.vala +./src/Dialogs/Composer/EditorPage.vala +./src/Dialogs/Composer/PollPage.vala +./src/Dialogs/NewAccount.vala +./src/Dialogs/ProfileEdit.vala +./src/Services/Accounts/AccountStore.vala +./src/Services/Accounts/InstanceAccount.vala +./src/Services/Accounts/Mastodon/Account.vala +./src/Services/Accounts/SecretAccountStore.vala +./src/Services/Settings.vala +./src/Utils/DateTime.vala +./src/Utils/Units.vala +./src/Views/Announcements.vala +./src/Views/Base.vala +./src/Views/Bookmarks.vala +./src/Views/Conversations.vala +./src/Views/EditHistory.vala +./src/Views/Explore.vala +./src/Views/Favorites.vala +./src/Views/Federated.vala +./src/Views/FollowRequests.vala +./src/Views/Hashtags.vala +./src/Views/Hashtag.vala +./src/Views/Home.vala +./src/Views/Lists.vala +./src/Views/Local.vala +./src/Views/Main.vala +./src/Views/MediaViewer.vala +./src/Views/Notifications.vala +./src/Views/Profile.vala +./src/Views/Search.vala +./src/Views/Sidebar.vala +./src/Views/StatusStats.vala +./src/Views/Thread.vala +./src/Widgets/Announcement.vala +./src/Widgets/Attachment/Box.vala +./src/Widgets/Attachment/Item.vala +./src/Widgets/BookWyrmPage.vala +./src/Widgets/CustomEmojiChooser.vala +./src/Widgets/PreviewCard.vala +./src/Widgets/RelationshipButton.vala +./src/Widgets/Status/ActionsRow.vala +./src/Widgets/Status/FollowRequestRow.vala +./src/Widgets/Status/ReactionsRow.vala +./src/Widgets/Status.vala +./src/Widgets/VoteBox.vala diff --git a/po/update_potfiles.sh b/po/update_potfiles.sh new file mode 100755 index 000000000..169ef392a --- /dev/null +++ b/po/update_potfiles.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ $(basename "$PWD") = "po" ]; then + cd .. +fi + + +find ./ -type f -name "*.in" | sort > po/POTFILES +echo "" >> po/POTFILES +find ./ -type f -name "*.ui" -exec grep -l "translatable=\"yes\"" {} \; | sort >> po/POTFILES +echo "" >> po/POTFILES +find ./ -type f -name "*.vala" -exec grep -l "_(\"" {} \; | sort >> po/POTFILES From 754bf4a462dae40903d2808be63d57f8a4897dcb Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Fri, 1 Sep 2023 11:31:25 +0300 Subject: [PATCH 4/4] chore: remove extra newline --- po/update_potfiles.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/po/update_potfiles.sh b/po/update_potfiles.sh index 169ef392a..a9425628f 100755 --- a/po/update_potfiles.sh +++ b/po/update_potfiles.sh @@ -4,7 +4,6 @@ if [ $(basename "$PWD") = "po" ]; then cd .. fi - find ./ -type f -name "*.in" | sort > po/POTFILES echo "" >> po/POTFILES find ./ -type f -name "*.ui" -exec grep -l "translatable=\"yes\"" {} \; | sort >> po/POTFILES