mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-21 08:58:37 +03:00
os: i18n unsupported on windows
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
const builtin = @import("builtin");
|
||||||
const build_config = @import("../build_config.zig");
|
const build_config = @import("../build_config.zig");
|
||||||
|
|
||||||
const log = std.log.scoped(.i18n);
|
const log = std.log.scoped(.i18n);
|
||||||
@ -47,6 +48,9 @@ pub const InitError = error{
|
|||||||
/// want to set the domain for the entire application since this is also
|
/// want to set the domain for the entire application since this is also
|
||||||
/// used by libghostty.
|
/// used by libghostty.
|
||||||
pub fn init(resources_dir: []const u8) InitError!void {
|
pub fn init(resources_dir: []const u8) InitError!void {
|
||||||
|
// i18n is unsupported on Windows
|
||||||
|
if (builtin.os.tag == .windows) return;
|
||||||
|
|
||||||
// Our resources dir is always nested below the share dir that
|
// Our resources dir is always nested below the share dir that
|
||||||
// is standard for translations.
|
// is standard for translations.
|
||||||
const share_dir = std.fs.path.dirname(resources_dir) orelse
|
const share_dir = std.fs.path.dirname(resources_dir) orelse
|
||||||
|
Reference in New Issue
Block a user