localeDepth.put(defaultLocale, 0);
remaining.remove(defaultLocale);
while (!remaining.isEmpty()) {
Set<GwtLocale> nextPass = new HashSet<GwtLocale>();
for (GwtLocale locale : remaining) {
GwtLocale parent = inheritsFrom.get(locale);
if (localeDepth.containsKey(parent)) {
int depth = localeDepth.get(parent);
localeDepth.put(locale, depth + 1);
} else {
nextPass.add(locale);