Skip to content

Commit d105cd7

Browse files
author
mrzapp
committed
Merge branch 'develop' of https://github.com/mrzapp/nextcloud-cookbook into develop
2 parents 6479c46 + c3815b6 commit d105cd7

File tree

10 files changed

+446
-134
lines changed

10 files changed

+446
-134
lines changed

templates/content/edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
</fieldset>
2929

3030
<fieldset>
31-
<label><?php p($l->t('Prep Time')); ?></label>
31+
<label><?php p($l->t('Preparation time')); ?></label>
3232
<input type="text" name="prepTime" value="<?php if(isset($_['prepTime'])) {echo $_['prepTime']; } ?>" placeholder="PT0H15M">
3333
</fieldset>
3434

3535
<fieldset>
36-
<label><?php p($l->t('Cook Time')); ?></label>
36+
<label><?php p($l->t('Cooking time')); ?></label>
3737
<input type="text" name="cookTime" value="<?php if(isset($_['cookTime'])) { echo $_['cookTime']; } ?>" placeholder="PT1H30M">
3838
</fieldset>
3939

4040
<fieldset>
41-
<label><?php p($l->t('Total Time')); ?></label>
41+
<label><?php p($l->t('Total time')); ?></label>
4242
<input type="text" name="totalTime" value="<?php if(isset($_['totalTime'])) { echo $_['totalTime']; } ?>" placeholder="PT1H30M">
4343
</fieldset>
4444

translationfiles/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ This is a quick instruction how to generate translations for the Nextcloud app `
77

88
1. Clone a user fork of the [cookbook app](https://github.com/mrzapp/nextcloud-cookbook)
99
2. Create new branch and checkout
10-
3. Use the `translationfiles/template/cookbook.pot` template and generate/update the `translationfiles/<lang>/cookbook.po` file
11-
4. Commit and create pull request against the `develop` branch
10+
3. Update the translation template by calling `update-pot.sh` in the root folder
11+
4. Use the `translationfiles/template/cookbook.pot` template and generate/update the `translationfiles/<lang>/cookbook.po` file
12+
5. Commit and create pull request against the `develop` branch
1213

1314
## Introduction
1415

@@ -42,6 +43,12 @@ git checkout -b <branchname>
4243
```
4344
Replace `<branchname>` with something useful like `translation/de`.
4445

46+
Ideally, you update the translation template to be up-to-date.
47+
Otherwise, newly added texts are not presented for translation.
48+
To do so, go to the root folder of your git repository.
49+
Call the command `update-pot.sh` there.
50+
You might need to install a _gettext_ package if the command `msgcat` is not found.
51+
4552
Go into the folder `translationfiles`.
4653
Create a new folder with the corresponding language code (e.g. `de`).
4754
Copy the template file from `template/cookcook.pot` to the file `cookbook.po` (without the `t` at the end) in your newly created folder.
@@ -53,6 +60,8 @@ Go to the next section to make the translations themselves as if you would simpl
5360
## Steps to modify an existing translation
5461

5562
If not already done, start with the steps from the previous section (Generate a new translation) to checkout and create a local branch.
63+
Optionally, update the translation template to be up-to-date.
64+
Call `update-pot.sh` in the repo's root folder (see previous section) to do so.
5665
Then go to the folder `translationfiles` in your repo.
5766
Within it there should be a folder named with the desired language code (e.g. `de`).
5867
Enter this folder.

translationfiles/de/cookbook.po

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
22
# This file is distributed under the same license as the Nextcloud package.
33
#
4-
# Christian Wolf <[email protected]>, 2019.
4+
# Christian Wolf <[email protected]>, 2019.
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: Nextcloud 3.14159\n"
88
"Report-Msgid-Bugs-To: translations\\@example.com\n"
99
"POT-Creation-Date: 2019-08-08 14:07+0200\n"
10-
"PO-Revision-Date: 2019-10-15 13:08+0200\n"
11-
"Last-Translator: Christian Wolf <[email protected]>\n"
10+
"PO-Revision-Date: 2019-12-19 11:36+0100\n"
11+
"Last-Translator: Christian Wolf <[email protected]>\n"
1212
"Language-Team: German <[email protected]>\n"
1313
"Language: de_DE\n"
1414
"MIME-Version: 1.0\n"
1515
"Content-Type: text/plain; charset=UTF-8\n"
1616
"Content-Transfer-Encoding: 8bit\n"
1717
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18-
"X-Generator: Lokalize 19.08.1\n"
18+
"X-Generator: Lokalize 19.08.3\n"
1919

2020
#: /srv/http/nc/apps/cookbook/js/script.js:91
2121
msgid "Path to your recipe collection"
@@ -224,14 +224,6 @@ msgstr "Beschreibung"
224224
msgid "Source URL"
225225
msgstr "Quell-URL"
226226

227-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:29
228-
msgid "Prep Time"
229-
msgstr "Vorbereitungsdauer"
230-
231-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:34
232-
msgid "Cook Time"
233-
msgstr "Kochdauer"
234-
235227
#: /tmp/nextcloud-cookbook/templates/content/recipe.php:10
236228
msgid "Print recipe"
237229
msgstr "Rezept drucken"
@@ -271,3 +263,20 @@ msgstr "Aktualisierungsintervall in Minuten"
271263
#: /tmp/nextcloud-cookbook/templates/settings/index.php:19
272264
msgid "Last update"
273265
msgstr "Letzte Aktualisierung"
266+
267+
#: /srv/http/nc/apps/cookbook/js/script.js:201
268+
msgid "Path to your Recipe Image"
269+
msgstr "Pfad zum Rezeptbild"
270+
271+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:56
272+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:51
273+
msgid "Tools"
274+
msgstr "Utensilien"
275+
276+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:42
277+
msgid "Total time"
278+
msgstr "Gesamtzeit"
279+
280+
#: /srv/http/nc/apps/cookbook/templates/navigation/index.php:29
281+
msgid "Uncategorized"
282+
msgstr "Ohne Kategorie"

translationfiles/de_DE/cookbook.po

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
22
# This file is distributed under the same license as the Nextcloud package.
33
#
4-
# Christian Wolf <[email protected]>, 2019.
4+
# Christian Wolf <[email protected]>, 2019.
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: Nextcloud 3.14159\n"
88
"Report-Msgid-Bugs-To: translations\\@example.com\n"
99
"POT-Creation-Date: 2019-08-08 14:07+0200\n"
10-
"PO-Revision-Date: 2019-10-15 13:35+0200\n"
11-
"Last-Translator: Christian Wolf <[email protected]>\n"
10+
"PO-Revision-Date: 2019-12-19 11:37+0100\n"
11+
"Last-Translator: Christian Wolf <[email protected]>\n"
1212
"Language-Team: German <[email protected]>\n"
1313
"Language: de\n"
1414
"MIME-Version: 1.0\n"
1515
"Content-Type: text/plain; charset=UTF-8\n"
1616
"Content-Transfer-Encoding: 8bit\n"
1717
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18-
"X-Generator: Lokalize 19.08.1\n"
18+
"X-Generator: Lokalize 19.08.3\n"
1919

2020
#: /srv/http/nc/apps/cookbook/js/script.js:91
2121
msgid "Path to your recipe collection"
@@ -271,3 +271,32 @@ msgstr "Aktualisierungsintervall in Minuten"
271271
#: /tmp/nextcloud-cookbook/templates/settings/index.php:19
272272
msgid "Last update"
273273
msgstr "Letzte Aktualisierung"
274+
275+
#: /srv/http/nc/apps/cookbook/js/script.js:201
276+
msgid "Path to your Recipe Image"
277+
msgstr "Pfad zum Rezeptbild"
278+
279+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:41
280+
msgid "Total Time"
281+
msgstr "Gesamtzeit"
282+
283+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:56
284+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:51
285+
msgid "Tools"
286+
msgstr "Utensilien"
287+
288+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:42
289+
msgid "Total time"
290+
msgstr "Gesamtzeit"
291+
292+
#: /srv/http/nc/apps/cookbook/templates/navigation/index.php:29
293+
msgid "Uncategorized"
294+
msgstr "Ohne Kategorie"
295+
296+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:31
297+
msgid "Prep time"
298+
msgstr ""
299+
300+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:36
301+
msgid "Cook time"
302+
msgstr ""

translationfiles/es/cookbook.po

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -215,60 +215,70 @@ msgstr "Seleccionar una carpeta"
215215
#. TRANSLATORS The description of the recipe
216216
#: /tmp/nextcloud-cookbook/templates/content/edit.php:14
217217
msgid "Description"
218-
msgstr ""
218+
msgstr "Descripción"
219219

220220
#: /tmp/nextcloud-cookbook/templates/content/edit.php:19
221221
msgid "Source URL"
222-
msgstr ""
223-
224-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:29
225-
msgid "Prep Time"
226-
msgstr ""
227-
228-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:34
229-
msgid "Cook Time"
230-
msgstr ""
222+
msgstr "URL de origen"
231223

232224
#: /tmp/nextcloud-cookbook/templates/content/recipe.php:10
233225
msgid "Print recipe"
234-
msgstr ""
226+
msgstr "Imprimir receta"
235227

236228
#: /tmp/nextcloud-cookbook/templates/content/recipe.php:18
237229
msgid "Source"
238-
msgstr ""
230+
msgstr "Origen"
239231

240232
#: /tmp/nextcloud-cookbook/templates/content/recipe.php:28
241233
msgid "Preparation time"
242-
msgstr ""
234+
msgstr "Tiempo de preparación"
243235

244236
#: /tmp/nextcloud-cookbook/templates/content/recipe.php:36
245237
msgid "Cooking time"
246-
msgstr ""
238+
msgstr "Tiempo de cocción"
247239

248240
#: /tmp/nextcloud-cookbook/js/script.js:108
249241
msgid "Could not set recipe update interval to {interval}"
250-
msgstr ""
242+
msgstr "No se puede ajustar el intervalo de actualización de la receta a {interval}"
251243

252244
#: /tmp/nextcloud-cookbook/templates/content/edit.php:21
253245
msgid "URL"
254-
msgstr ""
246+
msgstr "URL"
255247

256248
#: /tmp/nextcloud-cookbook/templates/content/edit.php:26
257249
msgid "Image"
258-
msgstr ""
250+
msgstr "Imagen"
259251

260252
#: /tmp/nextcloud-cookbook/templates/content/edit.php:27
261253
msgid "Pick a local image"
262-
msgstr ""
254+
msgstr "Seleccione una imagen local"
263255

264256
#: /tmp/nextcloud-cookbook/templates/navigation/index.php:28
265257
msgid "All"
266-
msgstr ""
258+
msgstr "Todo"
267259

268260
#: /tmp/nextcloud-cookbook/templates/settings/index.php:17
269261
msgid "Update interval in minutes"
270-
msgstr ""
262+
msgstr "Intervalo de actualización en minutos"
271263

272264
#: /tmp/nextcloud-cookbook/templates/settings/index.php:19
273265
msgid "Last update"
266+
msgstr "Última actualización"
267+
268+
#: /srv/http/nc/apps/cookbook/js/script.js:201
269+
msgid "Path to your Recipe Image"
270+
msgstr ""
271+
272+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:41
273+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:42
274+
msgid "Total time"
275+
msgstr ""
276+
277+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:56
278+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:51
279+
msgid "Tools"
280+
msgstr ""
281+
282+
#: /srv/http/nc/apps/cookbook/templates/navigation/index.php:29
283+
msgid "Uncategorized"
274284
msgstr ""

translationfiles/fr/cookbook.po

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,6 @@ msgstr "Description"
221221
msgid "Source URL"
222222
msgstr "URL source"
223223

224-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:29
225-
msgid "Prep Time"
226-
msgstr "Temps prép."
227-
228-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:34
229-
msgid "Cook Time"
230-
msgstr "Temps cuisson"
231-
232224
#: /tmp/nextcloud-cookbook/templates/content/recipe.php:10
233225
msgid "Print recipe"
234226
msgstr "Imprimer recette"
@@ -272,3 +264,21 @@ msgstr "Intervalle de mise à jour en minutes"
272264
#: /tmp/nextcloud-cookbook/templates/settings/index.php:19
273265
msgid "Last update"
274266
msgstr "Dernière mise à jour"
267+
268+
#: /srv/http/nc/apps/cookbook/js/script.js:201
269+
msgid "Path to your Recipe Image"
270+
msgstr "Chemin vers votre image pour illustrer la recette"
271+
272+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:41
273+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:42
274+
msgid "Total time"
275+
msgstr "Temps total"
276+
277+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:56
278+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:51
279+
msgid "Tools"
280+
msgstr "Ustensiles"
281+
282+
#: /srv/http/nc/apps/cookbook/templates/navigation/index.php:29
283+
msgid "Uncategorized"
284+
msgstr "Non classé"

translationfiles/nl/cookbook.po

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ msgstr "Afbeelding"
107107
msgid "Pick a local image"
108108
msgstr "Kies een lokale afbeelding"
109109

110-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:31
111-
msgid "Prep Time"
112-
msgstr "Bereidingstijd"
113-
114-
#: /tmp/nextcloud-cookbook/templates/content/edit.php:36
115-
msgid "Cook Time"
116-
msgstr "Kooktijd"
117-
118110
#: /tmp/nextcloud-cookbook/templates/content/edit.php:41
119111
msgid "Keywords (comma-separated)"
120112
msgstr "Trefwoorden (gescheiden door een komma)"
@@ -205,3 +197,21 @@ msgstr "Update-interval in minuten"
205197
#: /tmp/nextcloud-cookbook/templates/settings/index.php:19
206198
msgid "Last update"
207199
msgstr "Laatste update"
200+
201+
#: /srv/http/nc/apps/cookbook/js/script.js:201
202+
msgid "Path to your Recipe Image"
203+
msgstr ""
204+
205+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:41
206+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:42
207+
msgid "Total time"
208+
msgstr ""
209+
210+
#: /srv/http/nc/apps/cookbook/templates/content/edit.php:56
211+
#: /srv/http/nc/apps/cookbook/templates/content/recipe.php:51
212+
msgid "Tools"
213+
msgstr ""
214+
215+
#: /srv/http/nc/apps/cookbook/templates/navigation/index.php:29
216+
msgid "Uncategorized"
217+
msgstr ""

0 commit comments

Comments
 (0)