... | ... | @@ -6,7 +6,7 @@ There's also the humongous forecast file at `src/locales/en/archive/current.json |
|
|
|
|
|
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):
|
|
|
1. [line 332](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L332):
|
|
|
```
|
|
|
locales: ['de','en','no'],
|
|
|
```
|
... | ... | @@ -15,24 +15,63 @@ 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.`:
|
|
|
2. [line 59-66](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L59):
|
|
|
Copy the lines right below and replace occurences of `.en.` and `/en/` with your language code. e.g: `.fr.` and `/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/info.own.fr.min.html.tmpl': 'src/i18n/fr/info.own.html.tmpl',
|
|
|
'src/contact.fr.min.html.tmpl': 'src/i18n/fr/contact.html.tmpl',
|
|
|
'src/contact.own.fr.min.html.tmpl': 'src/i18n/fr/contact.own.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.`:
|
|
|
3. [line 100-129](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L100):
|
|
|
Copy the lines right below and replace occurences of `.en.` and `/en/` with your language code. e.g: `.fr.` and `/fr/`:
|
|
|
```
|
|
|
{
|
|
|
append: " ",
|
|
|
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
|
|
|
input: 'src/index.fr.min.html.tmpl'
|
|
|
},
|
|
|
{
|
|
|
append: " ",
|
|
|
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
|
|
|
input: 'src/archive.fr.min.html.tmpl'
|
|
|
},
|
|
|
{
|
|
|
append: " ",
|
|
|
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
|
|
|
input: 'src/info.fr.min.html.tmpl'
|
|
|
},
|
|
|
{
|
|
|
append: " ",
|
|
|
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
|
|
|
input: 'src/info.own.fr.min.html.tmpl'
|
|
|
},
|
|
|
{
|
|
|
append: " ",
|
|
|
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
|
|
|
input: 'src/contact.fr.min.html.tmpl'
|
|
|
},
|
|
|
{
|
|
|
append: " ",
|
|
|
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
|
|
|
input: 'src/contact.own.fr.min.html.tmpl'
|
|
|
},
|
|
|
```
|
|
|
|
|
|
4. [line 238-248](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L238):
|
|
|
Copy the lines right below and replace occurences of `.en.` and `/en/` with your language code. e.g: `.fr.` and `/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/info.own.fr.min.html.tmpl', dest: 'dist/i18n/fr/info.own.html.tmpl'},
|
|
|
{src: 'src/contact.fr.min.html.tmpl', dest: 'dist/i18n/fr/contact.html.tmpl'},
|
|
|
{src: 'src/contact.own.fr.min.html.tmpl', dest: 'dist/i18n/fr/contact.own.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'},
|
... | ... | @@ -40,7 +79,6 @@ Copy the lines right below and replace occurences of `.en.` with your language c |
|
|
{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!
|
|
|
|
|
|
|
... | ... | |