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

German Accent Trait #18050

Merged
merged 26 commits into from Apr 24, 2024
Merged

German Accent Trait #18050

merged 26 commits into from Apr 24, 2024

Conversation

klushy225
Copy link
Contributor

@klushy225 klushy225 commented Feb 26, 2024

[A-TRAITS]

About the PR

(git broke- I'm adding the labels now- not sure why they didn't go up with the pr)

This pr seeks to add a german accent to the game, which will appear as a cute little pretzel icon in the language traits section. I am a german speaker, so I tried to make this as accurate as possible. However, German is only my second language so I had a native speaker over on discord help me a bit. A pretty big hurdle with this is the MANY different dialects of German, and how they all sound very different from each other. They are so extreme that alot of the times southern German shows will be subbed for Northern audiences so they can understand them. I chose to go with Hochdeutsch, as that is the standard form of German understood by most German speakers.

This functions similarly to how the scots dialect works, with a few differences. Similarly to the scots code, there is a list of words that replace certain words in the sentence. These are cognates that are similar to english and mostly understandable by purely english speakers, with a other few common(and perhaps a little stereotypical) words thrown in there. The key difference is that the modified tokens are run into the parser, so they are spelled incorrectly but are pronounced correctly if read like English.

demo:
https://youtu.be/3RakGHF6lOM

Why's this needed?

I think there should be more accents in the game, and I recieved positive feedback from multiple people when I demo'd my little test of this when I was bored. I was pretty dissapointed when I first started playing a few years ago and saw no German accent.

Changelog

(u)Klushy225
(*)Added a german accent to the game, which makes the player sound very german.

@boring-cyborg boring-cyborg bot added the C-Sprites Automatically applied on any .dmi or icons folder change label Feb 26, 2024
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 26, 2024
@keywordlabeler keywordlabeler bot added the A-Traits Deals with traits in some way label Feb 26, 2024
@klushy225 klushy225 marked this pull request as ready for review February 27, 2024 00:55
oven@=backoven
over@=uber
paper@=papier
peope@=leute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
peope@=leute
people@=leute

precisely@=genau
preheat@=vorheiss
pretty@=schoen
prezel@=brezel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
prezel@=brezel
pretzel@=brezel

gadget@=ding
girl@=maedchen
god@=gott
god@=gotte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
god@=gotte
gods@=gotter

god defined twice? cant find much reference to gotte. assume you meant gods/gotter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was typing fast- i did mean gotter haha

weather@=wetter
welcome@=wilkommen
what@=was
what@=was
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
what@=was

"what" defined twice.

@klushy225
Copy link
Contributor Author

Ack- typos. I'll fix em now. thanks for finding them

@TobleroneSwordfish
Copy link
Contributor

Not sure if this is an issue with this accent or accents in general but the two letter replacements play weirdly with capital letters, so Quest becomes KVeest


var/list/phrases = list("excuse me=entschuldigung","yes sir=javol","yes ma'am=javol","you stink=du stinkst","good morning=guten morgen"
,"good day=guten tag", "good evening=guten abend", "good night=guten nacht","thank you=danke","thank you very much=danke schoen","I'm sorry=es tut mir leid","that's too bad=schade","no problem=kein problem"
,"good luck=viel glueck","bless you=gezundheit","good afternoon=guten tag")//this is horrible. I'll come up with a better system later, but I have work to do right now. This is for multi-word phrases the document can't pick up. I'm going to convert this list to a text document when I have time.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also just be an associative list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I fixed the stinky code I had there before. Nice and clean now!

@klushy225
Copy link
Contributor Author

Not sure if this is an issue with this accent or accents in general but the two letter replacements play weirdly with capital letters, so Quest becomes KVeest

I'm pretty sure that is a flaw with the general accent system, but I'll look into finding a fix for that

Co-authored-by: TobleroneSwordfish <20713227+TobleroneSwordfish@users.noreply.github.com>
Copy link
Contributor

This PR has been inactive for two weeks, and has been automatically marked as stale. This means it is at risk of being auto closed in another week. Please address any outstanding review items and ensure your PR is finished. If you are auto-staled anyway, ask developers if your PR will be merged. Once you have done any of the previous actions then you should request a developer remove the stale label on your PR, to reset the stale timer. If you feel no developer will respond in that time, you may wish to close this PR youself, while you seek developer comment, as you will then be able to reopen the PR yourself.

@github-actions github-actions bot added the S-Stale An inactive PR that has had no updates in the past two weeks label Mar 13, 2024
@klushy225
Copy link
Contributor Author

Not stale, I'm still working on it!

@github-actions github-actions bot removed the S-Stale An inactive PR that has had no updates in the past two weeks label Mar 14, 2024
@@ -150,6 +150,29 @@
message = finnishify(message)
return message

/datum/bioEffect/speech/german
name = "Frontal Gyrus Alteration Type-DE"
desc = "Forces the language center of the subject's brain to construct scentences in a German manner."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo typo typo typo typo typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ach- sorry. Dysgraphia moment. I always spell that wrong. Fixing now

@klushy225
Copy link
Contributor Author

Oops- didnt mean to push that yet

@Glamurio
Copy link
Contributor

Sorry I've never done a proper review, I didn't know how to suggest changes fancy like the others.

@Mantweerp
Copy link
Contributor

Sorry I've never done a proper review, I didn't know how to suggest changes fancy like the others.

In the Files changed navitem at the top you can click the plus symbol on a line of code to add a comment

@Glamurio
Copy link
Contributor

In the Files changed navitem at the top you can click the plus symbol on a line of code to add a comment

That's kind of what I did, I just added a lot of comments. My review just looked really busy I wasn't sure if I did it right.

Copy link
Contributor

github-actions bot commented Apr 4, 2024

This PR has been inactive for two weeks, and has been automatically marked as stale. This means it is at risk of being auto closed in another week. Please address any outstanding review items and ensure your PR is finished. If you are auto-staled anyway, ask developers if your PR will be merged. Once you have done any of the previous actions then you should request a developer remove the stale label on your PR, to reset the stale timer. If you feel no developer will respond in that time, you may wish to close this PR youself, while you seek developer comment, as you will then be able to reopen the PR yourself.

@github-actions github-actions bot added the S-Stale An inactive PR that has had no updates in the past two weeks label Apr 4, 2024
@klushy225
Copy link
Contributor Author

In the Files changed navitem at the top you can click the plus symbol on a line of code to add a comment

That's kind of what I did, I just added a lot of comments. My review just looked really busy I wasn't sure if I did it right.

I'm not sure if it worked, as I can't see any of your comments/suggestions on the code.

Comment on lines 926 to 941
var/list/phrase = list(
"excuse me" = "entschuldigung",
"yes sir" = "javol",
"yes maam" = "javol",
"yes ma'am" = "javol",
"good morning" = "guten morgen",
"good day" = "guten tag",
"good afternoon" = "guten tag",
"good evening" = "guten abend",
"good night" = "guten nacht",
"thank you" = "danke",
"that's too bad" = "schade",
"thats too bad" = "schade",
"too bad" = "schade",
"no problem" = "kein problem"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have this in addition to german.txt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, the accent system doesn't support multi word phrases in a text document. I could put those into another doc, but I was told to just make an associative list

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could also rework the system itself, but I want to keep the phrases and the single word replacements seperate

Copy link
Member

@Tarmunora Tarmunora Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth adding that as a comment at least - reduce potential future confusion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alrighty. I'll try and comment the code a bit better

@github-actions github-actions bot removed the S-Stale An inactive PR that has had no updates in the past two weeks label Apr 6, 2024
Copy link
Contributor

@Glamurio Glamurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Files changed navitem at the top you can click the plus symbol on a line of code to add a comment

That's kind of what I did, I just added a lot of comments. My review just looked really busy I wasn't sure if I did it right.

I'm not sure if it worked, as I can't see any of your comments/suggestions on the code.

You're right. I didn't click "Request changes".


var/list/phrase = list(
"excuse me" = "entschuldigung",
"yes sir" = "javol",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word is spelled "Jawohl."

oh@=aeh
old@=alt
one@=eins
orange@=orangen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just "Orange".

old@=alt
one@=eins
orange@=orangen
oven@=backoven
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Backofen"

shame@=scham
shameful@=schamvoll
she@=sie
shit@=sheisse
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Scheisse"

shameful@=schamvoll
she@=sie
shit@=sheisse
shitcurity@=scheipolizei
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "Scheisspolizei"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just going to remove the shitsec ones alltogether

soup@=suppe
sour@=sauer
stone@=stein
stones@=steinen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Steine"

wonderful@=wunderbar
worm@=wurm
yes@=ja
yessir@=javol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Jawohl"

true@=rightig
false@=falsch
head@=kopf
care@=kare
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I don't understand at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oop- typo. that's meant to be richtig

false@=falsch
head@=kopf
care@=kare
sweet@=suss
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Suess"

head@=kopf
care@=kare
sweet@=suss
grass@=glas
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be "Gras".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another typo- :p

@klushy225
Copy link
Contributor Author

fixing all the typos now- thanks for catching them. I've really gotta be more careful

@github-actions github-actions bot added the S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict label Apr 19, 2024
@TobleroneSwordfish
Copy link
Contributor

!merge_upstream

Copy link
Contributor

@TobleroneSwordfish
Copy link
Contributor

TobleroneSwordfish commented Apr 24, 2024

scheisse

@TobleroneSwordfish TobleroneSwordfish merged commit dec96bf into goonstation:master Apr 24, 2024
17 of 22 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 24, 2024
@Studenterhue Studenterhue added the E-Add-To-Wiki A PR that will require changes to the wiki label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Traits Deals with traits in some way C-Sprites Automatically applied on any .dmi or icons folder change E-Add-To-Wiki A PR that will require changes to the wiki S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants