[gjs: 4/6] doc: Point to new bug blocking the deprecation of Format




commit e5c5d830fe9268cc7bfddc0763521b0fadb8dc18
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Aug 6 12:03:44 2022 -0700

    doc: Point to new bug blocking the deprecation of Format
    
    xgettext now supports plain template strings without any interpolations,
    but this xgettext bug is the only thing blocking us deprecating the Format
    module entirely.

 doc/Modules.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/doc/Modules.md b/doc/Modules.md
index 1e5755199..5b822b6fb 100644
--- a/doc/Modules.md
+++ b/doc/Modules.md
@@ -99,7 +99,7 @@ drawingArea.connect("draw", (widget, cr) => {
 
 **Import with `const Format = imports.format;`**
 
-The format import is mostly obsolete, providing `vprintf()`, `printf()` and `format()`. Native [template 
literals][template-literals] should be preferred now, except in few situations like Gettext (See [Bug 
#50920][bug-50920]).
+The format import is mostly obsolete, providing `vprintf()`, `printf()` and `format()`. Native [template 
literals][template-literals] should be preferred now, except in few situations like Gettext (See [Bug 
#60027][bug-60027]).
 
 ```js
 let foo = "Pi";
@@ -123,7 +123,7 @@ Gettext.ngettext("I have %d apple", "I have %d apples", num).format(num);
 ```
 
 [template-literals]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
-[bug-50920]: https://savannah.gnu.org/bugs/?50920
+[bug-60027]: https://savannah.gnu.org/bugs/?60027
 
 ## [Gettext](https://gitlab.gnome.org/GNOME/gjs/blob/HEAD/modules/script/gettext.js)
 


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