Credential identities are more carefully prepared for display now
This commit is contained in:
parent
60f1b4ccfb
commit
d9bfcc3e49
@ -2,7 +2,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: EAPMethods\n"
|
"Project-Id-Version: EAPMethods\n"
|
||||||
"POT-Creation-Date: 2016-08-31 14:32+0200\n"
|
"POT-Creation-Date: 2016-08-31 16:49+0200\n"
|
||||||
"PO-Revision-Date: 2016-06-02 12:27+0200\n"
|
"PO-Revision-Date: 2016-06-02 12:27+0200\n"
|
||||||
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
||||||
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\n"
|
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\n"
|
||||||
@ -463,15 +463,15 @@ msgstr ""
|
|||||||
msgid "<error>"
|
msgid "<error>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/EAPBase_UI/include/EAP_UI.h:724 lib/EAPBase_UI/include/EAP_UI.h:735
|
#: lib/EAPBase_UI/include/EAP_UI.h:726 lib/EAPBase_UI/include/EAP_UI.h:735
|
||||||
msgid "<empty>"
|
msgid "<empty>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/EAPBase_UI/include/EAP_UI.h:727 lib/EAPBase_UI/include/EAP_UI.h:738
|
#: lib/EAPBase_UI/include/EAP_UI.h:726 lib/EAPBase_UI/include/EAP_UI.h:735
|
||||||
msgid "<blank>"
|
msgid "<blank ID>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/EAPBase_UI/include/EAP_UI.h:944
|
#: lib/EAPBase_UI/include/EAP_UI.h:940
|
||||||
msgid "<Your Organization>"
|
msgid "<Your Organization>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -144,9 +144,10 @@ wstring eap::credentials::get_identity() const
|
|||||||
|
|
||||||
tstring eap::credentials::get_name() const
|
tstring eap::credentials::get_name() const
|
||||||
{
|
{
|
||||||
if (empty()) return _T("<empty>");
|
|
||||||
tstring identity(std::move(get_identity()));
|
tstring identity(std::move(get_identity()));
|
||||||
return !identity.empty() ? identity : _T("<blank>");
|
return
|
||||||
|
!identity.empty() ? identity :
|
||||||
|
empty() ? _T("<empty>") : _T("<blank ID>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -720,23 +720,19 @@ protected:
|
|||||||
|
|
||||||
inline void UpdateOwnIdentity()
|
inline void UpdateOwnIdentity()
|
||||||
{
|
{
|
||||||
if (m_cred_own.empty())
|
wxString identity(m_cred_own.get_identity());
|
||||||
m_own_identity->SetValue(_("<empty>"));
|
m_own_identity->SetValue(
|
||||||
else {
|
!identity.empty() ? identity :
|
||||||
wxString identity(m_cred_own.get_name());
|
m_cred_own.empty() ? _("<empty>") : _("<blank ID>"));
|
||||||
m_own_identity->SetValue(!identity.empty() ? identity : _("<blank>"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void UpdatePresharedIdentity()
|
inline void UpdatePresharedIdentity()
|
||||||
{
|
{
|
||||||
if (m_cred_preshared.empty())
|
wxString identity(m_cred_preshared.get_identity());
|
||||||
m_preshared_identity->SetValue(_("<empty>"));
|
m_preshared_identity->SetValue(
|
||||||
else {
|
!identity.empty() ? identity :
|
||||||
wxString identity(m_cred_preshared.get_name());
|
m_cred_preshared.empty() ? _("<empty>") : _("<blank ID>"));
|
||||||
m_preshared_identity->SetValue(!identity.empty() ? identity : _("<blank>"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \endcond
|
/// \endcond
|
||||||
|
Loading…
x
Reference in New Issue
Block a user