fputs(_(""))下划线代表什么?

8 c

我终于让自己看了一些linux代码.我现在正在寻找"ls.c".

在底部的函数"usage()"中,我发现了很多这些语句:

  fputs (_("\
  List information about the FILEs (the current directory by default).\n\
  Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
  \n\
  "), stdout);
Run Code Online (Sandbox Code Playgroud)

这是什么意思?它是L"string"或_T"string"还是全新的东西?我还必须承认我不知道用什么词来搜索这样的东西.

希望您能够帮助我.

Cat*_*lus 10

它是libintl aka gettext用于可翻译字符串的约定.当它运行时,gettext函数(_别名)将返回原始字符串或翻译字符串,具体取决于区域设置和所述字符串的可用性.