tests/messages/consts.py
raw| 1 | import os |
| 2 | |
| 3 | TEST_PROJECT_DISTRIBUTION_DATA = { |
| 4 | "name": "TestProject", |
| 5 | "version": "0.1", |
| 6 | "packages": ["project"], |
| 7 | } |
| 8 | this_dir = os.path.abspath(os.path.dirname(__file__)) |
| 9 | data_dir = os.path.join(this_dir, 'data') |
| 10 | project_dir = os.path.join(data_dir, 'project') |
| 11 | i18n_dir = os.path.join(project_dir, 'i18n') |
| 12 | |
| 13 | |
| 14 | def get_po_file_path(locale): |
| 15 | return os.path.join(i18n_dir, locale, 'LC_MESSAGES', 'messages.po') |