LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1348|回复: 5

括号前面加下划线是什么意思?

[复制链接]
发表于 2010-6-22 21:45:28 | 显示全部楼层 |阅读模式
这是tint2源代码中的一个函数,我想问一下其中“_("Theming tool for tint2 panel")”这里是什么意思?为什么括号前面加一个下划线?
gtk_show_about_dialog(g_window, "name", g_get_application_name( ),
                                                                "comments", _("Theming tool for tint2 panel"),
                                                                "version", VERSION_STRING,
                                                                "copyright", _("Copyright 2009 tint2 team\nTint2 License GNU GPL version 2\nTintwizard License GNU GPL version 3"),
                                                                "logo-icon-name", NULL, "authors", authors,
                                                                /* Translators: translate "translator-credits" as
                                                                        your name to have it appear in the credits in the "About"
                                                                        dialog */
                                                                "translator-credits", _("translator-credits"),
                                                                NULL);
发表于 2010-6-23 09:57:23 | 显示全部楼层
了解一下gettext即可。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-23 16:11:33 | 显示全部楼层
谢谢,不过还是希望简单的说一下。这是一个宏吗?
回复 支持 反对

使用道具 举报

发表于 2010-7-13 21:48:00 | 显示全部楼层
用gettext的代码会在开头加
  1. #define _(str) gettext(str)
复制代码
回复 支持 反对

使用道具 举报

发表于 2010-8-1 00:43:51 | 显示全部楼层
原来还有这种东西,
回复 支持 反对

使用道具 举报

发表于 2010-8-15 19:01:55 | 显示全部楼层
方言比较多, 还是原本就学得不够, 哈哈。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表