def _prepare_locale_dirs(languages, locale_root):
trans_languages = []<EOL>for i, t in enumerate(languages):<EOL><INDENT>lang = t.split('<STR_LIT::>')[<NUM_LIT:0>]<EOL>trans_languages.append(lang)<EOL>lang_path = os.path.join(locale_root, lang)<EOL>if not os.path.exists(lang_path):<EOL><INDENT>os.makedirs(lang_path)<EOL><DEDENT><DEDENT>return trans_languages<EOL>
Prepare locale dirs for writing po files.
Create new directories if they doesn't exist.