changed capitalization style in translations
This commit is contained in:
parent
ca887bdb21
commit
b5a47814b5
6 changed files with 58 additions and 63 deletions
|
@ -312,56 +312,8 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
|
|||
showFloatingActionButtonMenu(false);
|
||||
}
|
||||
|
||||
// add listeners to button and submenu
|
||||
if (mFloatingActionButtonMain != null) {
|
||||
mFloatingActionButtonMain.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleFloatingActionButtonClick(view);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (mFloatingActionButtonSubSave != null) {
|
||||
mFloatingActionButtonSubSave.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleSaveButtonClick();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (mFloatingActionButtonSubSaveLabel != null) {
|
||||
mFloatingActionButtonSubSaveLabel.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleSaveButtonClick();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (mFloatingActionButtonSubClear != null) {
|
||||
mFloatingActionButtonSubClear.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleClearButtonClick();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (mFloatingActionButtonSubClearLabel != null) {
|
||||
mFloatingActionButtonSubClearLabel.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleClearButtonClick();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (mFloatingActionButtonLocation != null) {
|
||||
mFloatingActionButtonLocation.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
MainActivityMapFragment mainActivityMapFragment = (MainActivityMapFragment) getFragmentFromTag(FRAGMENT_TAG_MAP);
|
||||
mainActivityMapFragment.handleShowMyLocation();
|
||||
}
|
||||
});
|
||||
}
|
||||
// add listeners to buttons
|
||||
addListenersToViews();
|
||||
|
||||
// show map fragment
|
||||
showFragment(FRAGMENT_ID_MAP);
|
||||
|
@ -389,6 +341,49 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
|
|||
}
|
||||
|
||||
|
||||
/* Add listeners to ui buttons */
|
||||
private void addListenersToViews() {
|
||||
|
||||
mFloatingActionButtonMain.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleFloatingActionButtonClick(view);
|
||||
}
|
||||
});
|
||||
mFloatingActionButtonSubSave.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleSaveButtonClick();
|
||||
}
|
||||
});
|
||||
mFloatingActionButtonSubSaveLabel.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleSaveButtonClick();
|
||||
}
|
||||
});
|
||||
mFloatingActionButtonSubClear.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleClearButtonClick();
|
||||
}
|
||||
});
|
||||
mFloatingActionButtonSubClearLabel.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
handleClearButtonClick();
|
||||
}
|
||||
});
|
||||
mFloatingActionButtonLocation.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
MainActivityMapFragment mainActivityMapFragment = (MainActivityMapFragment) getFragmentFromTag(FRAGMENT_TAG_MAP);
|
||||
mainActivityMapFragment.handleShowMyLocation();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* Handles tap on the button "save and clear" */
|
||||
private void handleSaveButtonClick() {
|
||||
// todo check -> may produce NullPointerException
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:orientation="horizontal"
|
||||
android:background="@color/trackbook_white_85percent">
|
||||
android:background="@color/trackbook_white">
|
||||
<Spinner
|
||||
android:id="@+id/track_selector"
|
||||
android:layout_width="0dp"
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
<string name="header_about">Tentang Trackbook</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">PETA</string>
|
||||
<string name="tab_last_track">JALUR TERAKHIR</string>
|
||||
<string name="tab_last_tracks">JALUR TERAKHIR</string>
|
||||
<string name="tab_map">Peta</string>
|
||||
<string name="tab_last_track">Jalur Terakhir</string>
|
||||
<string name="tab_last_tracks">Jalur Terakhir</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook aktif</string>
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
<string name="header_about">Altro su Trackbook</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">MAPPA</string>
|
||||
<string name="tab_last_track">ULTIMA TRACCIA</string>
|
||||
<string name="tab_last_tracks">ULTIME TRACCE</string>
|
||||
<string name="tab_map">Mappa</string>
|
||||
<string name="tab_last_track">Ultima Traccia</string>
|
||||
<string name="tab_last_tracks">Ultime Tracce</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook in esecuzione</string>
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
<string name="header_about">Om Trackbook</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">KART</string>
|
||||
<string name="tab_last_track">SISTE TUR</string>
|
||||
<string name="tab_last_tracks">SISTE TURER</string>
|
||||
<string name="tab_map">Kart</string>
|
||||
<string name="tab_last_track">Siste Tur</string>
|
||||
<string name="tab_last_tracks">Siste Turer</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook kjører</string>
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
<string name="header_about">Over Trackbook</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">KAART</string>
|
||||
<string name="tab_last_track">LAATSTE BAAN</string>
|
||||
<string name="tab_last_tracks">LAST TRACKS</string>
|
||||
<string name="tab_map">Kaart</string>
|
||||
<string name="tab_last_track">Laatste Baan</string>
|
||||
<string name="tab_last_tracks">Last Tracks</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook is actief</string>
|
||||
|
|
Loading…
Reference in a new issue