updated docs with @homeurl@

This commit is contained in:
Peli de Halleux 2016-11-01 21:48:11 -07:00
parent f5f36d9cca
commit 682ae92a08
5 changed files with 5 additions and 31 deletions

View File

@ -1,7 +1,6 @@
# Unsupported configuration
[pxt.microbit.org](https://pxt.microbit.org) doesn't currently support
your browser or operating system. The following configurations are supported:
Your browser is currently not supported. The following configurations are supported:
## Windows

View File

@ -2,7 +2,7 @@
## Web application
**https://pxt.microbit.org is an HTML5 web application** that automatically gets cached locally by your browser.
**@homeurl@ is an HTML5 web application** that automatically gets cached locally by your browser.
Once the web app is loaded and you have compiled at least once, you will have all the code needed to work without an internet connection.
## Command line interface

View File

@ -43,7 +43,7 @@ music.beat(BeatFraction.Quarter)
```
## Step 1: Make a Smiley
Open [pxt.microbit.org](https://pxt.microbit.org) in your web browser
Open @homeurl@ in your web browser
```blocks
basic.showLeds(`
. # . # .

View File

@ -5,7 +5,7 @@ with [Raspbian Jessie with Pixel](https://www.raspberrypi.org/downloads/raspbian
## Web editor
Starting with **Raspbian Pixel**, Raspbian comes with Chromium. Simply open [](https://pxt.microbit.org).
Starting with **Raspbian Pixel**, Raspbian comes with Chromium. Simply open @homeurl@.
## Command line

View File

@ -3,29 +3,4 @@
Our translations are managed via Crowdin, a translation management platform. It is free to join
and you can volunteer to translate parts of the web site.
## Crowdin project
The project below contains the resources from https://www.pxt.io and the menu items of https://pxt.microbit.org.
* [https://crowdin.com/project/kindscript](https://crowdin.com/project/kindscript)
If you want to help translating the editor, please sign in to Crowdin and send us a translator request.
## Translating the editor interface
The editor interface strings, like the "Download" button are in the ``strings.json`` file. Start by updating this file to translate the UI.
To test your changes "live", use **beta** build and the ``?livelang=CODE`` query argument where ``CODE`` is your language ISO code. For example, to see the french translations:
* https://pxt.microbit.org/beta?livelang=fr
Note that there may be a delay of up to 5 minutes before your changes in Crowdin make it into the "live" view.
## Translating the blocks and reference documentation
You will find package files under ``/microbit`` , one for the block definition and one for the descriptions:
* ``core-strings.json``: contains the block definitions
* ``core-jsdoc-strings.json``: contains the descriptions
The block definition should be carefully translated using the [block definition syntax](https://www.pxt.io/defining-blocks).
See the [PXT translation](https://pxt.io/translate) page for more information.