summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/gettext.py
Commit message (Collapse)AuthorAgeFilesLines
* Create the .po file with the `update_po` subcommand if it doesn't existCorentin Noël2017-10-071-1/+4
|
* Allow empty extra arguments in gettext scriptRene Lopez2017-06-031-1/+1
|
* Drop terminating fullstop from "Installing blah to blah" messagesPeter Hutterer2017-04-191-1/+1
| | | | | | | | Grammatically, this full stop isn't needed and with file names it has a potential to be confusing: Installing /foo/bar/filename.1 to /foo/bar/dirname. The full stop caused me to do a double-take more than once, so let's drop it.
* style: fix E127 violationsIgor Gnatenko2017-01-021-1/+1
| | | | | | E127: continuation line over-indented for visual indent Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
* gettext: Respect the --subdir argument before the MESON_SUBDIR varThibault Saunier2016-12-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of subproject we will properly setup the --subdir argument but the MESON_SUBDIR is never adapted and will point to an empty string leading to the following backtrace when building `gst-build`: msgfmt: error while opening "/home/thiblahute/devel/gstreamer/gst-build/af.po" for reading: No such file or directory Traceback (most recent call last): File "/home/thiblahute/devel/gstreamer/gst-build/meson/meson.py", line 37, in <module> sys.exit(main()) File "/home/thiblahute/devel/gstreamer/gst-build/meson/meson.py", line 34, in main return mesonmain.run(launcher, sys.argv[1:]) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mesonmain.py", line 248, in run sys.exit(run_script_command(args[1:])) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mesonmain.py", line 236, in run_script_command return cmdfunc(cmdargs) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/scripts/gettext.py", line 111, in run if gen_gmo(src_sub, bld_sub, langs) != 0: File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/scripts/gettext.py", line 66, in gen_gmo '-o', os.path.join(bld_sub, l + '.gmo')]) File "/usr/lib/python3.5/subprocess.py", line 581, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['msgfmt', '/home/thiblahute/devel/gstreamer/gst-build/af.po', '-o', '/home/thiblahute/devel/gstreamer/gst-build/build/af.gmo']' returned non-zero exit status 1 Failed to run install script: /usr/bin/python3 /home/thiblahute/devel/gstreamer/gst-build/meson/meson.py --internal gettext install --subdir=subprojects/gstreamer/po --localedir=share/locale --pkgname=gstreamer-1.0 --langs=af@@az@@be@@bg@@ca@@cs@@da@@de@@el@@en_GB@@eo@@es@@eu@@fi@@fr@@gl@@hr@@hu@@id@@it@@ja@@lt@@nb@@nl@@pl@@pt_BR@@ro@@ru@@rw@@sk@@sl@@sq@@sr@@sv@@tr@@uk@@vi@@zh_CN@@zh_TW FAILED: install '/usr/bin/python3' '/home/thiblahute/devel/gstreamer/gst-build/meson/meson.py' '--internal' 'install' '/home/thiblahute/devel/gstreamer/gst-build/build/meson-private/install.dat'
* misc: Use relative imports everywhereNirbheek Chauhan2016-12-071-1/+1
| | | | | | Using 'mesonbuild' as the module can cause it to use the system-installed module and can also break if we rename the directory, so avoid that by always using relative imports.
* i18n: Improve language handlingPatrick Griffis2016-12-061-1/+20
| | | | | | | | - Fix LINGUAS changes not being picked up - Fix multiple langs per line in LINGUAS - Make empty languages acceptable Fixes #1127
* gettext: Use argparse to handle argumentsPatrick Griffis2016-11-021-26/+28
|
* gettext: Add update-po targetPatrick Griffis2016-10-231-0/+16
| | | | | | | | | For each project this creates a <project>-update-po target. When ran this updates the pot file and then merges it back into the po files in the source directory with `msgmerge` for project maintainers and translators. Fixes #819
* gettext: Add ability to set GETTEXTDATADIRSPatrick Griffis2016-10-161-3/+11
| | | | Some projects use this to allow using local its files
* Remove shebangs on files that are not runnable and add execute bits to those ↵Jussi Pakkanen2016-10-071-2/+0
| | | | that are.
* i18n: use POTFILES.in as fallback if there's no POTFILES in po dirTim-Philipp Müller2016-09-251-0/+6
| | | | | | | | | | In autotools POTFILES is generated at configure time from POTFILES.in, but Meson only looks for a po/POTFILES in the source directory, which is awkward when trying to maintain both build systems in parallel. Instead just use POTFILES.in as fallback if it exists but POTFILES does not. Also print an error if neither exists. Fixes #818
* scripts: Use destdir_join fix for all DESTDIR prefixing (#598)Nirbheek Chauhan2016-06-161-1/+3
|
* Can pass extra args to xgettext. Closes #554.Jussi Pakkanen2016-05-261-3/+3
|
* Remove all special casing for gettext and use elementary operations instead.Jussi Pakkanen2016-05-211-0/+65