Aurelius7309 / BlackHole

Accessibility/Screenreader mod for Balatro
11 stars 6 forks source link

localization #3

Open ogomez92 opened 1 month ago

ogomez92 commented 1 month ago

Hello, I'm interested in localizing Black Hole into Spanish. I have a few questions:

  1. Is this possible? Would we need to localize all the items, etc or does the game provide multi language support already which your scripts can hook into?
  2. How prepared are your strings for localization?

Thanks!

Aurelius7309 commented 1 month ago

Balatro already provides a localization system, and Black Hole uses the text available in-game wherever possible. There's some custom ones I've added, all you would have to do is translate those into Spanish. If it's unclear to you what an entry is doing, it might be helpful to search Black Hope's source code for the corresponding key, but feel free to ask me to clarify.

This is the English file you should use for reference: https://github.com/Aurelius7309/BlackHole/blob/main/localization%2Fen-us.lua

ogomez92 commented 1 month ago

Hello, I've seen an issue in Spanish, where it doesn't read the tags when they are shown after skip for. Let me know if you need an example and I will put my game back into Spanish to show you, but it's pretty straightforward, when you are seeing the list of blinds and when you go down to skip blind it won't read what the tag does.

Also, I will fork your project and translate it and make a new pr with the Spanish file, is that ok?

El sáb, 10 ago 2024 a las 10:53, Aure @.***>) escribió:

Balatro already provides a localization system, and Black Hole uses the text available in-game wherever possible. There's some custom ones I've added, all you would have to do is translate those into Spanish. If it's unclear to you what an entry is doing, it might be helpful to search Black Hope's source code for the corresponding key, but feel free to ask me to clarify.

This is the English file you should use for reference: https://github.com/Aurelius7309/BlackHole/blob/main/localization%2Fen-us.lua

— Reply to this email directly, view it on GitHub https://github.com/Aurelius7309/BlackHole/issues/3#issuecomment-2280421586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4P75JSOMEKEGDGDY6QJ5TZQXIJDAVCNFSM6AAAAABMHWGZEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBQGQZDCNJYGY . You are receiving this because you authored the thread.Message ID: @.***>

Aurelius7309 commented 1 month ago

Yeah that's perfect, thanks! I'm already investigating the issue with Blind tags and will push an update as soon as I'm able to resolve it.