unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 2378d3f06c369611fc34a3c747453f89733a4843 1293 bytes (raw)
name: website/sexp-xgettext.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
;;; GNU Guix web site
;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
;;;
;;; This file is part of the GNU Guix web site.
;;;
;;; The GNU Guix web site is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU Affero General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; The GNU Guix web site is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU Affero General Public License for more details.
;;;
;;; You should have received a copy of the GNU Affero General Public License
;;; along with the GNU Guix web site.  If not, see <http://www.gnu.org/licenses/>.

(define-module (sexp-xgettext)
  #:export (%current-mo-file
            mo-lookup))

(define %current-mo-file
  (make-parameter #f))

(define (mo-lookup msg #:key number msgctxt)
  "Return the translation of MSG from the %CURRENT-MO-FILE for
NUMBER (like n in ngettext) that has the specified MSGCTXT (like
pgettext)."
  ;; TODO CURRENTLY THIS FUNCTION USES guix/build/po.scm TO LOOK UP
  ;; TRANSLATIONS FROM A PO FILE AND NOT FROM AN MO FILE

debug log:

solving 2378d3f ...
found 2378d3f in https://yhetil.org/guix-devel/20190726111155.qospxvrw7rnuwtok@pelzflorian.localdomain/

applying [1/1] https://yhetil.org/guix-devel/20190726111155.qospxvrw7rnuwtok@pelzflorian.localdomain/
diff --git a/website/sexp-xgettext.scm b/website/sexp-xgettext.scm
new file mode 100644
index 0000000..2378d3f

Checking patch website/sexp-xgettext.scm...
Applied patch website/sexp-xgettext.scm cleanly.

index at:
100644 2378d3f06c369611fc34a3c747453f89733a4843	website/sexp-xgettext.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).