Help screen improvements:
* translated to Turkish, Italian, German, French, Brazilian Portuguese, Ukrainian * aligned the text to the left, for improved readability * fixed an incorrect link
This commit is contained in:
parent
69f063a1c6
commit
c55818b625
11 changed files with 1975 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ static getStyles() {
|
|||
"a {color: #225682}" +
|
||||
"a:visited {color: #644280}" +
|
||||
"li {margin: 4px 0; padding: 1px;}" +
|
||||
"p {text-align: justify;}" +
|
||||
"p {text-align: left;}" +
|
||||
"p.wrap{word-wrap: break-word;}" +
|
||||
".toc {border: 1px solid; display: inline-block; padding: 12px 20px 12px 0; margin: 12px 0;}" +
|
||||
".toc > h3 {text-align: center; margin: 0;}" +
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import androidx.preference.Preference;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
|
||||
import io.github.sspanak.tt9.R;
|
||||
import io.github.sspanak.tt9.preferences.PreferencesActivity;
|
||||
|
|
@ -52,8 +53,7 @@ public class MainSettingsScreen extends BaseScreenFragment {
|
|||
}
|
||||
|
||||
String systemLanguage = SystemSettings.getLocale().replaceAll("_\\w+$", "");
|
||||
boolean missingLanguage = !systemLanguage.equals("en") && !systemLanguage.equals("es") && !systemLanguage.equals("ru");
|
||||
help.setSummary(missingLanguage ? "English only" : "");
|
||||
help.setSummary(Set.of("de", "en", "es", "it", "ru", "tr").contains(systemLanguage) ? "" : "English only");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue