setup: Add update_catalogs command

This will update all catalogs with the template.
This commit is contained in:
Markus Frosch 2020-05-18 00:03:28 +02:00
parent 25ce1b16e0
commit 159d3e7cac
2 changed files with 2 additions and 6 deletions

View File

@ -1,5 +0,0 @@
#!/bin/sh
# Update translation files
for po_file in `ls *.po`; do
msgmerge -N -U ${po_file} terminator.pot
done

View File

@ -250,6 +250,7 @@ setup(name=APP_NAME,
tests_require=test_deps, tests_require=test_deps,
extras_require={'test': test_deps}, extras_require={'test': test_deps},
package_data={'terminatorlib': ['preferences.glade', 'layoutlauncher.glade']}, package_data={'terminatorlib': ['preferences.glade', 'layoutlauncher.glade']},
cmdclass={'build': CustomBuild, 'install_data': InstallData, 'uninstall': Uninstall}, cmdclass={'build': CustomBuild, 'install_data': InstallData, 'uninstall': Uninstall,
'update_catalogs': UpdateCatalogs},
distclass=TerminatorDist) distclass=TerminatorDist)