Merge pull request #75 from MightyCreak/move-to-po-dir

Rename dir "translations" to "po"
This commit is contained in:
Creak 2020-12-07 10:38:01 -05:00 committed by GitHub
commit 7b9aed35c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
- Changed AppID to io.github.mightycreak.Diffuse (as explained in - Changed AppID to io.github.mightycreak.Diffuse (as explained in
[Flatpak documentation](https://docs.flatpak.org/en/latest/conventions.html#application-ids)) [Flatpak documentation](https://docs.flatpak.org/en/latest/conventions.html#application-ids))
- Renamed `translations/` to `po/`
### Fixed ### Fixed

View File

@ -20,9 +20,9 @@ sysconfdir = prefix / get_option('sysconfdir')
pythondir = py_installation.get_path('purelib') pythondir = py_installation.get_path('purelib')
pkgdatadir = join_paths(datadir, meson.project_name()) 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') subdir('src')
meson.add_install_script('build-scripts/meson-postinstall.py') meson.add_install_script('build-scripts/meson-postinstall.py')

View File

@ -125,7 +125,7 @@ copyDir('..\\src\\usr\\share\\icons', 'dist\\share\\icons')
# translations # translations
mkdir('dist\\share\\locale') mkdir('dist\\share\\locale')
locale_dir = os.path.join(gtk_dir, '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] lang = s[16:-3]
# Diffuse localisations # Diffuse localisations
print 'Compiling %s translation' % (lang, ) print 'Compiling %s translation' % (lang, )

View File

@ -250,7 +250,7 @@ copyDir('..\\src\\usr\\share\\icons', os.path.join(build_dir, 'share\\icons'))
# translations # translations
mkdir(os.path.join(build_dir, 'share\\locale')) mkdir(os.path.join(build_dir, 'share\\locale'))
locale_dir = os.path.join(gnomeSiteDir, '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] lang = s[16:-3]
# Diffuse localisations # Diffuse localisations
print('Compiling %s translation' % (lang, )) print('Compiling %s translation' % (lang, ))