This program is now in production phase, but bugs might still be present. Features will be added on request. It is provided as is.
-The project is maintained at https://github.com/Linekio/getmyancestors. Visit here for the latest version and more information.
-
-This script requires python3, the requests module, and the num2words to work. To install the modules, run in your terminal:
-
-For requests:
-
-"python3 -m pip install requests" (or "python3 -m pip install --user requests" if you don't have admin rights on your machine).
-
-For num2words:
-
-"python3 -m pip install num2words" (or "python3 -m pip install --user num2words" if you don't have admin rights on your machine).
+This script requires python3 and the requests module to work. To install this module on Linux, run in your terminal: "python3 -m pip install requests" (or "python3 -m pip install --user requests" if you don't have admin rights on your machine).
This script requires python 3.4 (or higher) to run due to some novel features in the argparse and asyncio modules (https://docs.python.org/3/whatsnew/3.4.html)
Support
=======
-Send questions, suggestions, or feature requests to benoitfontaine.ba@gmail.com or giulio.genovese@gmail.com, or open an Issue at https://github.com/Linekio/getmyancestors/issues
+Send questions, suggestions, or feature requests to benoitfontaine.ba@gmail.com or giulio.genovese@gmail.com
Donation
========
from mergemyancestors import Gedcom
from translation import translations
-try:
- from num2words import num2words
-except ImportError:
- sys.stderr.write('You need to install the num2words module first\n')
- sys.stderr.write('(run this in your terminal: "python3 -m pip install num2words" or "python3 -m pip install --user num2words")\n')
- exit(2)
tmp_dir = os.path.join(tempfile.gettempdir(), 'fstogedcom')
global cache
if not todo:
break
done |= todo
- self.info(_('Download ') + num2words(i + 1, to='ordinal_num', lang=lang) + _(' generation of ancestors...'))
+ self.info(_('Download ') + str(i + 1) + _('th generation of ancestors...'))
todo = self.tree.add_parents(todo) - done
todo = set(self.tree.indi.keys())
if not todo:
break
done |= todo
- self.info(_('Download ') + num2words(i + 1, to='ordinal_num', lang=lang) + _(' generation of descendants...'))
+ self.info(_('Download ') + str(i + 1) + _('th generation of descendants...'))
todo = self.tree.add_children(todo) - done
if self.options.spouses.get():
# local import
from translation import translations
-try:
- from num2words import num2words
-except ImportError:
- sys.stderr.write('You need to install the num2words module first\n')
- sys.stderr.write('(run this in your terminal: "python3 -m pip install num2words" or "python3 -m pip install --user num2words")\n')
- exit(2)
-
try:
import requests
except ImportError:
if not todo:
break
done |= todo
- print(_('Download ') + num2words(i + 1, to='ordinal_num', lang=fs.lang) + _(' generation of ancestors...'))
+ print(_('Download ') + str(i + 1) + _('th generation of ancestors...'))
todo = tree.add_parents(todo) - done
# download descendants
if not todo:
break
done |= todo
- print(_('Download ') + num2words(i + 1, to='ordinal_num', lang=fs.lang) + _(' generation of descendants...'))
+ print(_('Download ') + str(i + 1) + _('th generation of descendants...'))
todo = tree.add_children(todo) - done
# download spouses
'Download starting individuals...': {
'fr': 'Téléchargement des personnes de départ...',
},
- ' generation of ancestors...': {
- 'fr': ' génération d\'ancêtres...',
+ 'th generation of ancestors...': {
+ 'fr': 'e génération d\'ancêtres...',
},
- ' generation of descendants...': {
- 'fr': ' génération de descendants...',
+ 'th generation of descendants...': {
+ 'fr': 'e génération de descendants...',
},
'Download spouses and marriage information...': {
'fr': 'Téléchargement des conjoints et des informations de mariage...',