From b4c29347d9e63d48ba4ddf57c7d4ed0c50b43164 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Sun, 6 Dec 2020 13:41:02 -0500 Subject: [PATCH] Rename dir "translations" to "po" Seems to be a more standard name for the translation files. --- CHANGELOG.md | 1 + meson.build | 4 ++-- {translations => po}/LINGUAS | 0 {translations => po}/README.md | 0 {translations => po}/cs.po | 0 {translations => po}/de.po | 0 {translations => po}/es.po | 0 {translations => po}/it.po | 0 {translations => po}/ja.po | 0 {translations => po}/ko.po | 0 {translations => po}/meson.build | 0 {translations => po}/pl.po | 0 {translations => po}/pt.po | 0 {translations => po}/ru.po | 0 {translations => po}/sv.po | 0 {translations => po}/th.po | 0 {translations => po}/update-translations.py | 0 {translations => po}/zh_CN.po | 0 {translations => po}/zh_TW.po | 0 windows-installer/build.py | 2 +- windows-installer/setup.new.py | 2 +- 21 files changed, 5 insertions(+), 4 deletions(-) rename {translations => po}/LINGUAS (100%) rename {translations => po}/README.md (100%) rename {translations => po}/cs.po (100%) rename {translations => po}/de.po (100%) rename {translations => po}/es.po (100%) rename {translations => po}/it.po (100%) rename {translations => po}/ja.po (100%) rename {translations => po}/ko.po (100%) rename {translations => po}/meson.build (100%) rename {translations => po}/pl.po (100%) rename {translations => po}/pt.po (100%) rename {translations => po}/ru.po (100%) rename {translations => po}/sv.po (100%) rename {translations => po}/th.po (100%) rename {translations => po}/update-translations.py (100%) rename {translations => po}/zh_CN.po (100%) rename {translations => po}/zh_TW.po (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49b8071..67ee90b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/meson.build b/meson.build index b169d87..a23de6c 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/translations/LINGUAS b/po/LINGUAS similarity index 100% rename from translations/LINGUAS rename to po/LINGUAS diff --git a/translations/README.md b/po/README.md similarity index 100% rename from translations/README.md rename to po/README.md diff --git a/translations/cs.po b/po/cs.po similarity index 100% rename from translations/cs.po rename to po/cs.po diff --git a/translations/de.po b/po/de.po similarity index 100% rename from translations/de.po rename to po/de.po diff --git a/translations/es.po b/po/es.po similarity index 100% rename from translations/es.po rename to po/es.po diff --git a/translations/it.po b/po/it.po similarity index 100% rename from translations/it.po rename to po/it.po diff --git a/translations/ja.po b/po/ja.po similarity index 100% rename from translations/ja.po rename to po/ja.po diff --git a/translations/ko.po b/po/ko.po similarity index 100% rename from translations/ko.po rename to po/ko.po diff --git a/translations/meson.build b/po/meson.build similarity index 100% rename from translations/meson.build rename to po/meson.build diff --git a/translations/pl.po b/po/pl.po similarity index 100% rename from translations/pl.po rename to po/pl.po diff --git a/translations/pt.po b/po/pt.po similarity index 100% rename from translations/pt.po rename to po/pt.po diff --git a/translations/ru.po b/po/ru.po similarity index 100% rename from translations/ru.po rename to po/ru.po diff --git a/translations/sv.po b/po/sv.po similarity index 100% rename from translations/sv.po rename to po/sv.po diff --git a/translations/th.po b/po/th.po similarity index 100% rename from translations/th.po rename to po/th.po diff --git a/translations/update-translations.py b/po/update-translations.py similarity index 100% rename from translations/update-translations.py rename to po/update-translations.py diff --git a/translations/zh_CN.po b/po/zh_CN.po similarity index 100% rename from translations/zh_CN.po rename to po/zh_CN.po diff --git a/translations/zh_TW.po b/po/zh_TW.po similarity index 100% rename from translations/zh_TW.po rename to po/zh_TW.po diff --git a/windows-installer/build.py b/windows-installer/build.py index 38d255c..d4c8b6b 100755 --- a/windows-installer/build.py +++ b/windows-installer/build.py @@ -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, ) diff --git a/windows-installer/setup.new.py b/windows-installer/setup.new.py index 0d3feb2..50f928d 100644 --- a/windows-installer/setup.new.py +++ b/windows-installer/setup.new.py @@ -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, ))