bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running gettext() in wasm


From: Bruno Haible
Subject: Re: running gettext() in wasm
Date: Sat, 21 Dec 2024 16:33:39 +0100

Hi,

Vivien Kraus wrote:
> I am trying to implement a minimal Gettext run-time in pure Scheme, so
> that it can run with Hoot [1]. It would be a lot of trouble to get the
> actual gettext to run there.
> 
> [1] https://spritely.institute/hoot

Two thoughts on this:

  * Your page says that the purpose is to run code "on Wasm GC-capable
    web browsers".
    Whereas the .mo files were designed to run code on platforms with a
    POSIX file system, especially with mmap.

    How do you intend to map the file system to the web browser model?
    Will the server send the entire file system (with all *.mo files)
    to the client? Or will the server only send the one or two relevant
    .mo files (say, fr_CA.mo and fr.mo for users in Quebec) to the client?

  * The native data format in web browsers is JSON. Why not convert
    a PO file to a JSON file, instead of .mo, and send that to the browser?
    That would not need any Scheme code on the client, right?

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]