Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e1bbc7e

Browse files
minduser00SmallJoker
authored andcommittedApr 9, 2018
More readable
1 parent fd247d5 commit e1bbc7e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

Diff for: ‎src/gettext.h

-8
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,11 @@ extern wchar_t *utf8_to_wide_c(const char *str);
5151
// The returned string is allocated using new
5252
inline const wchar_t *wgettext(const char *str)
5353
{
54-
#if USE_GETTEXT
5554
// We must check here that is not an empty string to avoid trying to translate it
5655
return str[0] ? utf8_to_wide_c(gettext(str)) : utf8_to_wide_c("");
57-
#else
58-
return utf8_to_wide_c(str);
59-
#endif
6056
}
6157

6258
inline std::string strgettext(const std::string &text)
6359
{
64-
#if USE_GETTEXT
6560
return text.empty() ? text.c_str() : gettext(text.c_str());
66-
#else
67-
return text.c_str();
68-
#endif
6961
}

0 commit comments

Comments
 (0)
Please sign in to comment.