|
|
Simply use the included gettext template `src/locales/rabenwetter.pot` with your favourite gettext editor (e.g: [PoEdit](https://poedit.net/)).
|
|
|
|
|
|
Alternatively, you can copy and rename `src/locales/en/messages.po` to match your iso 639-1 language code. e.g: `src/locales/fr/messages.po`, then edit and translate its contents.
|
|
|
|
|
|
There's also the humongous forecast file at `src/locales/en/archive/current.json.tmpl`, you may want to translate. Even if you don't want to, you'll have to copy the english version to one matching your countrycode. e.g: `src/locales/fr/current.json.tmpl` or the build process will fail.
|
|
|
|
|
|
The first time, you're adding a new translation, you'll also have to update Gruntfile.js to build the new distribution files:
|
|
|
|
|
|
1. [line 272](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L272):
|
|
|
```
|
|
|
locales: ['de','en','no'],
|
|
|
```
|
|
|
add your language code. e.g:
|
|
|
```
|
|
|
locales: ['de','en','no','fr'],
|
|
|
```
|
|
|
|
|
|
2. [line 59-64](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L59):
|
|
|
Copy the lines right below and replace occurences of `.de.` with your language code. e.g: `.fr.`:
|
|
|
```
|
|
|
'src/index.fr.min.html.tmpl': 'src/i18n/fr/index.html.tmpl',
|
|
|
'src/archive.fr.min.html.tmpl': 'src/i18n/fr/archive.html.tmpl',
|
|
|
'src/info.fr.min.html.tmpl': 'src/i18n/fr/info.html.tmpl',
|
|
|
'src/contact.fr.min.html.tmpl': 'src/i18n/fr/contact.html.tmpl',
|
|
|
'src/fullscreen1.fr.min.html.tmpl': 'src/i18n/fr/fullscreen1.html.tmpl',
|
|
|
'src/fullscreen2.fr.min.html.tmpl': 'src/i18n/fr/fullscreen2.html.tmpl'
|
|
|
```
|
|
|
|
|
|
3. [line 188-196](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L188):
|
|
|
Copy the lines right below and replace occurences of `.en.` with your language code. e.g: `.fr.`:
|
|
|
```
|
|
|
{src: 'src/index.fr.min.html.tmpl', dest: 'dist/i18n/fr/index.html.tmpl'},
|
|
|
{src: 'src/archive.fr.min.html.tmpl', dest: 'dist/i18n/fr/archive.html.tmpl'},
|
|
|
{src: 'src/info.fr.min.html.tmpl', dest: 'dist/i18n/fr/info.html.tmpl'},
|
|
|
{src: 'src/contact.fr.min.html.tmpl', dest: 'dist/i18n/fr/contact.html.tmpl'},
|
|
|
{src: 'src/fullscreen1.fr.min.html.tmpl', dest: 'dist/i18n/fr/fullscreen1.html.tmpl'},
|
|
|
{src: 'src/fullscreen2.fr.min.html.tmpl', dest: 'dist/i18n/fr/fullscreen2.html.tmpl'},
|
|
|
{src: 'src/assets/js/complete.fr.min.js', dest: 'dist/i18n/fr/assets/js/complete.min.js'},
|
|
|
{src: 'src/assets/js/incomplete.fr.min.js', dest: 'dist/i18n/fr/assets/js/incomplete.min.js'},
|
|
|
{src: 'src/locales/fr/current.json.tmpl', dest: 'dist/i18n/fr/archive/current.json.tmpl'},
|
|
|
```
|
|
|
|
|
|
|
|
|
When you've done a translation, please also send it to me! I'm happy to add it to the official build!
|
|
|
|
|
|
|
|
|
### Contributors
|
|
|
All translations other than english and german were done by users of this template all over the world.
|
|
|
|
|
|
**THANK YOU VERY MUCH:**
|
|
|
|
|
|
* [Hans-Christian Grande](http://grandebu.com/): Norwegian
|
|
|
* [Nyphargus](https://gitlab.ambhost.net/nyphargus): French |
|
|
\ No newline at end of file |