def add_localedir_translations(self, localedir):
global _localedirs<EOL>if localedir in self.localedirs:<EOL><INDENT>return<EOL><DEDENT>self.localedirs.append(localedir)<EOL>full_localedir = os.path.join(localedir, '<STR_LIT>')<EOL>if os.path.exists(full_localedir):<EOL><INDENT>translation = self._new_gnu_trans(full_localedir)<EOL>self.merge(translation)<EOL><DEDENT>
Merge translations from localedir.