Skip to content

Commit 20bd2eb

Browse files
Added German Localization
1 parent 5630964 commit 20bd2eb

File tree

5 files changed

+51
-1
lines changed

5 files changed

+51
-1
lines changed

MetroTimer.xcodeproj/project.pbxproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
AB4BD514234BEFE6003DD217 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AB4BD513234BEFE6003DD217 /* Assets.xcassets */; };
2525
ABAEAC7A234E281100FB3644 /* KVVlive in Frameworks */ = {isa = PBXBuildFile; productRef = ABAEAC79234E281100FB3644 /* KVVlive */; };
2626
ABB7D8CD234660D10065C7C1 /* AddRouteView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABB7D8CC234660D10065C7C1 /* AddRouteView.swift */; };
27+
ABBC21C623940FD2009B149C /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = ABBC21C823940FD2009B149C /* Localizable.strings */; };
2728
ABC2414322BD134E001D4B01 /* AddFavoriteView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABC2414222BD134E001D4B01 /* AddFavoriteView.swift */; };
2829
/* End PBXBuildFile section */
2930

@@ -60,6 +61,9 @@
6061
AB4BD513234BEFE6003DD217 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6162
AB5D15592362058A006C990E /* MetroTimer.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MetroTimer.entitlements; sourceTree = "<group>"; };
6263
ABB7D8CC234660D10065C7C1 /* AddRouteView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddRouteView.swift; sourceTree = "<group>"; };
64+
ABBC21C323940DC5009B149C /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
65+
ABBC21C723940FD2009B149C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
66+
ABBC21C923940FD6009B149C /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
6367
ABC2414222BD134E001D4B01 /* AddFavoriteView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddFavoriteView.swift; sourceTree = "<group>"; };
6468
/* End PBXFileReference section */
6569

@@ -89,6 +93,7 @@
8993
isa = PBXGroup;
9094
children = (
9195
AB127F6D22BA8B2800D9FC4D /* README.md */,
96+
ABBC21C823940FD2009B149C /* Localizable.strings */,
9297
ABC2415522BE63DF001D4B01 /* Models */,
9398
AB341E9422AAEE1F004CAD6A /* Custom Classes */,
9499
AB38AF9F22AAEC2D00DC09BE /* MetroTimer */,
@@ -213,6 +218,7 @@
213218
knownRegions = (
214219
en,
215220
Base,
221+
de,
216222
);
217223
mainGroup = AB38AF9422AAEC2D00DC09BE;
218224
packageReferences = (
@@ -234,6 +240,7 @@
234240
buildActionMask = 2147483647;
235241
files = (
236242
AB38AFAB22AAEC2E00DC09BE /* LaunchScreen.storyboard in Resources */,
243+
ABBC21C623940FD2009B149C /* Localizable.strings in Resources */,
237244
AB4BD514234BEFE6003DD217 /* Assets.xcassets in Resources */,
238245
AB38AFA822AAEC2E00DC09BE /* Preview Assets.xcassets in Resources */,
239246
);
@@ -269,17 +276,28 @@
269276
isa = PBXVariantGroup;
270277
children = (
271278
AB38AFAA22AAEC2E00DC09BE /* Base */,
279+
ABBC21C323940DC5009B149C /* de */,
272280
);
273281
name = LaunchScreen.storyboard;
274282
sourceTree = "<group>";
275283
};
284+
ABBC21C823940FD2009B149C /* Localizable.strings */ = {
285+
isa = PBXVariantGroup;
286+
children = (
287+
ABBC21C723940FD2009B149C /* en */,
288+
ABBC21C923940FD6009B149C /* de */,
289+
);
290+
name = Localizable.strings;
291+
sourceTree = "<group>";
292+
};
276293
/* End PBXVariantGroup section */
277294

278295
/* Begin XCBuildConfiguration section */
279296
AB38AFD122AAEC3000DC09BE /* Debug */ = {
280297
isa = XCBuildConfiguration;
281298
buildSettings = {
282299
ALWAYS_SEARCH_USER_PATHS = NO;
300+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
283301
CLANG_ANALYZER_NONNULL = YES;
284302
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
285303
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
@@ -342,6 +360,7 @@
342360
isa = XCBuildConfiguration;
343361
buildSettings = {
344362
ALWAYS_SEARCH_USER_PATHS = NO;
363+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
345364
CLANG_ANALYZER_NONNULL = YES;
346365
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
347366
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";

MetroTimer/Views/SettingsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct SettingsView : View {
5353
}
5454

5555
if !self.metroHandler.favorites.isEmpty {
56-
Section(header: Text("Maximum lines to show for each station")) {
56+
Section(header: Text("Maximum rows to show for each station")) {
5757
ForEach(self.metroHandler.favoriteStations, id: \.self) { station in
5858
Stepper(value: Binding(get: {
5959
// Load or use the default value
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

de.lproj/Localizable.strings

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
Localizable.strings
3+
MetroTimer
4+
5+
Created by Jonas Frey on 01.12.19.
6+
Copyright © 2019 Jonas Frey. All rights reserved.
7+
*/
8+
9+
"now" = "jetzt";
10+
"Departures" = "Abfahrten";
11+
"Loading..." = "Laden...";
12+
"Retry" = "Wiederholen";
13+
"Refresh" = "Aktualisieren";
14+
"Favorites" = "Favoriten";
15+
"Add Favorite" = "Favorit hinzufügen";
16+
"Dismiss" = "Schließen";
17+
"Route" = "Linie";
18+
"Destination" = "Richtung";
19+
"Route and Direction" = "Linie und Richtung";
20+
"Missing Information" = "Fehlende Informationen";
21+
"Please select a route and destination." = "Bitte wählen Sie eine Linie und eine Richtung";
22+
"Maximum rows to show for each station" = "Maximale Anzahl an Zeilen pro Station";
23+
"Settings" = "Einstellungen";

en.lproj/Localizable.strings

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
Localizable.strings
3+
MetroTimer
4+
5+
Created by Jonas Frey on 01.12.19.
6+
Copyright © 2019 Jonas Frey. All rights reserved.
7+
*/

0 commit comments

Comments
 (0)