diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-08 16:39:56 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-09 15:07:27 +0100 |
| commit | 8ed264680b1f3f94b6aa5176824d4ccadfc30322 (patch) | |
| tree | 6fb815549b2f1ce4694f32dee216a628a221ecd4 /core/text/i18n/gettext.odin | |
| parent | 5bf30b2d562dd7b746a351dce333914e2ca958c8 (diff) | |
Remove all `core:os` imports from JS targets
Fix `local_tz_name` on FreeBSD.
Diffstat (limited to 'core/text/i18n/gettext.odin')
| -rw-r--r-- | core/text/i18n/gettext.odin | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/text/i18n/gettext.odin b/core/text/i18n/gettext.odin index 4aa86a35d..b0e3dae67 100644 --- a/core/text/i18n/gettext.odin +++ b/core/text/i18n/gettext.odin @@ -125,14 +125,6 @@ parse_mo_from_bytes :: proc(data: []byte, options := DEFAULT_PARSE_OPTIONS, plur return } -parse_mo_file :: proc(filename: string, options := DEFAULT_PARSE_OPTIONS, pluralizer: proc(int) -> int = nil, allocator := context.allocator) -> (translation: ^Translation, err: Error) { - data := read_file(filename, allocator) or_return - defer delete(data) - return parse_mo_from_bytes(data, options, pluralizer, allocator) -} - -parse_mo :: proc { parse_mo_file, parse_mo_from_bytes } - @(private) read_u32 :: proc(data: []u8, native_endian := true) -> (res: u32, err: Error) { if len(data) < size_of(u32) { return 0, .Premature_EOF } |