Putting some dialog strings in strings.xml
This commit is contained in:
parent
7c786491b8
commit
4f34172a9f
10 changed files with 25 additions and 11 deletions
|
@ -527,7 +527,7 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
|
||||||
mFloatingActionButtonLocation.setOnLongClickListener(new View.OnLongClickListener() {
|
mFloatingActionButtonLocation.setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onLongClick(View v) {
|
public boolean onLongClick(View v) {
|
||||||
longPressFeedback(R.string.toastmessage_long_press_night_mode_switch);
|
longPressFeedback(R.string.toast_message_long_press_night_mode_switch);
|
||||||
NightModeHelper.switchToOpposite(MainActivity.this);
|
NightModeHelper.switchToOpposite(MainActivity.this);
|
||||||
recreate();
|
recreate();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -534,13 +534,13 @@ public class MainActivityTrackFragment extends Fragment implements AdapterView.O
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
Intent intent = ExportHelper.getGpxFileIntent(mActivity, mTrack);
|
Intent intent = ExportHelper.getGpxFileIntent(mActivity, mTrack);
|
||||||
// create intent to show chooser
|
// create intent to show chooser
|
||||||
String title = "Share GPX file with"; // todo replace with Resource
|
String title = getString(R.string.dialog_share_gpx);
|
||||||
// String title = getResources().getString(R.string.chooser_title);
|
// String title = getResources().getString(R.string.chooser_title);
|
||||||
Intent chooser = Intent.createChooser(intent, title);
|
Intent chooser = Intent.createChooser(intent, title);
|
||||||
if (intent.resolveActivity(mActivity.getPackageManager()) != null) {
|
if (intent.resolveActivity(mActivity.getPackageManager()) != null) {
|
||||||
startActivity(chooser);
|
startActivity(chooser);
|
||||||
} else {
|
} else {
|
||||||
// todo TOAST
|
Toast.makeText(mActivity, R.string.toast_message_install_file_helper, Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">Exportieren und Überschreiben?</string>
|
<string name="dialog_export_title_overwrite">Exportieren und Überschreiben?</string>
|
||||||
<string name="dialog_export_content_overwrite">Datei existiert bereits. Exportieren und überschreiben Sie diese Aufzeichnung als GPX-Strecke.</string>
|
<string name="dialog_export_content_overwrite">Datei existiert bereits. Exportieren und überschreiben Sie diese Aufzeichnung als GPX-Strecke.</string>
|
||||||
<string name="dialog_export_action_overwrite">Exportieren und überschreiben</string>
|
<string name="dialog_export_action_overwrite">Exportieren und überschreiben</string>
|
||||||
|
<string name="dialog_share_gpx">GPX-Datei öffnen mit</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">Berechtigungen erteilt.</string>
|
<string name="toast_message_permissions_granted">Berechtigungen erteilt.</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">GPX-Export erfolgreich:</string>
|
<string name="toast_message_export_success">GPX-Export erfolgreich:</string>
|
||||||
<string name="toast_message_export_fail">GPX-Export fehlgeschlagen:</string>
|
<string name="toast_message_export_fail">GPX-Export fehlgeschlagen:</string>
|
||||||
<string name="toast_message_elevation_info">Hinweis: Die Genauogkeit der Höhenmeter-Werte ist geräteabhängig. Gemessen werden die Steigungen und Gefälle der Gesamtstrecke.</string>
|
<string name="toast_message_elevation_info">Hinweis: Die Genauogkeit der Höhenmeter-Werte ist geräteabhängig. Gemessen werden die Steigungen und Gefälle der Gesamtstrecke.</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Schalter für Nachtmodus (Längeres Drücken erkannt)</string>
|
<string name="toast_message_long_press_night_mode_switch">Schalter für Nachtmodus (Längeres Drücken erkannt)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Bitte zunächst einen Dateimanager oder GPX-Betrachter installieren.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">Quelle</string>
|
<string name="marker_description_source">Quelle</string>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">Export and Overwrite?</string>
|
<string name="dialog_export_title_overwrite">Export and Overwrite?</string>
|
||||||
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
||||||
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
||||||
|
<string name="dialog_share_gpx">Share GPX file with</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">Permissions granted.</string>
|
<string name="toast_message_permissions_granted">Permissions granted.</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">GPX export successful:</string>
|
<string name="toast_message_export_success">GPX export successful:</string>
|
||||||
<string name="toast_message_export_fail">GPX export failed:</string>
|
<string name="toast_message_export_fail">GPX export failed:</string>
|
||||||
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
<string name="toast_message_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Please install a file manager or a GPX track viewer first.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">Source</string>
|
<string name="marker_description_source">Source</string>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">Esporta e sovrascrivi?</string>
|
<string name="dialog_export_title_overwrite">Esporta e sovrascrivi?</string>
|
||||||
<string name="dialog_export_content_overwrite">Il file esiste già. Esportare e sovrascrivere questa registrazione come traccia GPX.</string>
|
<string name="dialog_export_content_overwrite">Il file esiste già. Esportare e sovrascrivere questa registrazione come traccia GPX.</string>
|
||||||
<string name="dialog_export_action_overwrite">Esporta e sovrascrivi</string>
|
<string name="dialog_export_action_overwrite">Esporta e sovrascrivi</string>
|
||||||
|
<string name="dialog_share_gpx">Share GPX file with</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">Permessi acquisiti.</string>
|
<string name="toast_message_permissions_granted">Permessi acquisiti.</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">L\'esportazione GPX è riuscita:</string>
|
<string name="toast_message_export_success">L\'esportazione GPX è riuscita:</string>
|
||||||
<string name="toast_message_export_fail">L\'esportazione GPX non è riuscita:</string>
|
<string name="toast_message_export_fail">L\'esportazione GPX non è riuscita:</string>
|
||||||
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
<string name="toast_message_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Please install a file manager or a GPX track viewer first.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">Fonte</string>
|
<string name="marker_description_source">Fonte</string>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">エクスポートを上書きしますか?</string>
|
<string name="dialog_export_title_overwrite">エクスポートを上書きしますか?</string>
|
||||||
<string name="dialog_export_content_overwrite">ファイルは既に存在します。エクスポートし、GPX トラックとしてこの記録を上書きします。</string>
|
<string name="dialog_export_content_overwrite">ファイルは既に存在します。エクスポートし、GPX トラックとしてこの記録を上書きします。</string>
|
||||||
<string name="dialog_export_action_overwrite">エクスポートして上書き</string>
|
<string name="dialog_export_action_overwrite">エクスポートして上書き</string>
|
||||||
|
<string name="dialog_share_gpx">Share GPX file with</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">アクセス許可を付与しました。</string>
|
<string name="toast_message_permissions_granted">アクセス許可を付与しました。</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">GPX のエクスポートが完了しました:</string>
|
<string name="toast_message_export_success">GPX のエクスポートが完了しました:</string>
|
||||||
<string name="toast_message_export_fail">GPX のエクスポートに失敗しました:</string>
|
<string name="toast_message_export_fail">GPX のエクスポートに失敗しました:</string>
|
||||||
<string name="toast_message_elevation_info">ヒント: 標高データの精度は、お使いのデバイスによって異なります。ルート全体の上り坂と下り坂の標高を測定します。</string>
|
<string name="toast_message_elevation_info">ヒント: 標高データの精度は、お使いのデバイスによって異なります。ルート全体の上り坂と下り坂の標高を測定します。</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
<string name="toast_message_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Please install a file manager or a GPX track viewer first.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">ソース</string>
|
<string name="marker_description_source">ソース</string>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">Exporter og overskriv?</string>
|
<string name="dialog_export_title_overwrite">Exporter og overskriv?</string>
|
||||||
<string name="dialog_export_content_overwrite">Fila finnes allerede. Eksporter og overskriv dette opptaket som en GPX-tur.</string>
|
<string name="dialog_export_content_overwrite">Fila finnes allerede. Eksporter og overskriv dette opptaket som en GPX-tur.</string>
|
||||||
<string name="dialog_export_action_overwrite">Eksporter og overskriv</string>
|
<string name="dialog_export_action_overwrite">Eksporter og overskriv</string>
|
||||||
|
<string name="dialog_share_gpx">Share GPX file with</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">Tilgang gitt.</string>
|
<string name="toast_message_permissions_granted">Tilgang gitt.</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">GPX-eksportering vellykket:</string>
|
<string name="toast_message_export_success">GPX-eksportering vellykket:</string>
|
||||||
<string name="toast_message_export_fail">GPX-eksportering mislyktes:</string>
|
<string name="toast_message_export_fail">GPX-eksportering mislyktes:</string>
|
||||||
<string name="toast_message_elevation_info">Hint: Høydedataens nøyaktighet avhenger av enheten din. Opp og ned-stigningen for hele ruten måles.</string>
|
<string name="toast_message_elevation_info">Hint: Høydedataens nøyaktighet avhenger av enheten din. Opp og ned-stigningen for hele ruten måles.</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Nattmodusveksling (langt trykk oppdaget)</string>
|
<string name="toast_message_long_press_night_mode_switch">Nattmodusveksling (langt trykk oppdaget)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Please install a file manager or a GPX track viewer first.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">Kilde</string>
|
<string name="marker_description_source">Kilde</string>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">Export and Overwrite?</string>
|
<string name="dialog_export_title_overwrite">Export and Overwrite?</string>
|
||||||
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
||||||
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
||||||
|
<string name="dialog_share_gpx">Share GPX file with</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">Rechten verleend.</string>
|
<string name="toast_message_permissions_granted">Rechten verleend.</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">GPX export successful:</string>
|
<string name="toast_message_export_success">GPX export successful:</string>
|
||||||
<string name="toast_message_export_fail">GPX export failed:</string>
|
<string name="toast_message_export_fail">GPX export failed:</string>
|
||||||
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
<string name="toast_message_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Please install a file manager or a GPX track viewer first.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">Bron</string>
|
<string name="marker_description_source">Bron</string>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<string name="dialog_export_title_overwrite">Export and Overwrite?</string>
|
<string name="dialog_export_title_overwrite">Export and Overwrite?</string>
|
||||||
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
||||||
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
||||||
|
<string name="dialog_share_gpx">Share GPX file with</string>
|
||||||
|
|
||||||
<!-- toast messages -->
|
<!-- toast messages -->
|
||||||
<string name="toast_message_permissions_granted">Permissions granted.</string>
|
<string name="toast_message_permissions_granted">Permissions granted.</string>
|
||||||
|
@ -59,7 +60,8 @@
|
||||||
<string name="toast_message_export_success">GPX export successful:</string>
|
<string name="toast_message_export_success">GPX export successful:</string>
|
||||||
<string name="toast_message_export_fail">GPX export failed:</string>
|
<string name="toast_message_export_fail">GPX export failed:</string>
|
||||||
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
<string name="toast_message_elevation_info">Hint: The accuracy of elevation data depends on your device. The uphill and downhill elevation of the whole route is measured.</string>
|
||||||
<string name="toastmessage_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
<string name="toast_message_long_press_night_mode_switch">Night mode switch (long press detected)</string>
|
||||||
|
<string name="toast_message_install_file_helper">Please install a file manager or a GPX track viewer first.</string>
|
||||||
|
|
||||||
<!-- map markers -->
|
<!-- map markers -->
|
||||||
<string name="marker_description_source">Source</string>
|
<string name="marker_description_source">Source</string>
|
||||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.1.2'
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
Loading…
Reference in a new issue