Skip to content

Commit 3dd6b55

Browse files
emlovefabaff
authored andcommitted
Frontend translation guide cleanup (home-assistant#3908)
1 parent a90be00 commit 3dd6b55

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

source/_includes/asides/developers_navigation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ <h1 class="title delta">Development Guide</h1>
7878
<li>{% active_link /developers/frontend_add_more_info/ Add More Info Dialog %}</li>
7979
<li>{% active_link /developers/frontend_creating_custom_panels/ Add Custom Panels %}</li>
8080
<li>{% active_link /developers/frontend_creating_custom_ui/ Add Custom UI %}</li>
81+
<li>{% active_link /developers/frontend_translation/ Translation %}</li>
8182
</ul>
8283
</li>
8384
<li>

source/developers/frontend_translation.markdown

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: page
3-
title: "Translate Home Assistant frontend"
3+
title: "Frontend Translation"
44
description: "How to translate the frontend for Home Assistant."
55
date: 2017-10-27 13:00
66
sidebar: true
@@ -10,25 +10,32 @@ footer: true
1010
ha_release: 0.57
1111
---
1212

13-
The translation of the Home Assistant frontend is still a work in progress. More phrases will be available soon.
13+
## {% linkable_title How to start %}
14+
[Join the translation team](https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/) and choose your language. Even if your language is completely translated, extra proofreading is a big help! Please feel free to review the existing translations, and vote for alternatives that might be more appropriate.
1415

15-
#### {% linkable_title How to start %}
16-
[Join the translation team](https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/) and choose your language. If your language is not listed you can request it at [GitHub](https://github.com/home-assistant/home-assistant-polymer/issues/new). Please provide both the English name and the native name for your language. Example: German / Deutsch.
17-
Note: Languages that differ from the language of the country of origin need a translation for the latter first. Example: `French as used in Canada` requires a generic `French` translation.
18-
19-
Even if your language is completely translated, extra proofreading is a big help! Please feel free to review the existing translations, and vote for alternatives that might be more appropriate.
16+
First time users may find it helpful to switch between multilanguage and single language view using the <img src='/images/frontend/lokalise-multilanguage-view-button.png' alt="Multilanguage view" style="width: 17px; border: none;"/> button. For more information about the translation workflow, please see the [Lokalise translation workflow documents](https://docs.lokalise.co/category/iOzEuQPS53-for-team-leads-and-translators).
2017

21-
For more information about the translation workflow, please see the [Lokalise translation workflow documents](https://docs.lokalise.co/category/iOzEuQPS53-for-team-leads-and-translators).
18+
<p class='note'>
19+
The translation of the Home Assistant frontend is still a work in progress. More phrases will be available for translation soon.
20+
</p>
2221

23-
#### {% linkable_title Rules %}
22+
## {% linkable_title Rules %}
2423
1. Only native speakers should submit translations.
25-
2. English is reference language.
26-
3. Stick to [Material Desing guidelines](https://material.io/guidelines/style/writing.html).
27-
4. Don't translate or change proper nouns like `Home Assistant`, `Hass.io` or `Hue`.
24+
2. Stick to [Material Desing guidelines](https://material.io/guidelines/style/writing.html).
25+
3. Don't translate or change proper nouns like `Home Assistant`, `Hass.io` or `Hue`.
2826

29-
Tip: Use `Multilanguage view` (eye-symbol) and hide those languages you don't need.
27+
## {% linkable_title Adding a new language %}
28+
If your language is not listed you can request it at [GitHub](https://github.com/home-assistant/home-assistant-polymer/issues/new). Please provide both the English name and the native name for your language. For example:
29+
```
30+
English Name: German
31+
Native Name: Deutsch
32+
```
33+
34+
<p class='note'>
35+
Note: Languages that differ from the language of the country of origin need a translation for the latter first. Example: `French as used in Canada` requires a generic `French` translation.
36+
</p>
3037

31-
#### {% linkable_title For maintainers %}
38+
### {% linkable_title Maintainer steps to add a new language %}
3239
1. Language tags have to follow [BCP 47](https://tools.ietf.org/html/bcp47). A list of most language tags can be found here: [IANA sutbtag registry](http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). Examples: `fr`, `fr-CA`, `zh-Hans`. Only include the country code if country specific overrides are being included, and the base language is already translated.
3340
2. Add the language tag and native name in `src/translations/translationMetadata.json`. Examples: "Français", "Français (CA)"
3441
3. Add the new language in Lokalize.

0 commit comments

Comments
 (0)