Skip to content

Commit

Permalink
updated views and tempting, translation
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskaschulz committed Apr 21, 2016
1 parent 85adc0f commit ea571e6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions developer-basics/views-templating.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Views & Templating
<p class="uk-article-lead">While the controller handles the incoming request, the view is responsible for rendering the response. To achieve this, it utilizes a templating engine. Currently, Pagekit only supports a PHP engine.</p>

<ul class="uk-list">
<li><a href="#rendered-view-response">Rendered view response</a></li>
<li><a href="#render-a-view-manually">Render a view manually</a></li>
<li><a href="#templating">Templating</a></li>
<li><a href="#working-with-assets">Working with Assets</a></li>
</ul>

## Rendered view response

The most common way to render a view is to return an array from your controller action. Use the `'$view'` property to pass parameters to your view renderer.
Expand Down
13 changes: 9 additions & 4 deletions developer-guides/translation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,32 @@

Feel free to join [Pagekit on Transifex](http://www.transifex.com/organization/pagekit). After a fast [sign up](http://www.transifex.com/signup/) you can help correct existing translations or add your own language.

<ul class="uk-list">
<li><a href="#contribute-to-an-existing-translation">Contribute to an existing translation</a></li>
<li><a href="#request-a-language">Request a language</a></li>
</ul>

## Contribute to an existing translation
If you would like to improve or complete an existing localization, go to [Pagekit on Transifex](http://www.transifex.com/organization/pagekit/) and choose the language you want to contribute to. You will then see all _Resources_ that can be translated.

To take part in the Pagekit project, you must first click the _Join team_ button in the language folder. Once we've approved your request, you will be able to access the language team and can start to translate the project. Thanks!

![Join team](assets/guide-translation-join.png)

Choose the resource you want to contribute to by clicking on it, this will open an options screen. By clicking _Translate now_ you will enter the Transifex editor which allows you to translate on the fly without having to down- and upload the files.
Choose the resource you want to contribute to by clicking on it, this will open an options screen. By clicking _Translate now_ you will enter the Transifex editor, which allows you to translate on the fly without having to down- and upload the files.

## Request a language
If your language is not listed, you can add a new language to the project. To do so, go to the [Pagekit project](http://www.transifex.com/organization/pagekit/) on Transifex and add a new language by clicking the button on the right side _Request language_. We will then get notified and can review and approve your added language.
If your language is not listed, you can add a new language to the project. To do so, go to the [Pagekit project](http://www.transifex.com/organization/pagekit/) on Transifex and add a new language by clicking the button on the right hand side _Request language_. We will then get notified and can review and approve your added language.

![Request a language](assets/guide-translation-request.png)

Following our approval, you will have two options:

### Start the translation in the Transifex editor
If your requested language was approved, you can start to translate the extensions or _Resources_ as they are called in Transifex. Just click the resource you want to work on and press the button _Translate now_.
If your requested language has been approved, you can start to translate the extensions or _Resources_ as they are called in Transifex. Just click the resource you want to work on and press the button _Translate now_.

### Upload a .po file
In case you already created a .po language file, you can upload it easily by clicking the resource and then _Upload file_.
In case you already created a .po language file, you can easily upload it by clicking the resource and then _Upload file_.

A green bar in each column shows you the progress of each localization.

Expand Down

0 comments on commit ea571e6

Please sign in to comment.