diff mbox series

[bug#68907] website: Fix language order.

Message ID 20240203075645.20365-1-julien@lepiller.eu
State New
Headers show
Series [bug#68907] website: Fix language order. | expand

Commit Message

Julien Lepiller Feb. 3, 2024, 7:56 a.m. UTC
* website/apps/base/templates/components.scm (navbar): Fix sorting of
languages.
---
 website/apps/base/templates/components.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 2bf7c25f4bd5f13a2248839f47de972589c9a2f6

Comments

pelzflorian (Florian Pelz) Feb. 3, 2024, 4:27 p.m. UTC | #1
Julien Lepiller <julien@lepiller.eu> writes:
> -                 (lambda (a b) string<?)))
> +                 (lambda (a b) (string<? (car a) (car b)))))

Whoops.  LGTM.  Now as a consequence of the patch, the English website
will be listed as one among many.  I do agree this is better.

Regards,
Florian
Julien Lepiller Feb. 3, 2024, 9:53 p.m. UTC | #2
Le Sat, 03 Feb 2024 17:27:16 +0100,
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> a écrit :

> Julien Lepiller <julien@lepiller.eu> writes:
> > -                 (lambda (a b) string<?)))
> > +                 (lambda (a b) (string<? (car a) (car b)))))  
> 
> Whoops.  LGTM.  Now as a consequence of the patch, the English website
> will be listed as one among many.  I do agree this is better.
> 
> Regards,
> Florian

Thanks, pushed to master as 8dfafa0a91f1e3ca84f7fe7fb8e5e31bf1bb1e8f.
diff mbox series

Patch

diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm
index 241c27e..2a6881e 100644
--- a/website/apps/base/templates/components.scm
+++ b/website/apps/base/templates/components.scm
@@ -516,7 +516,7 @@  manual.
            (sort (delete %current-lingua
                          ietf-tags-file-contents
                          (lambda (a b) (string=? a (car b))))
-                 (lambda (a b) string<?)))
+                 (lambda (a b) (string<? (car a) (car b)))))
           (list
             (menu-item #:label (G_ "Translate")
                        #:active-item active-item