diff options
Diffstat (limited to 'src/mod_vcard_sql.erl')
-rw-r--r-- | src/mod_vcard_sql.erl | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/src/mod_vcard_sql.erl b/src/mod_vcard_sql.erl index 28a6f2ce5..6092c3500 100644 --- a/src/mod_vcard_sql.erl +++ b/src/mod_vcard_sql.erl @@ -37,6 +37,7 @@ -include("mod_vcard.hrl"). -include("logger.hrl"). -include("ejabberd_sql_pt.hrl"). +-include("translate.hrl"). %%%=================================================================== %%% API @@ -150,32 +151,32 @@ search(LServer, Data, AllowReturnAll, MaxMatch) -> end. search_fields(_LServer) -> - [{translate:mark(<<"User">>), <<"user">>}, - {translate:mark(<<"Full Name">>), <<"fn">>}, - {translate:mark(<<"Name">>), <<"first">>}, - {translate:mark(<<"Middle Name">>), <<"middle">>}, - {translate:mark(<<"Family Name">>), <<"last">>}, - {translate:mark(<<"Nickname">>), <<"nick">>}, - {translate:mark(<<"Birthday">>), <<"bday">>}, - {translate:mark(<<"Country">>), <<"ctry">>}, - {translate:mark(<<"City">>), <<"locality">>}, - {translate:mark(<<"Email">>), <<"email">>}, - {translate:mark(<<"Organization Name">>), <<"orgname">>}, - {translate:mark(<<"Organization Unit">>), <<"orgunit">>}]. + [{?T("User"), <<"user">>}, + {?T("Full Name"), <<"fn">>}, + {?T("Name"), <<"first">>}, + {?T("Middle Name"), <<"middle">>}, + {?T("Family Name"), <<"last">>}, + {?T("Nickname"), <<"nick">>}, + {?T("Birthday"), <<"bday">>}, + {?T("Country"), <<"ctry">>}, + {?T("City"), <<"locality">>}, + {?T("Email"), <<"email">>}, + {?T("Organization Name"), <<"orgname">>}, + {?T("Organization Unit"), <<"orgunit">>}]. search_reported(_LServer) -> - [{translate:mark(<<"Jabber ID">>), <<"jid">>}, - {translate:mark(<<"Full Name">>), <<"fn">>}, - {translate:mark(<<"Name">>), <<"first">>}, - {translate:mark(<<"Middle Name">>), <<"middle">>}, - {translate:mark(<<"Family Name">>), <<"last">>}, - {translate:mark(<<"Nickname">>), <<"nick">>}, - {translate:mark(<<"Birthday">>), <<"bday">>}, - {translate:mark(<<"Country">>), <<"ctry">>}, - {translate:mark(<<"City">>), <<"locality">>}, - {translate:mark(<<"Email">>), <<"email">>}, - {translate:mark(<<"Organization Name">>), <<"orgname">>}, - {translate:mark(<<"Organization Unit">>), <<"orgunit">>}]. + [{?T("Jabber ID"), <<"jid">>}, + {?T("Full Name"), <<"fn">>}, + {?T("Name"), <<"first">>}, + {?T("Middle Name"), <<"middle">>}, + {?T("Family Name"), <<"last">>}, + {?T("Nickname"), <<"nick">>}, + {?T("Birthday"), <<"bday">>}, + {?T("Country"), <<"ctry">>}, + {?T("City"), <<"locality">>}, + {?T("Email"), <<"email">>}, + {?T("Organization Name"), <<"orgname">>}, + {?T("Organization Unit"), <<"orgunit">>}]. remove_user(LUser, LServer) -> ejabberd_sql:sql_transaction( |