Localization

with full support for repetitions (until Afonso's fixes come along maybe...)