beyarkay / card_game_builder

Got a cardgame idea? This project will convert it to printable PDFs which you can cut out!
5 stars 4 forks source link

Allow us to translate the games #9

Open NathanAP opened 1 year ago

NathanAP commented 1 year ago

Hi!

First of all I love your project and I wish all the best for everyone envolved in this project.

It would be AWESOME if we could translate games. If we can find a way to make this possible, I would love to help translating it to brazilian portuguese :)

I'm a dev myself but I'm not into Rust lang, so I'm not sure this is easy to do.

beyarkay commented 1 year ago

Hey! Thanks, I'm glad that you like it.

This should be pretty easy actually. As an example, if you wanted to translate fear_pong into Brazilian Portuguese,

  1. you'll want to copy games/fear_pong.yaml into a new file called games/fear_pong.pt-BR.yaml,
  2. you'll want to go through all the items lists (like this one and this one) and translate them. a. You might also want to translate the pre-amble lines that describe the game, although those are less important to actually playing the game so that's up to you
  3. Submit a PR with the new file(s) and I'll approve them!

Once the PR is approved, GitHub actions will automatically create the PDFs and update the release.

Let me know how it goes! I didn't anticipate anyone wanting to translate, but Rust has really good language support so there shouldn't be any problems. But if there are any sharp edges, I'll be more than happy to try make the process a bit smoother for future translators ❤️ 🇧🇷

(PS: as far as I can tell, pt-BR is the IETF language tag for Brazilian Portuguese so that's what I used for the renaming. Feel free to correct me if I'm wrong)