Rename dir "translations" to "po"

Seems to be a more standard name for the translation files.
This commit is contained in:
Romain Failliot 2020-12-06 13:41:02 -05:00
parent 246ddfc340
commit b4c29347d9
21 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Changed AppID to io.github.mightycreak.Diffuse (as explained in
[Flatpak documentation](https://docs.flatpak.org/en/latest/conventions.html#application-ids))
- Renamed `translations/` to `po/`
### Fixed

View File

@ -20,9 +20,9 @@ sysconfdir = prefix / get_option('sysconfdir')
pythondir = py_installation.get_path('purelib')
pkgdatadir = join_paths(datadir, meson.project_name())
podir = join_paths(meson.source_root(), 'translations')
podir = join_paths(meson.source_root(), 'po')
subdir('translations')
subdir('po')
subdir('src')
meson.add_install_script('build-scripts/meson-postinstall.py')

View File

@ -125,7 +125,7 @@ copyDir('..\\src\\usr\\share\\icons', 'dist\\share\\icons')
# translations
mkdir('dist\\share\\locale')
locale_dir = os.path.join(gtk_dir, 'share\\locale')
for s in glob.glob('..\\translations\\*.po'):
for s in glob.glob('..\\po\\*.po'):
lang = s[16:-3]
# Diffuse localisations
print 'Compiling %s translation' % (lang, )

View File

@ -250,7 +250,7 @@ copyDir('..\\src\\usr\\share\\icons', os.path.join(build_dir, 'share\\icons'))
# translations
mkdir(os.path.join(build_dir, 'share\\locale'))
locale_dir = os.path.join(gnomeSiteDir, 'share\\locale')
for s in glob.glob('..\\translations\\*.po'):
for s in glob.glob('..\\po\\*.po'):
lang = s[16:-3]
# Diffuse localisations
print('Compiling %s translation' % (lang, ))