Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up_("string") in code #6078
Comments
This comment has been minimized.
This comment has been minimized.
|
This is for the translation. _ is actually a macro to some gettext function which returns the translated string (based on the current locale at runtime). Google gettext and i18n. |
This comment has been minimized.
This comment has been minimized.
|
Thanks a lot. did I miss some documentation about this? |
This comment has been minimized.
This comment has been minimized.
|
It is common knowledge when dealing with i18n |
This comment has been minimized.
This comment has been minimized.
|
I had no idea. |
This comment has been minimized.
This comment has been minimized.
|
Google gettext |
This comment has been minimized.
This comment has been minimized.
|
I have :D |
Soyweiser
closed this
Feb 12, 2014
Soyweiser
reopened this
Feb 12, 2014
Soyweiser
closed this
Feb 12, 2014
This comment has been minimized.
This comment has been minimized.
|
It's a macro that expands to the function "gettext()". This is a function
|
Soyweiser commentedFeb 12, 2014
Question, why do we have _("string") in the code. I have no idea what that is supposed to do. And I would think "string" works just as well.