summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2022-08-06 12:03:44 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2022-08-07 21:36:29 -0700
commite5c5d830fe9268cc7bfddc0763521b0fadb8dc18 (patch)
treee03976985f7ea70296dc9cb4807fa616a91545e7
parent969973a7d234d4c26ff4dd569830e49ceeab536f (diff)
downloadgjs-e5c5d830fe9268cc7bfddc0763521b0fadb8dc18.tar.gz
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.
-rw-r--r--doc/Modules.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/Modules.md b/doc/Modules.md
index 1e575519..5b822b6f 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)