Giter VIP home page Giter VIP logo

Comments (6)

BronsonHall avatar BronsonHall commented on August 10, 2024

Hey @haoasakura12

Sorry for the late reply! Translations to community sheets are always greatly appreciated. However, we don't accept translations directly through this repo anymore - instead, you can translate these sheets through Crowdin!
This article should walk you through the process to add translations, but don't hesitate to reach out if you have any further questions!

from roll20-character-sheets.

haoasakura12 avatar haoasakura12 commented on August 10, 2024

I finally could translate it from Crowdin.
There are other World of Darkness sheets I want to translate, but I didn't find them on the website (CWOD-Mage, CWOD-Demon, and CWOD-Changeling). These folders are here on Github, but I couldn't find them there. Could someone help me?

from roll20-character-sheets.

BronsonHall avatar BronsonHall commented on August 10, 2024

Hey @haoasakura12

Those games are missing translation support on sheet-side. For a sheet to be translatable, it needs data-i18n attributes on its labels/other elements in html, and a translation.json file in the main sheet folder. This wiki page explains the process in further detail! Once the translation.json file is there with only english translations, the sheet will appear on Crowdin, and autogenerate the "two-letter" translation files in its "translations" folder that you saw in CWOD-M20. From there, you can take the same steps with that sheet to add Portuguese translations.

To clarify, this initial setup - the translation.json and data-i18n attributes - can be submitted as a PR to this repo! It's just the two-letter translation files that we don't handle here, and leave to Crowdin.

Please don't hesitate to reach out with any further questions about this process! Sorry it's a few extra hoops to jump through, but we don't make translation support a requirement of new sheets, so many are added without - and need the little extra setup to get onto Crowdin with proper keys.

from roll20-character-sheets.

haoasakura12 avatar haoasakura12 commented on August 10, 2024

Thank you for your support.

Hum... I'll read the Wiki you sent me.
I think.. Is there a problem if I use the current HTML file in the folders as a base for changing it to the data-i18n format?

Besides, Is there a way I can test my changes? I'm trying to open the HTML I created but the aren't any columns...

from roll20-character-sheets.

BronsonHall avatar BronsonHall commented on August 10, 2024

Hey @haoasakura12

That's exactly the right idea - you'll want to start with that HTML file, then start adding data-i18n attributes to each label or bit of static text you want to be translatable., and submit it together with the translation.json as an update to that sheet folder.

To test sheets you're editing on Roll20 properly, you'll want to use either the Custom Sheet Sandbox (this one's much nicer to use) or Custom Sheet Editor to load your sheets in progress on the VTT and see if they work as expected. These features are limited to Pro accounts, however.

from roll20-character-sheets.

haoasakura12 avatar haoasakura12 commented on August 10, 2024

Ok
Thank you again!

A new question.
I made a small change in the CSS file. How can I submit the three files (HTML, CSS and translation.JSON) at the same time?

from roll20-character-sheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.