Skip to content

Commit 4ba0768

Browse files
committed
Localization fixes
Added autoshrink property to saveButton and resetButton, since german words for "Save" and "Reset" are longer. Also changed translation for "Save" from "Speichern" to "Sichern" and for "Reset" from "Zurücksetzen" to "Löschen" since the words are shorter and have in both cases roughly the same meaning.
1 parent 92f6888 commit 4ba0768

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

OpenGpxTracker/ViewController.swift

+2
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
600600
saveButton.addTarget(self, action: #selector(ViewController.saveButtonTapped), for: .touchUpInside)
601601
saveButton.isHidden = false
602602
saveButton.titleLabel?.textAlignment = .center
603+
saveButton.titleLabel?.adjustsFontSizeToFitWidth = true
603604
map.addSubview(saveButton)
604605

605606
// Reset button
@@ -609,6 +610,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
609610
resetButton.addTarget(self, action: #selector(ViewController.resetButtonTapped), for: .touchUpInside)
610611
resetButton.isHidden = false
611612
resetButton.titleLabel?.textAlignment = .center
613+
resetButton.titleLabel?.adjustsFontSizeToFitWidth = true
612614
map.addSubview(resetButton)
613615

614616
addConstraints(isIPhoneX)

OpenGpxTracker/de.lproj/Localizable.strings

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"START_TRACKING" = "Tracking starten";
1111
"PAUSE" = "Pause";
1212
"RESUME" = "Fortsetzen";
13-
"SAVE" = "Speichern";
14-
"RESET" = "Zurücksetzen";
13+
"SAVE" = "Sichern";
14+
"RESET" = "Löschen";
1515
"DONE" = "Fertig";
1616
"CANCEL" = "Abbrechen";
1717
"WATCH_FILE_RECEIVED_TITLE" = "Datei von der Apple Watch erhalten.";

0 commit comments

Comments
 (0)