mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Localized provider documentation
This commit is contained in:
parent
a804a2dcde
commit
1d59293ddc
2 changed files with 14 additions and 7 deletions
|
@ -217,6 +217,8 @@ public class EmailProvider implements Parcelable {
|
|||
private static List<EmailProvider> parseProfiles(XmlPullParser xml) {
|
||||
List<EmailProvider> result = null;
|
||||
|
||||
String lang = Locale.getDefault().getLanguage();
|
||||
|
||||
try {
|
||||
EmailProvider provider = null;
|
||||
int eventType = xml.getEventType();
|
||||
|
@ -256,7 +258,9 @@ public class EmailProvider implements Parcelable {
|
|||
provider.maxtls = xml.getAttributeValue(null, "maxtls");
|
||||
provider.link = xml.getAttributeValue(null, "link");
|
||||
|
||||
String documentation = xml.getAttributeValue(null, "documentation");
|
||||
String documentation = xml.getAttributeValue(null, "documentation." + lang);
|
||||
if (documentation == null)
|
||||
documentation = xml.getAttributeValue(null, "documentation");
|
||||
if (documentation != null)
|
||||
provider.documentation = new StringBuilder(documentation);
|
||||
|
||||
|
|
|
@ -42,7 +42,9 @@
|
|||
</provider>
|
||||
<provider
|
||||
name="Outlook"
|
||||
documentation="You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a>."
|
||||
documentation="<b>You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a></b>."
|
||||
documentation.de="<b>Möglicherweise müssen Sie ein <a href="https://support.microsoft.com/de-de/account-billing/verwenden-von-app-kennw%C3%B6rter-mit-apps-die-keine-zweistufige-%C3%BCberpr%C3%BCfung-unterst%C3%BCtzen-5896ed9b-4263-e681-128a-a6f2979a7944">App-Passwort</a> verwenden</b>."
|
||||
documentation.fr="<b>Vous devrez peut-être utiliser <a href="https://support.microsoft.com/fr-fr/account-billing/utilisation-de-mots-de-passe-d-application-avec-des-applications-qui-ne-prennent-pas-en-charge-la-v%C3%A9rification-en-deux-%C3%A9tapes-5896ed9b-4263-e681-128a-a6f2979a7944">un mot de passe d\'application</a></b>."
|
||||
domain="outlook\\..*"
|
||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||
maxtls="1.2"
|
||||
|
@ -61,7 +63,9 @@
|
|||
</provider>
|
||||
<provider
|
||||
name="Live"
|
||||
documentation="You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a>."
|
||||
documentation="<b>You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a></b>."
|
||||
documentation.de="<b>Möglicherweise müssen Sie ein <a href="https://support.microsoft.com/de-de/account-billing/verwenden-von-app-kennw%C3%B6rter-mit-apps-die-keine-zweistufige-%C3%BCberpr%C3%BCfung-unterst%C3%BCtzen-5896ed9b-4263-e681-128a-a6f2979a7944">App-Passwort</a> verwenden</b>."
|
||||
documentation.fr="<b>Vous devrez peut-être utiliser <a href="https://support.microsoft.com/fr-fr/account-billing/utilisation-de-mots-de-passe-d-application-avec-des-applications-qui-ne-prennent-pas-en-charge-la-v%C3%A9rification-en-deux-%C3%A9tapes-5896ed9b-4263-e681-128a-a6f2979a7944">un mot de passe d\'application</a></b>."
|
||||
domain="live\\..*"
|
||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||
maxtls="1.2"
|
||||
|
@ -80,7 +84,9 @@
|
|||
</provider>
|
||||
<provider
|
||||
name="Hotmail"
|
||||
documentation="You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a>."
|
||||
documentation="<b>You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a></b>."
|
||||
documentation.de="<b>Möglicherweise müssen Sie ein <a href="https://support.microsoft.com/de-de/account-billing/verwenden-von-app-kennw%C3%B6rter-mit-apps-die-keine-zweistufige-%C3%BCberpr%C3%BCfung-unterst%C3%BCtzen-5896ed9b-4263-e681-128a-a6f2979a7944">App-Passwort</a> verwenden</b>."
|
||||
documentation.fr="<b>Vous devrez peut-être utiliser <a href="https://support.microsoft.com/fr-fr/account-billing/utilisation-de-mots-de-passe-d-application-avec-des-applications-qui-ne-prennent-pas-en-charge-la-v%C3%A9rification-en-deux-%C3%A9tapes-5896ed9b-4263-e681-128a-a6f2979a7944">un mot de passe d\'application</a></b>."
|
||||
domain="hotmail\\..*"
|
||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||
maxtls="1.2"
|
||||
|
@ -114,7 +120,6 @@
|
|||
<provider
|
||||
name="Outlook"
|
||||
description="Outlook/Office 365"
|
||||
documentation="You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a>."
|
||||
enabled="false"
|
||||
id="office365"
|
||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||
|
@ -155,7 +160,6 @@
|
|||
<provider
|
||||
name="Outlook"
|
||||
description="Outlook/Office 365"
|
||||
documentation="You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a>."
|
||||
id="office365pcke"
|
||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||
maxtls="1.2"
|
||||
|
@ -195,7 +199,6 @@
|
|||
alt="true"
|
||||
debug="true"
|
||||
description="Outlook/Office 365 (alt)"
|
||||
documentation="You may need to use <a href="https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944">an app password</a>."
|
||||
id="outlook"
|
||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||
maxtls="1.2"
|
||||
|
|
Loading…
Reference in a new issue