Site updated at 2017-11-06 22:19:52 UTC

This commit is contained in:
Travis CI 2017-11-06 22:19:53 +00:00
parent 47458c05c9
commit 6e8588c3f3
97 changed files with 164 additions and 81 deletions

View file

@ -6,13 +6,13 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Translate Home Assistant frontend - Home Assistant</title>
<title>Frontend Translation - Home Assistant</title>
<meta name="author" content="Home Assistant">
<meta name="description" content="How to translate the frontend for Home Assistant.">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/developers/frontend_translation/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Translate Home Assistant frontend">
<meta property="og:title" content="Frontend Translation">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/developers/frontend_translation/">
<meta property="og:type" content="website">
@ -20,7 +20,7 @@
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Translate Home Assistant frontend">
<meta name="twitter:title" content="Frontend Translation">
<meta name="twitter:description" content="How to translate the frontend for Home Assistant.">
<meta name="twitter:image" content="https://home-assistant.io/images/default-social.png">
<link href="/stylesheets/screen.css" media="screen, projection, print" rel="stylesheet">
@ -70,25 +70,32 @@
<article class="page">
<header>
<h1 class="title indent">
Translate Home Assistant frontend
Frontend Translation
</h1>
</header>
<hr class="divider">
<p>The translation of the Home Assistant frontend is still a work in progress. More phrases will be available soon.</p>
<h4><a class="title-link" name="how-to-start" href="#how-to-start"></a> How to start</h4>
<p><a href="https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/">Join the translation team</a> and choose your language. If your language is not listed you can request it at <a href="https://github.com/home-assistant/home-assistant-polymer/issues/new">GitHub</a>. Please provide both the English name and the native name for your language. Example: German / Deutsch.
Note: Languages that differ from the language of the country of origin need a translation for the latter first. Example: <code class="highlighter-rouge">French as used in Canada</code> requires a generic <code class="highlighter-rouge">French</code> translation.</p>
<p>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.</p>
<p>For more information about the translation workflow, please see the <a href="https://docs.lokalise.co/category/iOzEuQPS53-for-team-leads-and-translators">Lokalise translation workflow documents</a>.</p>
<h4><a class="title-link" name="rules" href="#rules"></a> Rules</h4>
<h2><a class="title-link" name="how-to-start" href="#how-to-start"></a> How to start</h2>
<p><a href="https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/">Join the translation team</a> 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.</p>
<p>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 <a href="https://docs.lokalise.co/category/iOzEuQPS53-for-team-leads-and-translators">Lokalise translation workflow documents</a>.</p>
<p class="note">
The translation of the Home Assistant frontend is still a work in progress. More phrases will be available for translation soon.
</p>
<h2><a class="title-link" name="rules" href="#rules"></a> Rules</h2>
<ol>
<li>Only native speakers should submit translations.</li>
<li>English is reference language.</li>
<li>Stick to <a href="https://material.io/guidelines/style/writing.html">Material Desing guidelines</a>.</li>
<li>Dont translate or change proper nouns like <code class="highlighter-rouge">Home Assistant</code>, <code class="highlighter-rouge">Hass.io</code> or <code class="highlighter-rouge">Hue</code>.</li>
</ol>
<p>Tip: Use <code class="highlighter-rouge">Multilanguage view</code> (eye-symbol) and hide those languages you dont need.</p>
<h4><a class="title-link" name="for-maintainers" href="#for-maintainers"></a> For maintainers</h4>
<h2><a class="title-link" name="adding-a-new-language" href="#adding-a-new-language"></a> Adding a new language</h2>
<p>If your language is not listed you can request it at <a href="https://github.com/home-assistant/home-assistant-polymer/issues/new">GitHub</a>. Please provide both the English name and the native name for your language. For example:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>English Name: German
Native Name: Deutsch
</code></pre>
</div>
<p class="note">
Note: Languages that differ from the language of the country of origin need a translation for the latter first. Example: <code class="highlighter-rouge">French as used in Canada</code> requires a generic <code class="highlighter-rouge">French</code> translation.
</p>
<h3><a class="title-link" name="maintainer-steps-to-add-a-new-language" href="#maintainer-steps-to-add-a-new-language"></a> Maintainer steps to add a new language</h3>
<ol>
<li>Language tags have to follow <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>. A list of most language tags can be found here: <a href="http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">IANA sutbtag registry</a>. Examples: <code class="highlighter-rouge">fr</code>, <code class="highlighter-rouge">fr-CA</code>, <code class="highlighter-rouge">zh-Hans</code>. Only include the country code if country specific overrides are being included, and the base language is already translated.</li>
<li>Add the language tag and native name in <code class="highlighter-rouge">src/translations/translationMetadata.json</code>. Examples: “Français”, “Français (CA)”</li>
@ -178,6 +185,7 @@ Note: Sometimes you have to change the tag in Lokalise (Language -&gt; Language
<li><a href='/developers/frontend_add_more_info/'>Add More Info Dialog </a></li>
<li><a href='/developers/frontend_creating_custom_panels/'>Add Custom Panels </a></li>
<li><a href='/developers/frontend_creating_custom_ui/'>Add Custom UI </a></li>
<li><a class='active' href='/developers/frontend_translation/'>Translation </a></li>
</ul>
</li>
<li>