1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 23:12:55 +00:00

Simplification

This commit is contained in:
M66B 2023-07-11 13:08:54 +02:00
parent 954eadc9cf
commit fb62fff912
32 changed files with 29 additions and 1 deletions

View file

@ -116,7 +116,35 @@ public class DeepL {
int frequency = prefs.getInt("translated_" + target, 0);
String resname = "language_" + target.toLowerCase().replace('-', '_');
String flag;
if ("CS".equals(target))
flag = "CZ";
else if ("DA".equals(target))
flag = "DK";
else if ("EL".equals(target))
flag = "GR";
else if ("ET".equals(target))
flag = "EE";
else if ("JA".equals(target))
flag = "JP";
else if ("KO".equals(target))
flag = "KR";
else if ("NB".equals(target))
flag = "NO";
else if ("SL".equals(target))
flag = "SI";
else if ("SV".equals(target))
flag = "SE";
else if ("UK".equals(target))
flag = "UA";
else if ("ZH".equals(target))
flag = "CN";
else {
String[] t = target.split("-");
flag = t[t.length - 1];
}
String resname = "flag_" + flag.toLowerCase();
int resid = res.getIdentifier(resname, "drawable", pkg);
languages.add(new Language(name, target, formality,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B