Skip to content

Commit 7687793

Browse files
Averyhmdne
authored andcommitted
de: section #7 translated
Signed-off-by: Avery <>
1 parent 25a6daf commit 7687793

7 files changed

Lines changed: 88 additions & 73 deletions

File tree

translations/de/try_ruby_460.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,42 @@
11
---
2-
lang: EN
3-
title: Not a School Class, a Working Class
2+
lang: DE
3+
title: Keine Schulklasse, eine Arbeiterklasse
44
answer:
55
ok:
66
error:
77
---
88

9-
You see, the empty curly braces {} is a shortcut for Hash.new. The new method is used to make objects
10-
of a certain class. Think "class" as in "working class" &mdash; a specific group of objects which
11-
are similar, have the same jobs, the same shirts.
12-
What use is a class?
9+
Du siehst, die leeren geschweiften Klammern {} sind eine Abkürzung für
10+
Hash.new. Die Methode new wird verwendet, um Objekte einer bestimmten Klasse
11+
zu erzeugen. Denken Sie bei "Klasse" an die " Arbeiterklasse" &mdash; eine
12+
bestimmte Gruppe von Objekten, die ähnlich sind, die gleichen Jobs haben, die
13+
gleichen Hemden.
14+
Welchen Nutzen hat eine Klasse?
1315

1416
### Blurbalizer<sup>TM</sup>
15-
You just had a brilliant idea for a new app. It is going to be __the__ next instant
16-
messaging platform. You want an app where people can send each other short messages. You call
17-
these messages Blurbs<sup>TM</sup>. A Blurb<sup>TM</sup> has a maximum length of just 40 characters. Let's do a mood setting too.
17+
Du hattest gerade eine brillante Idee für eine neue App. Es wird __die__
18+
nächste Instant-Messaging-Plattform sein. Du willst eine App, mit der man sich
19+
gegenseitig kurze Nachrichten schicken kann. Du nennst diese Nachrichten
20+
Blurbs<sup>TM</sup>. Ein Blurb<sup>TM</sup> hat eine maximale Länge von nur 40
21+
Zeichen. Lass uns auch eine Stimmungsanzeige machen.
1822

19-
<!---The Internet has really brought back stick people and smileys out of bankruptcy. __Emote!__-->
23+
<!---Das Internet hat die Strichmännchen und Smileys wirklich aus der
24+
Versenkung geholt. __Emote!__-->
2025

21-
### Where to start
22-
Well, you might store your Blurbs<sup>TM</sup> entries in a json file, right?
23-
But how would you keep track of the content of the entry and the time it was posted?
24-
And when you loaded the file, how would it look in Ruby?
25-
Would it be a Hash? Or an Array? Or an Array of Arrays? Or something else?
26+
### Wo soll ich anfangen?
27+
Nun, du könntest deine Blurbs<sup>TM</sup>-Einträge in einer json-Datei
28+
speichern, oder?
29+
Aber wie kannst du den Inhalt des Eintrags und die Zeit, zu der er
30+
veröffentlicht wurde, nachverfolgen?
31+
Und wenn du die Datei geladen hast, wie würde sie in Ruby aussehen?
32+
Wäre es ein Hash? Oder ein Array? Oder ein Array von Arrays? Oder etwas
33+
anderes?
2634

27-
### Class
28-
I really think you'll want to use a class. You are already familiar with many classes:
35+
### Klasse
36+
Ich glaube wirklich, dass du eine Klasse benutzen willst. Du bist bereits mit
37+
vielen Klassen vertraut:
2938
Hash, Array, String.
30-
Let's make a new class (returns no output):
39+
Erstellen wir eine neue Klasse (gibt keine Ausgabe zurück):
3140

3241
class Blurb
3342
end

translations/de/try_ruby_470.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
---
2-
lang: EN
3-
title: The Stuff Apps are Made of
2+
lang: DE
3+
title: Der Stoff, aus dem Apps gemacht sind
44
answer:
55
ok:
66
error:
77
---
88

9-
You've opened up a new Blurb<sup>TM</sup> class. What is your blog entry made of?
10-
The content, sure. Also, a time when the Blurb<sup>TM</sup> was posted. And a mood.
9+
Du hast eine neue Blurb<sup>TM</sup>-Klasse eröffnet. Woraus ist dein
10+
Blogeintrag gemacht?
11+
Der Inhalt, sicher. Auch eine Zeit, zu der der Blurb<sup>TM</sup>
12+
veröffentlicht wurde. Und eine Stimmung.
1113

12-
Okay, so you've got the first line of the class, here's the rest:
14+
Okay, du hast also die erste Zeile der Klasse, hier ist der Rest:
1315

1416
class Blurb
1517
attr_accessor :content, :time, :mood
1618
end
1719

18-
Class names always begin with a capital letter.
20+
Klassennamen beginnen immer mit einem Großbuchstaben.
1921

20-
(Still no output)
22+
(Immer noch keine Ausgabe)

translations/de/try_ruby_480.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
---
2-
lang: EN
3-
title: Accessors Are the Dangling Limbs
2+
lang: DE
3+
title: Accessors sind die baumelnden Gliedmaßen
44
answer: Blurb:
55
ok: My first Blurb
66
error:
77
load: class Blurb;attr_accessor :content,:time,:mood;end
88
---
99

10-
Hey, good class, man. You've got a new Blurb<sup>TM</sup> class.
10+
Hey, gute Klasse, Kumpel. Du hast eine neue Blurb<sup>TM</sup>-Klasse.
1111

12-
In the class definition, you used a method called attr\_accessor.
13-
There are many __attr__ibute methods like this which add little settings to classes.
14-
These attributes are just variables attached to a class.
12+
In der Definition der Klasse hast du eine Methode namens attr\_accessor
13+
verwendet. Es gibt viele __Attr__ibute Methoden wie diese, die kleine
14+
Einstellungen zu Klassen hinzufügen. Diese Attribute sind einfach nur
15+
Variablen, die einer Klasse zugeordnet sind.
1516

16-
Think of it this way. A class is like a person. That star-shaped human thing out there.
17-
And the attributes are the dangling limbs, the different parts that make up a body and
18-
other people can shake hands with.
17+
Sieh es doch einmal so. Eine Klasse ist wie eine Person. Dieses sternförmige
18+
menschliche Ding da draußen. Und die Attribute sind die baumelnden Gliedmaßen,
19+
die verschiedenen Teile, aus denen ein Körper besteht und denen andere
20+
Menschen die Hand geben können.
1921

20-
### Now
21-
To create a Blurb<sup>TM</sup> and set the content:
22+
### Und nun
23+
Erstellen eines Blurbs<sup>TM</sup> und Festlegen des Inhalts:
2224

2325
blurb1 = Blurb.new
2426
puts blurb1

translations/de/try_ruby_490.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
lang: EN
3-
title: An Object, That Neat Little Package
2+
lang: DE
3+
title: Ein Objekt, dieses hübsche kleine Paket
44
answer: Blurb:
55
ok: Blurb updated
66
error:
77
load: prev;blurb1=Blurb.new;blurb1.content="Today Mount Hood Was Stolen!"
88
---
99

10-
Go ahead and set the Blurb<sup>TM</sup> time and mood:
10+
Lost geht's, stell die Blurb<sup>TM</sup> Zeit und Stimmung ein:
1111

1212
blurb1.time = Time.now
1313
blurb1.mood = :sick

translations/de/try_ruby_500.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
---
2-
lang: EN
3-
title: Quickening it Up
2+
lang: DE
3+
title: Aufpeppen der Sache
44
answer: ^\d{4}
5-
ok: Noted
5+
ok: Notiert
66
error:
77
---
88

9-
Cool, your app is awesome. Hey, let's make things a bit easier on you.
10-
You're not going to want to set the time like that every time you Blurb<sup>TM</sup>.
9+
Cool, deine App ist großartig. Hey, machen wir es dir ein bisschen leichter. Du wirst die Zeit nicht jedes Mal so eingeben wollen, wenn du Blurb<sup>TM</sup> benutzt.
1110

12-
You just want to type the content and set the mood, right?
11+
Du willst nur den Inhalt eingeben und die Stimmung festlegen, richtig?
1312

14-
Let's add an __initialize__ method to our class. This method is called whenever a new Blurb<sup>TM</sup>
15-
is created.
16-
At the same time we can limit the length of the Blurb<sup>TM</sup> content to 40 characters.
13+
Fügen wir eine __initialize__-Methode zu unserer Klasse hinzu. Diese Methode wird immer dann aufgerufen, wenn ein neuer Blurb erstellt wird. Gleichzeitig können wir die Länge des Blurb-Inhalts auf 40 Zeichen begrenzen.
1714

1815
class Blurb
1916
attr_accessor :content, :time, :mood
@@ -27,5 +24,5 @@ At the same time we can limit the length of the Blurb<sup>TM</sup> content to 40
2724

2825
Blurb.new(:sick).time
2926

30-
(That parameter __content=""__ is there to make sure that we know content is a string,
31-
even if no content parameter is passed to the initialize method.)
27+
(Der Parameter __content=""__ ist dazu da, um sicherzustellen, dass content eine String ist,
28+
auch wenn kein Parameter content an die Methode initialize übergeben wird.)

translations/de/try_ruby_510.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
---
2-
lang: EN
3-
title: You've Taught Your App to Reject Worthless Things
2+
lang: DE
3+
title: Du hast deiner App beigebracht, wertlose Dinge abzulehnen
44
answer: Blurb:
55
ok: Blurb added
66
error:
77
load: class Blurb;attr_accessor :content,:time,:mood;def initialize(mood, content="");@time=Time.now;@content=content[0..39];@mood=mood;end;end;blurb1=Blurb.new(:sick,"Today Mount Hood Was Stolen!")
88
---
99

10-
Did you see how inside the class we used the at-symbols (@time).
10+
Hast du gesehen, wie wir innerhalb der Klasse die at-Symbole (@time) verwendet
11+
haben?
1112

12-
__Outside__ the class, we use accessors:
13+
__Außerhalb__ der Klasse verwenden wir Accessors:
1314

1415
> __blurb.time = Time.now__
1516
16-
but __inside__ we use the __object's variables__:
17+
aber __innerhalb__ verwenden wir die __Objektvariablen__:
1718

1819
> __@time = Time.now__
1920
20-
They're the exact same thing, but expressed in two different places of your program.
21+
Sie sind genau dasselbe, werden aber an zwei verschiedenen Stellen in deinem
22+
Programm verwendet.
2123

22-
### Create another Blurb<sup>TM</sup>
23-
When a new Blurb<sup>TM</sup> is created, the initialize method is used to check for any
24-
arguments to new.
24+
### Erstelle einen weiteren Blurb<sup>TM</sup>
25+
Wenn ein neuer Blurb<sup>TM</sup> erstellt wird, überprüft die Methode
26+
initialize, ob irgendwelche Argumente für new gibt.
2527

26-
Uh, we need two arguments:
28+
Äh, wir brauchen zwei Argumente:
2729

2830
Blurb2 = Blurb.new :confused, "I can not believe Mt. Hood was stolen!"

translations/de/try_ruby_520.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
---
2-
lang: EN
3-
title: A Giraffe Has Not Stolen Summary #7
2+
lang: DE
3+
title: Eine Giraffe hat nicht die Zusammenfassung #7 gestohlen
44
answer:
55
class: stretcher chapmark
66
ok:
77
error:
88
load: prev;blurb2=Blurb.new :confused, "I can not believe Mt. Hood was stolen!"
99
---
1010

11-
Aha, you're here. And all in one piece. We're still going to make your app real,
12-
but until then, let's review, okay?
11+
Aha, du bist hier. Und alles in einem Stück. Wir werden deine App immer noch
12+
verwirklichen, aber bis dahin, lass uns eine Zusammenfassung anschauen, okay?
1313

14-
### Classes
15-
Everything in Ruby is some kind of object. Classes explain objects, how a certain object works.
16-
For example, you made a few Blurb<sup>TM</sup> objects and these objects are explained in the Blurb
17-
class.
18-
In other words: you call them Blurb objects.
19-
You can use classes to (kinda) model real life objects.
14+
### Klassen
15+
In Ruby ist alles eine Art von Objekt. Klassen erklären Objekte, wie ein
16+
bestimmtes Objekt funktioniert.
17+
Du hast zum Beispiel ein paar Blurb<sup>TM</sup>-Objekte erstellt, und diese
18+
Objekte werden in der Blurb Klasse erklärt.
19+
Mit anderen Worten: sie heißen Blurb-Objekte.
20+
Mit Klassen kann man (irgendwie) Objekte des wirklichen Lebens modellieren.
2021

2122
### Accessors
22-
Accessors are variables attached to an object which can be used __outside__ the object.
23+
Accessors sind Variablen, die an ein Objekt angehängt sind und __außerhalb__
24+
des Objekts verwendet werden können.
2325
(blurb2.time = Time.now)
2426

25-
### Object variables
26-
Object variables are the same variables you're using for accessors, but __inside__ the object.
27+
### Objectvariablen
28+
Objektvariablen sind die gleichen Variablen, die man auch für Accessors
29+
verwendet, aber __innerhalb__ des Objekts.
2730
(@time = Time.now)

0 commit comments

Comments
 (0)