aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile (unfollow)
Commit message (Collapse)AuthorLines
2021-11-27Add Finnish translation of the manualJuhani Krekelä-1/+1
2021-07-15Install translated manualsWolfgang Müller-1/+7
With at least one manual now fully translated, we need to install it to the right place in both the Makefile and meson.build. For the former use a similar loop as is in use for the MO files. For the latter we sadly need to place the manual manually using install_data() because meson only supports localized manuals natively starting at 0.58.0, a version that is only about two months old.
2021-06-28po: Add Finnish translationJuhani Krekelä-1/+1
2021-06-28Make Makefile portableJuhani Krekelä-2/+5
Currently weltschmerz's make-based build system relies on GNU make extensions. Change it to only use POSIX and other nearly universally implemented features. A small downside to this patch is that .po files must be listed in the Makefile manually.
2021-06-28Build localization files when running `make all`Juhani Krekelä-2/+4
Currently these localization files are only built when the user executes `make install`. Since `make install` is often run as root, this leaves files with root as their owner in the source directory. There are also security implications to running compilers as root. This patch adds a target `all` to the Makefile which depends on the localization files, so that they are built as the user.
2021-06-27Prepare for internationalizationWolfgang Müller-3/+19
weltschmerz currently does not allow for translation and exists in English only. This is a serious defect for people who do not speak that language. The following series of commits aims to remedy this by adding the necessary infrastructure and build steps to enable easy translation. To do this we use GNU gettext[1]; its tooling is widely supported and a de-facto standard. Since we need to tell gettext where to find the compiled .mo translation files, have both the Makefile and meson pass the locale directory to weltschmerz in form of a LOCALEDIR macro. The translation domain will be "weltschmerz". Not only will any strings in the Vala code have to be translated, we need to make sure to translate terminal.ui and weltschmerz.desktop as well. The former will be taken care of through POTFILES only, but for the latter we have to define an intermediary build step. To ensure compatibility with the Makefile, we suffix the desktop file with '.in'. For now, LINGUAS and POTFILES remain empty. A future commit will document all files needing translation. LINGUAS will be updated as translations are completed. [1] https://www.gnu.org/software/gettext
2020-04-13Add missing prerequisites to MakefileWynn Wolf Arbor-1/+1
Two (relatively) new source files, namely configreader.vala and utils.vala, were missing as prerequisites from the weltschmerz rule, leading to the binary not being rebuilt if either file is changed.
2020-04-13Add OSC 8 hyperlink supportWynn Wolf Arbor-1/+1
This commit adds support for the OSC 8 hyperlink escape sequence [1]. As this is not a mature feature and there seem to be outstanding security concerns [2], the setting that controls whether or not OSC 8 is interpreted is disabled by default. Just like gnome-terminal, weltschmerz will display a tooltip with the canonicalized URI when hovering over a hyperlink. [1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda [2] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#security
2020-02-04Improve configuration handlingWynn Wolf Arbor-1/+1
This commit improves and simplifies weltschmerz's configuration handling. Obtaining and parsing the KeyFile is split out into ConfigReader, which is fully agnostic of the specific configuration values. Config now contains all configuration values in the form of primitive types or class instances, and no longer delegates access to the KeyFile structure directly. This means that the configuration file is read once, and then kept in the Config instance. Indirectly this commit also fixes a bug where weltschmerz would segfault if one of the palette entries contained an invalid value.
2019-12-30Add desktop fileWolf-1/+2
2019-08-31Add support for adjusting the font scale at runtimeWolfgang Müller-1/+1