[app] Fix translators (#1104)

This commit is contained in:
tehcneko 2021-09-13 15:20:22 +08:00 committed by GitHub
parent 2b3e60def4
commit d226ce5e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -283,7 +283,7 @@ public class SettingsFragment extends BaseFragment {
Preference translation_contributors = findPreference("translation_contributors"); Preference translation_contributors = findPreference("translation_contributors");
if (translation_contributors != null) { if (translation_contributors != null) {
var translators = HtmlCompat.fromHtml(getString(R.string.translators), HtmlCompat.FROM_HTML_MODE_LEGACY); var translators = HtmlCompat.fromHtml(getString(R.string.translators), HtmlCompat.FROM_HTML_MODE_LEGACY);
if (TextUtils.isEmpty(translators)) { if (translators.equals("null")) {
translation_contributors.setVisible(false); translation_contributors.setVisible(false);
} else { } else {
translation_contributors.setSummary(translators); translation_contributors.setSummary(translators);

View File

@ -33,8 +33,7 @@
<string name="module_repo">Repository</string> <string name="module_repo">Repository</string>
<string name="module_repo_summary">Module repository (Beta)</string> <string name="module_repo_summary">Module repository (Beta)</string>
<string name="about_view_source_code"><![CDATA[View source code at %1$s<br/>Join our %2$s channel]]></string> <string name="about_view_source_code"><![CDATA[View source code at %1$s<br/>Join our %2$s channel]]></string>
<string name="about_translators">Translators: %s</string> <string name="translators" comment="Dear translators, please add your home page here following the format. There can be more than one translator. So feel free to append yourself.">null</string>
<string name="translators" comment="Dear translators, please add your home page here following the format. There can be more than one translator. So feel free to append yourself."><![CDATA[<a href="https://github.com/LSPosed/LSPosed">LSPosed Devs</a>]]></string>
<string name="install">Install</string> <string name="install">Install</string>
<string name="install_summary">Tap to install LSPosed</string> <string name="install_summary">Tap to install LSPosed</string>