-
Notifications
You must be signed in to change notification settings - Fork 237
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
Fix game crash from localization #45
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="css/game.css"> | ||
</head> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ var textStrings_EN = { | |
"areTheyScared": "(ya gotta catch 'em *being* scared by a square)", // not used | ||
"squaresSnubCircles": "SQUARES SNUB CIRCLES", | ||
"areTheySnubbed": "(ya gotta catch 'em *while* snubbing a circle)", // not used | ||
"everyoneHates": "EVERYONE HATES EVERYONE!!1!", | ||
"everyoneHates": "EVERYONE HATES EVERYONE!!!!", | ||
"almostEveryoneHates": "ALMOST EVERYONE HATES EVERYONE...", | ||
"squaresHateCircles": "SQUARES HATE CIRCLES", | ||
"circlesHateSquares": "CIRCLES HATE SQUARES", | ||
|
@@ -129,7 +129,7 @@ var textStrings_DE = { | |
"areTheyScared": "(erwische sie, *wenn* sie fl\xFCchten)", | ||
"squaresSnubCircles": "QUADRAT: Anschuldigungen von KREISEN l\xE4cherlich.", | ||
"areTheySnubbed": "(erwische sie, *w\xE4hrend* sie angreifen)", | ||
"everyoneHates": "ALLE HASSEN JEDEN!!1!", | ||
"everyoneHates": "ALLE HASSEN JEDEN!!!!", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
"almostEveryoneHates": "FAST JEDER HASST ALLE...", | ||
"squaresHateCircles": "QUADRATE HASSEN KREISE", | ||
"circlesHateSquares": "KREISE HASSEN QUADRATE", | ||
|
@@ -336,7 +336,7 @@ var textStrings_PT = { | |
"areTheyScared": "pegue-os *sendo assustados* por um quadrado)", // not used | ||
"squaresSnubCircles": "QUADR. ESNOBAM CÍRCULOS", | ||
"areTheySnubbed": "(pegue *enquanto* esnobam um círculo)", // not used | ||
"everyoneHates": "TODO MUNDO ODEIA TODO MUNDO!!1!", | ||
"everyoneHates": "TODO MUNDO ODEIA TODO MUNDO!!!!", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here |
||
"almostEveryoneHates": "QUASE TODO MUNDO ODEIA TODO MUNDO..", | ||
"squaresHateCircles": "QUADRADOS ODEIAM CÍRCULOS", | ||
"circlesHateSquares": "CÍRCULOS ODEIAM QUADRADOS", | ||
|
@@ -438,7 +438,7 @@ var textStrings_PT_BR = { //I put that way because portuguese from Brazil (PT_BR | |
"areTheyScared": "(você tem que pegar eles *sendo* assustados por um quadrado)", // not used | ||
"squaresSnubCircles": "QUADRADOS AFRONTAM CÍRCULOS", | ||
"areTheySnubbed": "(você tem que pegá-los *enquanto* eles afrontam os círculos)", // not used | ||
"everyoneHates": "TODO MUNDO ODEIA TODO MUNDO!!1!", | ||
"everyoneHates": "TODO MUNDO ODEIA TODO MUNDO!!!!", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also here |
||
"almostEveryoneHates": "QUASE TODO MUNDO ODEIA TODO MUNDO...", | ||
"squaresHateCircles": "QUADRADOS ODEIAM CÍRCULOS", | ||
"circlesHateSquares": "CÍRCULOS ODEIAM QUADRADOS", | ||
|
@@ -540,7 +540,7 @@ var textStrings_ES = { | |
"areTheyScared": "(tienes que atraparlos *siendo* asustados por un cuadrado)", // not used | ||
"squaresSnubCircles": "CUADRADOS DESPRECIAN A CIRCULOS", | ||
"areTheySnubbed": "(ya gotta catch 'em *while* snubbing a circle)", // not used | ||
"everyoneHates": "TODOS SE ODIAN!!1!", | ||
"everyoneHates": "TODOS SE ODIAN!!!!", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you've already got the idea |
||
"almostEveryoneHates": "CASI TODOS SE ODIAN...", | ||
"squaresHateCircles": "CUADRADOS ODIAN A CIRCULOS", | ||
"circlesHateSquares": "CIRCLES HATE SQUARES", | ||
|
@@ -617,4 +617,24 @@ var textStrings_ES = { | |
|
||
// (quote0004.png) | ||
"misatrributed": "(misattributed)", | ||
}; | ||
}; | ||
|
||
const textStrings = (() => { | ||
switch (navigator.language) { | ||
case "en-US": | ||
return textStrings_EN; | ||
case "da": | ||
return textStrings_DA; | ||
case "fa": | ||
return textStrings_FA; | ||
case "pt-pt": | ||
return textStrings_PT; | ||
case "pt-BR": | ||
return textStrings_PT_BR; | ||
case "es": | ||
return textStrings_ES; | ||
default: | ||
return textStrings_EN; | ||
} | ||
} | ||
)(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I´m pretty sure this isn't a typo. Just a joke when people type really fast and miss click it