]> Savannah Git Hosting - gnulib.git/commitdiff
file-type: Use the translation domain "gnulib".
authorBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 12:28:43 +0000 (13:28 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 12:28:43 +0000 (13:28 +0100)
* lib/file-type.c (file_type): Use the translation domain "gnulib".
* modules/file-type (Depends-on): Add gnulib-i18n.

ChangeLog
lib/file-type.c
modules/file-type

index 9a114d53ec109f1c09b0562673c1d34523e2b008..f05fb1e31538bc8308a82d4a2fb13daea574c892 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-12-09  Bruno Haible  <bruno@clisp.org>
 
+       file-type: Use the translation domain "gnulib".
+       * lib/file-type.c (file_type): Use the translation domain "gnulib".
+       * modules/file-type (Depends-on): Add gnulib-i18n.
+
        argmatch: Use the translation domain "gnulib".
        * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Use translation domain
        "gnulib" for the literal string here.
index 657ca5c7f9441c05c6fcc263b579ffdeb7485ffd..b605e79c16d56c9c1c3be5095229a2ab5d8ee719 100644 (file)
@@ -27,5 +27,5 @@
 char const *
 file_type (struct stat const *st)
 {
-  return gettext (c_file_type (st));
+  return dgettext ("gnulib", c_file_type (st));
 }
index c2bc9f59ba48f682623f854bde28b817865a5897..5f472e3c1a9b80990b7d60948a67ebe8c9c1efc3 100644 (file)
@@ -8,6 +8,7 @@ lib/file-type.c
 Depends-on:
 c-file-type
 gettext-h
+gnulib-i18n
 sys_stat
 
 configure.ac: