diff --git a/dist/linux/ghostty_nautilus.py b/dist/linux/ghostty_nautilus.py index 01202031c0..02bbe3f604 100644 --- a/dist/linux/ghostty_nautilus.py +++ b/dist/linux/ghostty_nautilus.py @@ -17,8 +17,13 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +from pathlib import Path +import gettext from gi.repository import Nautilus, GObject, Gio +DOMAIN = "com.mitchellh.ghostty" +locale_dir = Path(__file__).absolute().parents[2] / "locale" +_ = gettext.translation(DOMAIN, locale_dir, fallback=True).gettext def open_in_ghostty_activated(_menu, paths): for path in paths: @@ -45,7 +50,7 @@ def get_paths_to_open(files): def get_items_for_files(name, files): paths = get_paths_to_open(files) if paths: - item = Nautilus.MenuItem(name=name, label='Open in Ghostty', + item = Nautilus.MenuItem(name=name, label=_('Open in Ghostty'), icon='com.mitchellh.ghostty') item.connect('activate', open_in_ghostty_activated, paths) return [item] diff --git a/po/bg_BG.UTF-8.po b/po/bg_BG.UTF-8.po index 529a5cf30b..3f7d55913a 100644 --- a/po/bg_BG.UTF-8.po +++ b/po/bg_BG.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 22:07+0200\n" "Last-Translator: reo101 \n" "Language-Team: Bulgarian \n" @@ -18,6 +18,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/ca_ES.UTF-8.po b/po/ca_ES.UTF-8.po index 60244552cb..1b3ba1a0e5 100644 --- a/po/ca_ES.UTF-8.po +++ b/po/ca_ES.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2025-08-24 19:22+0200\n" "Last-Translator: Kristofer Soler " "<31729650+KristoferSoler@users.noreply.github.com>\n" @@ -19,6 +19,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/com.mitchellh.ghostty.pot b/po/com.mitchellh.ghostty.pot index 032ca52c2c..14b5c27a96 100644 --- a/po/com.mitchellh.ghostty.pot +++ b/po/com.mitchellh.ghostty.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/de_DE.UTF-8.po b/po/de_DE.UTF-8.po index 0115b95551..6e7d503939 100644 --- a/po/de_DE.UTF-8.po +++ b/po/de_DE.UTF-8.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-13 08:05+0100\n" "Last-Translator: Klaus Hipp \n" "Language-Team: German \n" @@ -20,6 +20,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/es_AR.UTF-8.po b/po/es_AR.UTF-8.po index 188f49e372..930d8ada5c 100644 --- a/po/es_AR.UTF-8.po +++ b/po/es_AR.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 17:50-0300\n" "Last-Translator: Alan Moyano \n" "Language-Team: Argentinian \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/es_BO.UTF-8.po b/po/es_BO.UTF-8.po index a29256e696..7f103f960a 100644 --- a/po/es_BO.UTF-8.po +++ b/po/es_BO.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-12 17:46+0200\n" "Last-Translator: Miguel Peredo \n" "Language-Team: Spanish \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/fr_FR.UTF-8.po b/po/fr_FR.UTF-8.po index 1230ea691d..1687b49095 100644 --- a/po/fr_FR.UTF-8.po +++ b/po/fr_FR.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 21:18+0200\n" "Last-Translator: Gerry Agbobada \n" "Language-Team: French \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/ga_IE.UTF-8.po b/po/ga_IE.UTF-8.po index 92c0adb11f..72f237f862 100644 --- a/po/ga_IE.UTF-8.po +++ b/po/ga_IE.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2025-08-26 15:46+0100\n" "Last-Translator: Aindriú Mac Giolla Eoin \n" "Language-Team: Irish \n" @@ -18,6 +18,10 @@ msgstr "" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;\n" "X-Generator: Poedit 3.4.2\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/he_IL.UTF-8.po b/po/he_IL.UTF-8.po index 3c2896763f..7d7c8d7cc9 100644 --- a/po/he_IL.UTF-8.po +++ b/po/he_IL.UTF-8.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-11 22:45+0300\n" "Last-Translator: Sl (Shahaf Levi), Sl's Repository Ltd " "\n" @@ -20,6 +20,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/hr_HR.UTF-8.po b/po/hr_HR.UTF-8.po index 3ef016d7ba..a73f8fee29 100644 --- a/po/hr_HR.UTF-8.po +++ b/po/hr_HR.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-10 22:25+0200\n" "Last-Translator: Filip7 \n" "Language-Team: Croatian \n" @@ -19,6 +19,10 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/hu_HU.UTF-8.po b/po/hu_HU.UTF-8.po index 28a2f942a8..6a3c618946 100644 --- a/po/hu_HU.UTF-8.po +++ b/po/hu_HU.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-10 18:32+0200\n" "Last-Translator: Balázs Szücs \n" "Language-Team: Hungarian \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/id_ID.UTF-8.po b/po/id_ID.UTF-8.po index 06695bc08b..fc573563da 100644 --- a/po/id_ID.UTF-8.po +++ b/po/id_ID.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2025-08-01 10:15+0700\n" "Last-Translator: Mikail Muzakki \n" "Language-Team: Indonesian \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/it_IT.UTF-8.po b/po/it_IT.UTF-8.po index 8676af30ea..87fc0c756b 100644 --- a/po/it_IT.UTF-8.po +++ b/po/it_IT.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2025-09-06 19:40+0200\n" "Last-Translator: Giacomo Bettini \n" "Language-Team: Italian \n" @@ -18,6 +18,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/ja_JP.UTF-8.po b/po/ja_JP.UTF-8.po index 7406c749ed..24670dfb92 100644 --- a/po/ja_JP.UTF-8.po +++ b/po/ja_JP.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-11 12:02+0900\n" "Last-Translator: Takayuki Nagatomi \n" "Language-Team: Japanese\n" @@ -18,6 +18,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/ko_KR.UTF-8.po b/po/ko_KR.UTF-8.po index e0cd946ca3..478ab9c201 100644 --- a/po/ko_KR.UTF-8.po +++ b/po/ko_KR.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-11 12:50+0900\n" "Last-Translator: GyuYong Jung \n" "Language-Team: Korean \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/lt_LT.UTF-8.po b/po/lt_LT.UTF-8.po index 7e9c17ae9f..ed0ec86e6a 100644 --- a/po/lt_LT.UTF-8.po +++ b/po/lt_LT.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-10 08:14+0100\n" "Last-Translator: Tadas Lotuzas \n" "Language-Team: Language LT\n" @@ -16,6 +16,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/lv_LV.UTF-8.po b/po/lv_LV.UTF-8.po index bcc3785c0e..96d340175a 100644 --- a/po/lv_LV.UTF-8.po +++ b/po/lv_LV.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 03:24+0200\n" "Last-Translator: Ēriks Remess \n" "Language-Team: Latvian\n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n!=0 ? 1 : 2);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/mk_MK.UTF-8.po b/po/mk_MK.UTF-8.po index 8286fed319..539283271d 100644 --- a/po/mk_MK.UTF-8.po +++ b/po/mk_MK.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-12 17:00+0100\n" "Last-Translator: Andrej Daskalov \n" "Language-Team: Macedonian\n" @@ -17,6 +17,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/nb_NO.UTF-8.po b/po/nb_NO.UTF-8.po index 7bbd9bd4e3..68d470ceb1 100644 --- a/po/nb_NO.UTF-8.po +++ b/po/nb_NO.UTF-8.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-12 15:50+0000\n" "Last-Translator: Hanna Rose \n" "Language-Team: Norwegian Bokmal \n" @@ -20,6 +20,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/nl_NL.UTF-8.po b/po/nl_NL.UTF-8.po index 80a82e5643..9caee41a4f 100644 --- a/po/nl_NL.UTF-8.po +++ b/po/nl_NL.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 20:39+0100\n" "Last-Translator: Nico Geesink \n" "Language-Team: Dutch \n" @@ -18,6 +18,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/pl_PL.UTF-8.po b/po/pl_PL.UTF-8.po index 6129932a35..974fbb2503 100644 --- a/po/pl_PL.UTF-8.po +++ b/po/pl_PL.UTF-8.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-11 14:12+0100\n" "Last-Translator: trag1c \n" "Language-Team: Polish \n" @@ -20,6 +20,10 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/pt_BR.UTF-8.po b/po/pt_BR.UTF-8.po index 17313ce4f4..7830643436 100644 --- a/po/pt_BR.UTF-8.po +++ b/po/pt_BR.UTF-8.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2025-09-15 13:57-0300\n" "Last-Translator: Nilton Perim Neto \n" "Language-Team: Brazilian Portuguese 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/ru_RU.UTF-8.po b/po/ru_RU.UTF-8.po index 0992aba7bf..e4e314141c 100644 --- a/po/ru_RU.UTF-8.po +++ b/po/ru_RU.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2025-09-03 01:50+0300\n" "Last-Translator: Ivan Bastrakov \n" "Language-Team: Russian \n" @@ -19,6 +19,10 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/tr_TR.UTF-8.po b/po/tr_TR.UTF-8.po index 0ab029d7d2..322d15d5aa 100644 --- a/po/tr_TR.UTF-8.po +++ b/po/tr_TR.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 22:18+0300\n" "Last-Translator: Emir SARI \n" "Language-Team: Turkish\n" @@ -17,6 +17,10 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/uk_UA.UTF-8.po b/po/uk_UA.UTF-8.po index 6bb67fc39e..5ff919f8f2 100644 --- a/po/uk_UA.UTF-8.po +++ b/po/uk_UA.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-09 21:03+0100\n" "Last-Translator: Volodymyr Chernetskyi " "<19735328+chernetskyi@users.noreply.github.com>\n" @@ -19,6 +19,10 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/zh_CN.UTF-8.po b/po/zh_CN.UTF-8.po index 2a061d66a7..92b79ee216 100644 --- a/po/zh_CN.UTF-8.po +++ b/po/zh_CN.UTF-8.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-12 01:56+0800\n" "Last-Translator: Leah \n" "Language-Team: Chinese (simplified) \n" @@ -17,6 +17,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/po/zh_TW.UTF-8.po b/po/zh_TW.UTF-8.po index 4471872643..25dacd566f 100644 --- a/po/zh_TW.UTF-8.po +++ b/po/zh_TW.UTF-8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.mitchellh.ghostty\n" "Report-Msgid-Bugs-To: m@mitchellh.com\n" -"POT-Creation-Date: 2026-02-16 23:06+0100\n" +"POT-Creation-Date: 2026-02-17 23:16+0100\n" "PO-Revision-Date: 2026-02-10 15:32+0800\n" "Last-Translator: Yi-Jyun Pan \n" "Language-Team: Chinese (traditional)\n" @@ -16,6 +16,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: dist/linux/ghostty_nautilus.py:53 +msgid "Open in Ghostty" +msgstr "" + #: src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/ui/1.4/clipboard-confirmation-dialog.blp:12 #: src/apprt/gtk/class/clipboard_confirmation_dialog.zig:197 diff --git a/src/build/GhosttyI18n.zig b/src/build/GhosttyI18n.zig index 8e31f61b3c..0874676cbf 100644 --- a/src/build/GhosttyI18n.zig +++ b/src/build/GhosttyI18n.zig @@ -65,16 +65,14 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step { "xgettext", "--language=C", // Silence the "unknown extension" errors "--from-code=UTF-8", - "--add-comments=Translators", "--keyword=_", "--keyword=C_:1c,2", - "--package-name=" ++ domain, - "--msgid-bugs-address=m@mitchellh.com", - "--copyright-holder=\"Mitchell Hashimoto, Ghostty contributors\"", - "-o", - "-", }); + // Collect to intermediate .pot file + xgettext.addArg("-o"); + const gtk_pot = xgettext.addOutputFileArg("gtk.pot"); + // Not cacheable due to the gresource files xgettext.has_side_effects = true; @@ -149,16 +147,45 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step { } } + // Add support for localizing our `nautilus` integration + const xgettext_py = b.addSystemCommand(&.{ + "xgettext", + "--language=Python", + "--from-code=UTF-8", + }); + + // Collect to intermediate .pot file + xgettext_py.addArg("-o"); + const py_pot = xgettext_py.addOutputFileArg("py.pot"); + + const nautilus_script_path = "dist/linux/ghostty_nautilus.py"; + xgettext_py.addArg(nautilus_script_path); + xgettext_py.addFileInput(b.path(nautilus_script_path)); + + // Merge pot files + const xgettext_merge = b.addSystemCommand(&.{ + "xgettext", + "--add-comments=Translators", + "--package-name=" ++ domain, + "--msgid-bugs-address=m@mitchellh.com", + "--copyright-holder=\"Mitchell Hashimoto, Ghostty contributors\"", + "-o", + "-", + }); + // py_pot needs to be first on merge order because of `xgettext` behavior around + // charset when merging the two `.pot` files + xgettext_merge.addFileArg(py_pot); + xgettext_merge.addFileArg(gtk_pot); const usf = b.addUpdateSourceFiles(); usf.addCopyFileToSource( - xgettext.captureStdOut(), + xgettext_merge.captureStdOut(), "po/" ++ domain ++ ".pot", ); inline for (locales) |locale| { const msgmerge = b.addSystemCommand(&.{ "msgmerge", "--quiet", "--no-fuzzy-matching" }); msgmerge.addFileArg(b.path("po/" ++ locale ++ ".po")); - msgmerge.addFileArg(xgettext.captureStdOut()); + msgmerge.addFileArg(xgettext_merge.captureStdOut()); usf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po"); }