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

Some fixes to the translator credits #1080

Merged
merged 5 commits into from
Dec 16, 2023

Conversation

Daaaav
Copy link
Contributor

@Daaaav Daaaav commented Dec 8, 2023

Changes:

  • Fixed translator credits headers being forced to 8x8 font:
    Question marks because the 8x8 font doesn't support Chinese
  • Fixed current_credits_list_index not always being reset - explained further in the commit message
  • Try to prevent some lines in rolling credits going offscreen - fixed version for Italian for example:
    It just goes further left instead of offscreen
  • Added limits (like max="40") to the translator credits strings
  • Minor indentation style fix in Render.cpp

Legal Stuff:

By submitting this pull request, I confirm that...

  • My changes may be used in a future commercial release of VVVVVV
  • I will be credited in a CONTRIBUTORS file and the "GitHub Friends"
    section of the credits for all of said releases, but will NOT be compensated
    for these changes

The header "Translators", as well as the language names, were using
PR_FONT_8X8, even though it was translatable text. This is now fixed.
(Also, the CJK spacing for the language names is now higher because
that looked nicer)
If you go into the middle of the list of translators in the main menu
credits, then press Escape, and then go into the credits again, the
first page of the list may start at the wrong place, because while
game.translator_credits_pagenum was reset to 0,
game.current_credits_list_index wasn't. This is fixed now.
The new localization-related credits are placed 5 characters from
the left border in the rolling credits (at x=40), which means the
limit was 35 8x8 characters. Which was broken by several languages.
So instead, move the string leftward a bit if it would run offscreen
otherwise.
Luckily, seems like no language has broken the limit when it is 40!
This used 2-space indentation for one level, as well as }else{ on a
single line.
@InfoTeddy InfoTeddy added the localization Implies 'required for 2.4' unless otherwise noted label Dec 8, 2023
@InfoTeddy InfoTeddy self-assigned this Dec 8, 2023
@InfoTeddy InfoTeddy merged commit 82aef30 into TerryCavanagh:master Dec 16, 2023
4 checks passed
@Daaaav Daaaav deleted the credits-fixes branch December 16, 2023 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
localization Implies 'required for 2.4' unless otherwise noted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants