Website generation with Couscous

This commit is contained in:
Milos Stojanovic
2020-04-18 11:29:48 +02:00
parent e6d7ff912f
commit 2c3fcedcb8

View File

@@ -130,7 +130,7 @@
<section class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10"> <section class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10">
<h2 id="translations">Translations</h2> <h2 id="translations">Translations</h2>
<p>Language is configured by adjusting <code>language</code> variable in your <code>configuration.php</code> file.</p> <p>Language is configured by adjusting the <code>language</code> variable in your <code>configuration.php</code> file.</p>
<p>Available languages:</p> <p>Available languages:</p>
<ul> <ul>
<li><code>english</code> (default)</li> <li><code>english</code> (default)</li>
@@ -151,7 +151,7 @@
</ul> </ul>
<p>Please help us translating FileGator to your language by submitting a Pull Request on GitHub.</p> <p>Please help us translating FileGator to your language by submitting a Pull Request on GitHub.</p>
<h2 id="how-to-translate">How to translate</h2> <h2 id="how-to-translate">How to translate</h2>
<p>First, you must setup the project like desribed in 'Development' section. Default language file is located under <code>frontend/translations/english.js</code> You can add more languages in the same folder. Once your language file is in place, it needs to be added to <code>frontend/mixins/shared.js</code>. After this, recompile everything with <code>npm run build</code> and then you can use it by adjusting <code>language</code> variable in your <code>configuration.php</code> file.</p> <p>First, you must setup the project like described in the 'Development' section. Default language file is located under <code>frontend/translations/english.js</code> You can add more languages in the same folder. Once your language file is in place, it needs to be added to <code>frontend/mixins/shared.js</code>. After this, recompile everything with <code>npm run build</code> and then you can use it by adjusting the <code>language</code> variable in your <code>configuration.php</code> file.</p>
<p>You should only translate value on the right, for example:</p> <p>You should only translate value on the right, for example:</p>
<pre><code>'Close': 'Schliessen',</code></pre> <pre><code>'Close': 'Schliessen',</code></pre>
<p>Default language file:</p> <p>Default language file:</p>