mirror of
https://github.com/gsantner/dandelion
synced 2025-09-10 10:49:42 +02:00
.
This commit is contained in:
parent
e6b2fa606e
commit
48a00b099e
38 changed files with 1701 additions and 1701 deletions
|
@ -169,7 +169,7 @@ public class AboutActivity extends ThemedActivity
|
|||
if (isAdded()) {
|
||||
try {
|
||||
PackageInfo pInfo = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0);
|
||||
appVersion.setText(getString(R.string.fragment_debug__app_version, pInfo.versionName + " (" + pInfo.versionCode + ")"));
|
||||
appVersion.setText(getString(R.string.app_version_with_arg, pInfo.versionName + " (" + pInfo.versionCode + ")"));
|
||||
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
|
@ -213,7 +213,7 @@ public class AboutActivity extends ThemedActivity
|
|||
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
|
||||
sharingIntent.setType("text/plain");
|
||||
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getString(R.string.app_name));
|
||||
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, getString(R.string.fragment_about__spread_the_word_share_text, getString(R.string.fragment_about__fdroid_link)));
|
||||
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, getString(R.string.hey_checkout_dandelion_tag__appspecific, getString(R.string.fragment_about__fdroid_link)));
|
||||
startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.action_share_dotdotdot)));
|
||||
break;
|
||||
}
|
||||
|
@ -258,9 +258,9 @@ public class AboutActivity extends ThemedActivity
|
|||
ButterKnife.bind(this, view);
|
||||
accentColor = ContextUtils.get().colorToHexString(ThemeHelper.getAccentColor());
|
||||
|
||||
maintainers.setTextFormatted(getString(R.string.fragment_license__maintainers_text,
|
||||
maintainers.setTextFormatted(getString(R.string.this_app_is_currently_developed_and_maintained_by_witharg,
|
||||
ContextUtils.get().loadMarkdownForTextViewFromRaw(R.raw.maintainers, "")));
|
||||
contributors.setTextFormatted(getString(R.string.fragment_license__contributors_thank_you,
|
||||
contributors.setTextFormatted(getString(R.string.thank_you_witharg,
|
||||
ContextUtils.get().loadMarkdownForTextViewFromRaw(R.raw.contributors, "")));
|
||||
thirdPartyLibs.setTextFormatted(
|
||||
ContextUtils.get().loadMarkdownForTextViewFromRaw(R.raw.licenses_3rd_party, ""));
|
||||
|
@ -341,7 +341,7 @@ public class AboutActivity extends ThemedActivity
|
|||
ClipboardManager clipboard = (ClipboardManager) getActivity().getSystemService(CLIPBOARD_SERVICE);
|
||||
ClipData clip = ClipData.newPlainText("DEBUG_LOG", AppLog.Log.getLogBuffer());
|
||||
clipboard.setPrimaryClip(clip);
|
||||
Toast.makeText(DebugFragment.this.getActivity(), R.string.fragment_debug__toast_log_copied, Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(DebugFragment.this.getActivity(), R.string.debug_log_copied_to_clipboard, Toast.LENGTH_SHORT).show();
|
||||
} else {
|
||||
AppLog.d(this, "Not Added!");
|
||||
}
|
||||
|
@ -356,13 +356,13 @@ public class AboutActivity extends ThemedActivity
|
|||
PackageInfo pInfo = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0);
|
||||
AppSettings appSettings = ((App) getActivity().getApplication()).getSettings();
|
||||
packageName.setText(pInfo.packageName);
|
||||
appVersion.setText(getString(R.string.fragment_debug__app_version, pInfo.versionName + " (" + pInfo.versionCode + ")"));
|
||||
appVersion.setText(getString(R.string.app_version_with_arg, pInfo.versionName + " (" + pInfo.versionCode + ")"));
|
||||
|
||||
osVersion.setText(getString(R.string.fragment_debug__android_version, Build.VERSION.RELEASE));
|
||||
deviceName.setText(getString(R.string.fragment_debug__device_name, Build.MANUFACTURER + " " + Build.MODEL));
|
||||
osVersion.setText(getString(R.string.android_version_witharg, Build.VERSION.RELEASE));
|
||||
deviceName.setText(getString(R.string.device_name_witharg, Build.MANUFACTURER + " " + Build.MODEL));
|
||||
if (app.getSettings().getPod() != null) {
|
||||
podDomain.setText(getString(R.string.fragment_debug__pod_profile_url, app.getSettings().getPod().getPodUrl()));
|
||||
podName.setText(getString(R.string.fragment_debug__pod_profile_name, app.getSettings().getPod().getName()));
|
||||
podDomain.setText(getString(R.string.pod_domain_witharg__appspecific, app.getSettings().getPod().getPodUrl()));
|
||||
podName.setText(getString(R.string.pod_profile_name_witharg__appspecific, app.getSettings().getPod().getName()));
|
||||
}
|
||||
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
|
@ -420,11 +420,11 @@ public class AboutActivity extends ThemedActivity
|
|||
public CharSequence getPageTitle(int position) {
|
||||
switch (position) {
|
||||
case 0:
|
||||
return getString(R.string.about_activity__title_about_app);
|
||||
return getString(R.string.about);
|
||||
case 1:
|
||||
return getString(R.string.about_activity__title_about_license);
|
||||
return getString(R.string.license);
|
||||
case 2:
|
||||
return getString(R.string.about_activity__title_debug_info);
|
||||
return getString(R.string.debugging);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -1068,7 +1068,7 @@ public class MainActivity extends ThemedActivity
|
|||
SearchOrCustomTextDialogCreator.showDiasporaTagsDialog(this, arg -> {
|
||||
if (arg.startsWith(SearchOrCustomTextDialogCreator.SPECIAL_PREFIX)) {
|
||||
arg = arg.replace(SearchOrCustomTextDialogCreator.SPECIAL_PREFIX, "").trim();
|
||||
if (arg.equals(getString(R.string.pref_title__manage_tags))) {
|
||||
if (arg.equals(getString(R.string.manage_hashtags))) {
|
||||
openDiasporaUrl(urls.getManageTagsUrl());
|
||||
} else {
|
||||
openDiasporaUrl(urls.getAllFollowedTagsUrl());
|
||||
|
@ -1084,7 +1084,7 @@ public class MainActivity extends ThemedActivity
|
|||
SearchOrCustomTextDialogCreator.showDiasporaAspectsDialog(this, arg -> {
|
||||
if (arg.startsWith(SearchOrCustomTextDialogCreator.SPECIAL_PREFIX)) {
|
||||
arg = arg.replace(SearchOrCustomTextDialogCreator.SPECIAL_PREFIX, "").trim();
|
||||
if (arg.equals(getString(R.string.pref_desc__manage_contacts))) {
|
||||
if (arg.equals(getString(R.string.manage_your_contact_list))) {
|
||||
openDiasporaUrl(urls.getContactsUrl());
|
||||
} else if (arg.equals(getString(R.string.nav_profile))) {
|
||||
openDiasporaUrl(urls.getProfileUrl());
|
||||
|
|
|
@ -131,7 +131,7 @@ public class SettingsActivity extends ThemedActivity implements SharedPreference
|
|||
if (top != null && top.getFragmentTag().equals(SettingsFragmentProxy.TAG)) {
|
||||
ProxyHandler.ProxySettings newProxySettings = getAppSettings().getProxySettings();
|
||||
if (oldProxySettings.isEnabled() && !newProxySettings.isEnabled()) {
|
||||
Toast.makeText(this, R.string.toast__proxy_disabled__restart_required, Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(this, R.string.app_needs_restart_to_disable_proxy_usage, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
super.onBackPressed();
|
||||
|
@ -226,7 +226,7 @@ public class SettingsActivity extends ThemedActivity implements SharedPreference
|
|||
} else if (settings.isKeyEqual(key, R.string.pref_key__change_account)) {
|
||||
new ThemedAlertDialogBuilder(getActivity(), AppSettings.get())
|
||||
.setTitle(getString(R.string.confirmation))
|
||||
.setMessage(getString(R.string.pref_warning__change_account))
|
||||
.setMessage(getString(R.string.logout_warning_description))
|
||||
.setNegativeButton(android.R.string.no, null)
|
||||
.setPositiveButton(android.R.string.yes,
|
||||
new DialogInterface.OnClickListener() {
|
||||
|
@ -412,7 +412,7 @@ public class SettingsActivity extends ThemedActivity implements SharedPreference
|
|||
if (appSettings.isKeyEqual(key, R.string.pref_key__http_proxy_load_tor_preset)) {
|
||||
appSettings.setProxyHttpHost("127.0.0.1");
|
||||
appSettings.setProxyHttpPort(8118);
|
||||
Toast.makeText(screen.getContext(), R.string.toast__proxy_orbot_preset_loaded, Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(screen.getContext(), R.string.orbot_proxy_preset_loaded, Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -477,7 +477,7 @@ public class SettingsActivity extends ThemedActivity implements SharedPreference
|
|||
|
||||
ThemedAlertDialogBuilder builder = new ThemedAlertDialogBuilder(getActivity(), appSettings);
|
||||
builder.setTitle(R.string.confirmation)
|
||||
.setMessage(R.string.dialog_content__wipe_settings)
|
||||
.setMessage(R.string.wipe_settings_warning__appspecific)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public class SearchOrCustomTextDialogCreator {
|
|||
hl.add(highlighted);
|
||||
}
|
||||
|
||||
for (int strid : new int[]{R.string.pref_title__manage_tags}) {
|
||||
for (int strid : new int[]{R.string.manage_hashtags}) {
|
||||
String special = surroundString(appSettings.rstr(strid));
|
||||
data.add(0, special);
|
||||
hl.add(special);
|
||||
|
@ -64,7 +64,7 @@ public class SearchOrCustomTextDialogCreator {
|
|||
for (DiasporaAspect aspect : AppSettings.get().getAspects()) {
|
||||
data.add(aspect.name);
|
||||
}
|
||||
for (int strid : new int[]{R.string.nav_profile, R.string.pref_desc__manage_contacts}) {
|
||||
for (int strid : new int[]{R.string.nav_profile, R.string.manage_your_contact_list}) {
|
||||
String special = surroundString(appSettings.rstr(strid));
|
||||
data.add(0, special);
|
||||
hl.add(special);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue