Skip to content

Commit

Permalink
i18n: Add jak 2 custom text to Crowdin (#3141)
Browse files Browse the repository at this point in the history
  • Loading branch information
xTVaser authored Nov 4, 2023
1 parent 8572540 commit 959921e
Show file tree
Hide file tree
Showing 28 changed files with 3,372 additions and 3,363 deletions.
24 changes: 23 additions & 1 deletion common/util/FontUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,28 @@ static std::vector<ReplaceInfo> s_replace_info_jak2 = {
{"N~Y~-6Hº~Z~+10H", ""},
{"~+4Vç~-4V", ",c"},

// added for translations TODO - check these for jak 2
{"O~Y~-25H~-1V/~Z", "Ø"},
{"o~Y~-23H~+4V/~Z", "ø"},
{"A~Y~-13H~+8V,~Z", "Ą"},
{"a~Y~-8H~+6V,~Z", "ą"},
{"E~Y~-6H~+8V,~Z", "Ę"},
{"e~Y~-10H~+7V,~Z", "ę"},
{"L~Y~-21H~+0V/~Z", "Ł"},
{"l~Y~-16H~+0V/~Z", "ł"}, // TODO - this one is ugly, font character addition (small slash)
{"Z~Y~-25H~-11Vº~Z", "Ż"},
{"z~Y~-23H~-5Vº~Z", "ż"},
{"a~Y~-25H~-5Vº~Z", "å"},
{"S~Y~-21H~-5V'~Z", "Ś"},
{"s~Y~-25H~-5V'~Z", "ś"},
{"n~Y~-25H~-5V'~Z", "ń"},
{"c~Y~-25H~-5V'~Z", "ć"},
{"o~Y~-24H~-4V<TIL>~Z", "õ"},
{"a~Y~-24H~-4V<TIL>~Z", "ã"},
{"O~Y~-28H~-4V'~-9H'~Z", "Ő"},
{"U~Y~-27H~-4V'~-12H'~Z", "Ű"},
{"o~Y~-28H~-4V'~-9H'~Z", "ő"},

// tildes
{"N~Y~-22H~-4V<TIL>~Z", "Ñ"},
{"n~Y~-24H~-4V<TIL>~Z", "ñ"},
Expand All @@ -942,7 +964,7 @@ static std::vector<ReplaceInfo> s_replace_info_jak2 = {
{"A~Y~-20H~-4V^~Z", "Â"},
{"a~Y~-24H~-5V^~Z", "â"},
{"E~Y~-20H~-5V^~Z", "Ê"},
{"e~Y~-25H~-4V^~Zt", "ê"},
{"e~Y~-25H~-4V^~Z", "ê"},
{"I~Y~-19H~-5V^~Z", "Î"},
{"i~Y~-19H~-8V^~Z", "î"},
{"O~Y~-20H~-4V^~Z", "Ô"},
Expand Down
2 changes: 2 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ files:
- "it"
- "ja"
- "en-GB"
- source: /game/assets/jak2/text/game_custom_text_en-US.json
translation: /game/assets/jak2/text/game_custom_text_%locale%.json
3 changes: 3 additions & 0 deletions decompiler/Disasm/InstructionDecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ struct OpcodeFields {
uint32_t sa() { return (data >> 6) & 0x1f; }

// 0 - 5
// TODO - remove once we update clang-format
// clang-format off
uint32_t function() { return (data)&0x3f; }
// clang-format on

////////////////
// Immediates //
Expand Down
Loading

0 comments on commit 959921e

Please sign in to comment.