mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Localized provider documentation
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user