Skip to content

Commit 3558245

Browse files
authored
[DateCalculator]: Dutch translation (#340)
* Modified internationalisation * Created nl-local.po based on latest template.pot file.
1 parent 2f83252 commit 3558245

File tree

2 files changed

+97
-1
lines changed

2 files changed

+97
-1
lines changed

DateCalculator/DateCalculator.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Copyright (C) 2010 Jakim Friant
44
# Copyright (c) 2015 Douglas S. Blank <[email protected]>
5+
# Copyright (c) 2020 Jan Sparreboom <[email protected]>
56
#
67
# This program is free software; you can redistribute it and/or modify
78
# it under the terms of the GNU General Public License as published by
@@ -35,8 +36,20 @@
3536
#------------------------------------------------------------------------
3637
from gramps.gen.plug import Gramplet
3738
from gramps.gen.lib import Date
39+
40+
#------------------------------------------------------------------------
41+
#
42+
# Internationalisation
43+
#
44+
#------------------------------------------------------------------------
3845
from gramps.gen.const import GRAMPS_LOCALE as glocale
39-
_ = glocale.translation.sgettext
46+
try:
47+
trans = glocale.get_addon_translator(__file__)
48+
except ValueError:
49+
trans = glocale.translation
50+
_ = trans.gettext
51+
ngettext = trans.ngettext
52+
4053
from gramps.gen.datehandler import parser
4154

4255
#------------------------------------------------------------------------

DateCalculator/po/nl-local.po

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Dutch translation of Gramps addon DateCalculator
2+
# Copyright (C) 2020 Gramps project
3+
# This file is distributed under the same license as the DateCalculator package.
4+
# Jan Sparreboom <[email protected]>, 2020.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: DateCalculator 5.1.x\n"
9+
"Report-Msgid-Bugs-To: https://www.gramps-project.org/bugs\n"
10+
"POT-Creation-Date: 2019-01-22 09:28-0600\n"
11+
"PO-Revision-Date: 2020-05-05 17:06+0200\n"
12+
"Last-Translator: Jan Sparreboom <[email protected]>\n"
13+
"Language-Team: Dutch <[email protected]>\n"
14+
"Language: nl\n"
15+
"MIME-Version: 1.0\n"
16+
"Content-Type: text/plain; charset=UTF-8\n"
17+
"Content-Transfer-Encoding: 8bit\n"
18+
"X-Generator: Poedit 2.0.6\n"
19+
20+
#: DateCalculator/DateCalculator.gpr.py:21
21+
#: DateCalculator/DateCalculator.gpr.py:31
22+
msgid "Date Calculator"
23+
msgstr "Datum rekenmachine"
24+
25+
#: DateCalculator/DateCalculator.gpr.py:22
26+
msgid "Useful for date math calculations"
27+
msgstr "Handig voor wiskundige berekeningen met datums"
28+
29+
#: DateCalculator/DateCalculator.py:63
30+
msgid "Expression 1"
31+
msgstr "Uitdrukking 1"
32+
33+
#: DateCalculator/DateCalculator.py:64
34+
msgid "Expression 2"
35+
msgstr "Uitdrukking 2"
36+
37+
#: DateCalculator/DateCalculator.py:65
38+
msgid "Result"
39+
msgstr "Uitkomst"
40+
41+
#: DateCalculator/DateCalculator.py:68
42+
msgid "Calculate"
43+
msgstr "Berekenen"
44+
45+
#: DateCalculator/DateCalculator.py:71
46+
msgid "Clear"
47+
msgstr "Wissen"
48+
49+
#: DateCalculator/DateCalculator.py:118
50+
msgid "Error: invalid entry for expression 1"
51+
msgstr "Fout: ongeldige invoer voor uitdrukking 1"
52+
53+
#: DateCalculator/DateCalculator.py:128
54+
msgid "Error: invalid entry for expression 2"
55+
msgstr "Fout: ongeldige invoer voor uitdrukking 2"
56+
57+
#: DateCalculator/DateCalculator.py:153 DateCalculator/DateCalculator.py:155
58+
#: DateCalculator/DateCalculator.py:163 DateCalculator/DateCalculator.py:165
59+
msgid "Error: at least one expression must be a date"
60+
msgstr "Fout: ten minste één expressie moet een datum zijn"
61+
62+
#: DateCalculator/DateCalculator.py:171
63+
msgid ""
64+
"Enter an expression in the entries above and click Calculate.\n"
65+
"\n"
66+
"An expression can be:\n"
67+
"\n"
68+
"1. a valid Gramps date\n"
69+
"2. a positive or negative number, representing years\n"
70+
"3. a positive or negative tuple, representing (years, months, days)\n"
71+
"\n"
72+
"Note that at least one expression must be a date."
73+
msgstr ""
74+
"Voer een uitdrukking in de bovenstaande invoervelden in en klik op "
75+
"Berekenen.\n"
76+
"\n"
77+
"Een mogelijke uitdrukking:\n"
78+
"1. een geldige Gramps-datum\n"
79+
"2. een positief of negatief getal, dat jaren voorstelt\n"
80+
"3. een positieve of negatieve reeks, dat voor (jaren, maanden, dagen) "
81+
"staat\n"
82+
"\n"
83+
"Merk op dat ten minste één expressie een datum moet zijn."

0 commit comments

Comments
 (0)