w3c / wcag-em-report-tool

Interactive Guide to Assist Managing Web Accessibility Evaluations
http://www.w3.org/WAI/eval/report-tool/
Other
77 stars 45 forks source link

Polish translation #284

Closed rotnicki closed 4 years ago

rotnicki commented 7 years ago

I would like to create Polish translation. Official Polish translation is available here: http://fdc.org.pl/wcag2/ Currently there is no json version of Polish translation. Following your instructions I went to: https://github.com/WilcoFiers/wcag2json but there are no usage instructions how to use it. How (step by step) did you create json versions of English translation?

nitedog commented 7 years ago

here are instructions for translation of this report tool:

many thanks in advance!

rotnicki commented 7 years ago

I think you misunderstood me. In this file it states:

The Wcag2Json project scrapes the HTML translations of WCAG and creates a JSON file for the Report Tool. These are available in different languages already. The Wcag2Json project has instructions explaining how to create JSON versions of other WCAG translations.

But on the page https://github.com/WilcoFiers/wcag2json there are no instructions how to use this tool :(

I need to convert this Polish translation http://fdc.org.pl/wcag2/ into json format. But without those precise instructions how to use the wcag2json tool I am unable to do it.

rvantonisse commented 5 years ago

@rotnicki Hi hope I can help (if you haven't figured it out already):

If I understand the translation script of @WilcoFiers correctly you would have to:

  1. Have NodeJS installed
  2. Go to a cli app and git clone https://github.com/WilcoFiers/wcag2json.git
  3. CD into the cloned repository and run npm install
  4. Create a folder named wcag2-html (script does not handle that)
  5. Then you can use npm run scrape <LANGCODE>

There are a few languages present inside translations.json of which the Polish is one. In your case you should run npm run scrape pl

If you have created your own WCAG 2.1 Polish translations, or another language, similar to the layout / markup of W3C documentation you should be able to add that url to the translations.json file and run that script for a new WCAG-LANG.json version. -fingers crossed-

rotnicki commented 4 years ago

OK

rvantonisse commented 4 years ago

Closing, reopen if there are still some issues, will have to make an update to create newer WCAG 2.1 translations...