-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial implementation of i18n/l10n
- Loading branch information
Showing
18 changed files
with
371 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This file is auto-generated! check build-support/check-zig-cache-hash.sh for | ||
# more details. | ||
"sha256-2zXNHWSSWjnpW8oHu2sufT5+Ms4IKWaH6yRARQeMcxk=" | ||
"sha256-n9Va8twZZ9wqbC46vPp/oi7kd8f4D8VSDoar8m4ttZs=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const std = @import("std"); | ||
|
||
pub fn build(b: *std.Build) !void { | ||
const target = b.standardTargetOptions(.{}); | ||
const optimize = b.standardOptimizeOption(.{}); | ||
|
||
const module = b.addModule("libintl", .{ | ||
.root_source_file = b.path("main.zig"), | ||
.target = target, | ||
.optimize = optimize, | ||
}); | ||
|
||
const lib = b.addStaticLibrary(.{ | ||
.name = "libintl", | ||
.target = target, | ||
.optimize = optimize, | ||
}); | ||
|
||
lib.linkLibC(); | ||
|
||
if (!target.result.isGnuLibC()) { | ||
lib.linkSystemLibrary2("intl", .{ | ||
.preferred_link_mode = .dynamic, | ||
.search_strategy = .mode_first, | ||
}); | ||
} | ||
|
||
b.installArtifact(lib); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
msgid "" | ||
msgstr "" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: src/apprt/gtk/App.zig:1843 src/apprt/gtk/Window.zig:899 | ||
msgid "About Ghostty" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Tab.zig:147 | ||
msgid "All terminal sessions in this tab will be terminated." | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Window.zig:781 | ||
msgid "All terminal sessions in this window will be terminated." | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:170 | ||
msgid "Allow" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:248 | ||
msgid "" | ||
"An application is attempting to read from the clipboard.\n" | ||
"The current clipboard contents are shown below.\n" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:252 | ||
msgid "" | ||
"An application is attempting to write to the clipboard.\n" | ||
"The content to write is shown below.\n" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:237 | ||
msgid "Authorize Clipboard Access" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:169 | ||
msgid "Cancel" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1830 | ||
msgid "Close Tab" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1833 | ||
msgid "Close Window" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Tab.zig:143 | ||
msgid "Close this tab?" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Surface.zig:732 | ||
msgid "Close this terminal?" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Window.zig:777 | ||
msgid "Close this window?" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Surface.zig:1145 | ||
msgid "Copied to clipboard" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1864 | ||
msgid "Copy" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:170 | ||
msgid "Deny" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Window.zig:880 | ||
msgid "Ghostty Developers" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/inspector.zig:143 | ||
msgid "Ghostty: Terminal Inspector" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1890 | ||
msgid "Menu" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1829 src/apprt/gtk/Window.zig:201 | ||
msgid "New Tab" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1828 | ||
msgid "New Window" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1841 | ||
msgid "Open Configuration" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1865 src/apprt/gtk/ClipboardConfirmationWindow.zig:169 | ||
msgid "Paste" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:245 | ||
msgid "" | ||
"Pasting this text into the terminal may be dangerous as it looks like some commands may be executed.\n" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1842 | ||
msgid "Reload Configuration" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1880 | ||
msgid "Reset" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1832 src/apprt/gtk/App.zig:1873 | ||
msgid "Split Down" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1831 src/apprt/gtk/App.zig:1872 | ||
msgid "Split Right" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/App.zig:1840 src/apprt/gtk/App.zig:1881 | ||
msgid "Terminal Inspector" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Surface.zig:736 | ||
msgid "" | ||
"There is still a running process in the terminal. Closing the terminal will kill this process.\n" | ||
"Are you sure you want to close the terminal?\n" | ||
"\n" | ||
"Click 'No' to cancel and return to your terminal.\n" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/Window.zig:174 | ||
msgid "View Open Tabs" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ClipboardConfirmationWindow.zig:236 | ||
msgid "Warning: Potentially Unsafe Paste" | ||
msgstr "" | ||
|
||
#: src/apprt/gtk/ResizeOverlay.zig:99 | ||
msgid "c" | ||
msgid_plural "c" | ||
msgstr[0] "" | ||
msgstr[1] "" | ||
|
||
#: src/apprt/gtk/ResizeOverlay.zig:100 | ||
msgid "r" | ||
msgid_plural "r" | ||
msgstr[0] "" | ||
msgstr[1] "" | ||
|
||
#: src/apprt/gtk/Window.zig:220 | ||
msgid "⚠️ You're running a debug build of Ghostty! Performance will be degraded." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.