Skip to content

Commit

Permalink
added german server support (#83)
Browse files Browse the repository at this point in the history
howrse.de support and fixed polish translation
  • Loading branch information
Dinekin authored Oct 8, 2024
1 parent a7261f9 commit d4d7424
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 5 deletions.
23 changes: 23 additions & 0 deletions de/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"appName": {
"message": "Better Howrse",
"description": "Name of the extension."
},
"appDesc": {
"message": "This extension displays more informations in the game about horses and competitions to make you feel more comfortable when playing.",
"description": "Description of the extension."
},
"foodSelect": {
"message": "Auto Food Select",
"description": "Label for the food select checkbox in popup."
},
"moreInfos": {
"message": "More Infos",
"description": "Label for the more infos checkbox in popup"
},
"competitionRatio": {
"message": "Competition Ratio",
"description": "Label for the competition ratio checkbox in popup"
}
}

6 changes: 4 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"*://*.howrse.no/*",
"*://*.howrse.co.uk/*",
"*://*.caballow.com/*",
"*://*.howrse.pl/*"
"*://*.howrse.pl/*",
"*://*.howrse.de/*"
]
}
],
Expand All @@ -39,7 +40,8 @@
"*://*.howrse.no/*",
"*://*.howrse.co.uk/*",
"*://*.caballow.com/*",
"*://*.howrse.pl/*"
"*://*.howrse.pl/*",
"*://*.howrse.de/*"
],
"run_at": "document_end",
"js": [
Expand Down
41 changes: 38 additions & 3 deletions translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ class Translation {
trailClass: 'Trail class',
reining: 'Reining',
westernPleasure: 'Western pleasure',
disclaimer: 'The higher the coefficient, the greater the chance of winning'
disclaimer: 'Im wyższy współczynnik tym większa szansa na wygraną'
},
other: {
pet: 'Towarzysz: ',
pg: 'GP: ',
pg: 'PG: ',
skills: 'Umiejętności: '
},
sex: {
Expand Down Expand Up @@ -170,6 +170,40 @@ class Translation {
male: ' macho',
gelding: ' castrado'
}
},
de: {
stat: {
stamina: 'ausdauer',
speed: 'tempo',
dressage: 'dressur',
gallop: 'galopp',
trot: 'trab',
jumping: 'springen'
},
competition: {
trot: 'Trab',
gallop: 'Galopp',
dressage: 'Dressur',
crossCountry: 'Cross',
showJumping: 'Springturnier',
barrelRacing: 'Barrel Racing',
cutting: 'Cutting',
trailClass: 'Trail',
reining: 'Reining',
westernPleasure: 'Western Pleasure',
disclaimer: 'Je höher der Koeffizient, desto größer die Gewinnchance'
},
other: {
pet: 'Kamerad: ',
pg: 'GP: ',
skills: 'Fähigkeiten: '
},
sex: {
genderLabel: "Geschlecht:",
female: ' weiblich',
male: ' männlich',
gelding: ' Wallach'
}
}
}
}
Expand All @@ -181,7 +215,8 @@ class Translation {
'equideow': 'fr',
'howrse.no': 'no',
'howrse.pl': 'pl',
'caballow.com': 'es'
'caballow.com': 'es',
'howrse.de': 'de'
};

for (let domain in languageMap) {
Expand Down

0 comments on commit d4d7424

Please sign in to comment.