Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic German localization #9

Merged
merged 1 commit into from Apr 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions PlayAlways.xcodeproj/project.pbxproj
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
1F0878392074E51E00E3993C /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1F08783B2074E51E00E3993C /* Localizable.strings */; };
1F08783D2074F4BE00E3993C /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1F08783B2074E51E00E3993C /* Localizable.strings */; };
9893205A1DFB6085003A20A3 /* PersistenceHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 989320591DFB6085003A20A3 /* PersistenceHelper.swift */; };
DD4F0B141DFC5BAC009C00DB /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD4F0B131DFC5BAC009C00DB /* Cocoa.framework */; };
DD4F0B191DFC5BAC009C00DB /* SourceEditorExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD4F0B181DFC5BAC009C00DB /* SourceEditorExtension.swift */; };
Expand Down Expand Up @@ -73,6 +75,8 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
1F08783A2074E51E00E3993C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
1F08783C2074F09500E3993C /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
989320591DFB6085003A20A3 /* PersistenceHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PersistenceHelper.swift; sourceTree = "<group>"; };
DD4F0B111DFC5BAC009C00DB /* PlayAlways.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = PlayAlways.appex; sourceTree = BUILT_PRODUCTS_DIR; };
DD4F0B131DFC5BAC009C00DB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -182,6 +186,7 @@
DD7A4F291DF9FC0F0015054B /* Resources */,
DD7A4F281DF9FBF90015054B /* Controllers */,
DD7A4F271DF9FBEE0015054B /* Bootstrap */,
1F08783B2074E51E00E3993C /* Localizable.strings */,
);
name = PlayAlways;
path = PlayAways;
Expand Down Expand Up @@ -364,6 +369,7 @@
knownRegions = (
en,
Base,
de,
);
mainGroup = DD7A4F0B1DF9FBB80015054B;
productRefGroup = DD7A4F151DF9FBB80015054B /* Products */;
Expand All @@ -390,6 +396,7 @@
buildActionMask = 2147483647;
files = (
DD7A4F311DF9FEF70015054B /* Application.xib in Resources */,
1F0878392074E51E00E3993C /* Localizable.strings in Resources */,
DD7A4F1C1DF9FBB80015054B /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -398,6 +405,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1F08783D2074F4BE00E3993C /* Localizable.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -453,6 +461,18 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
1F08783B2074E51E00E3993C /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
1F08783A2074E51E00E3993C /* en */,
1F08783C2074F09500E3993C /* de */,
);
name = Localizable.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
DD4F0B201DFC5BAC009C00DB /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down Expand Up @@ -492,6 +512,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -542,6 +563,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down
2 changes: 1 addition & 1 deletion PlayAways/AppRouter.swift
Expand Up @@ -45,7 +45,7 @@ final class AppRouter {
if showOptions {
let panel = NSSavePanel()

let titleFormat = NSLocalizedString("New %@ Playground", comment: "New [platform name] Playground")
let titleFormat = NSLocalizedString("New Playground", comment: "New [platform name] Playground")
panel.title = String(format: titleFormat, platform.rawValue)

panel.prompt = NSLocalizedString("Create", comment: "Create playground (button title)")
Expand Down
27 changes: 27 additions & 0 deletions PlayAways/de.lproj/Localizable.strings
@@ -0,0 +1,27 @@
/*
Localizable.strings
PlayAlways

Created by Marcel Voß on 04.04.18.
Copyright © 2018 Guilherme Rambo. All rights reserved.
*/

"Quit" = "Beenden";
"Set Path…" = "Pfad setzen…";

"New iOS Playground…" = "Neuer iOS Playground…";
"New macOS Playground…" = "Neuer macOS Playground…";
"New tvOS Playground…" = "Neuer tvOS Playground…";

"New iOS Playground" = "Neuer iOS Playground";
"New macOS Playground" = "Neuer macOS Playground";
"New tvOS Playground" = "Neuer tvOS Playground";

"Create" = "Erstellen";
"New Playground" = "Neuer %@ Playground";

"Select" = "Auswählen";
"Select a location to create playgrounds into" = "Wähle einen Ort, an welchem neue Playground abgelegt werden sollen";

"Unable to create playground at the specified location" = "Fehler beim Erstellen eines Playgrounds an dem angegebenen Ort";
"Unable to process selection data" = "Fehler beim Verarbeiten der ausgewählten Daten";
27 changes: 27 additions & 0 deletions PlayAways/en.lproj/Localizable.strings
@@ -0,0 +1,27 @@
/*
Localizable.strings
PlayAlways

Created by Marcel Voß on 04.04.18.
Copyright © 2018 Guilherme Rambo. All rights reserved.
*/

"Quit" = "Quit";
"Set Path…" = "Set Path…";

"New iOS Playground…" = "New iOS Playground…";
"New macOS Playground…" = "New macOS Playground…";
"New tvOS Playground…" = "New tvOS Playground…";

"New iOS Playground" = "New iOS Playground";
"New macOS Playground" = "New macOS Playground";
"New tvOS Playground" = "New tvOS Playground";

"Create" = "Create";
"New Playground" = "New %@ Playground";

"Select" = "Select";
"Select a location to create playgrounds into" = "Select a location to create playgrounds into";

"Unable to create playground at the specified location" = "Unable to create playground at the specified location";
"Unable to process selection data" = "Unable to process selection data";