Add docstrings to l10n.py

FYI the initial sentence should fit into a single line. If you need a more descriptive comment, it should follow afterward, separated by an empty line.