Commit graph

5101 commits

Author SHA1 Message Date
dolphin6k
f838704282 Fixed jugged upscaling in full screen mode 2022-06-10 20:46:48 +09:00
Will Thompson
b4aa697474 Merge desktop file at build time
Previously, both the .desktop.in template and the final .desktop file
were checked into source control.

While in some ways convenient, the manual step of updating it may be
forgotten after updating a translation or adjusting the template. It
also potentially introduces confusion as to which file to modify.

Instead, generate the .desktop file at build time. Since this is now
done using msgfmt rather than intltool, there is no additional
dependency beyond gettext, which is already used at build time to
compile .po files to .mo files.
2022-06-10 10:36:56 +01:00
Will Thompson
3141249969 Remove intltool dependency
Since gettext 0.19, gettext itself has been able to extract strings from
and merge translations to .desktop files. As a result, there is no need
to use intltool.  More details are available on
https://wiki.gnome.org/MigratingFromIntltoolToGettext, though that page
assumes a project using Autotools, which this project does not.

One advantage of using xgettext rather than intltool is that there is no
need to prefix translatable keys in the .desktop.in file with _. This
patch adjusts tuxpaint.desktop.in accordingly, which makes the input
file itself a valid desktop file.

The LINGUAS file contains the list of supported languages. This could
in principle be generated automatically from one of the other places in
the source tree that has a manually-maintained list of languages; but in
my experience it is generally maintained by hand and checked into the
source tree.

POTFILES.in.in must be updated to remove the intltool-specific file
encoding annotation; instead this is passed to xgettext.

Finally, update-po.sh is rewritten to invoke xgettext and msgfmt rather
than intltool commands.

The mangling of POTFILES.in.in to prefix all filenames with '../' is
only necessary to minimize the churn when updating the .pot and .po
files, to simplify review of this change. The alternative is to pass
--directory=.. to xgettext. This would cause all .po files to be updated
as follows when regenerated:

     #. Response to Black (0, 0, 0) color selected
    -#: ../colors.h:86
    +#: colors.h:86
     msgid "Black!"
     msgstr "Noir !"
2022-06-10 10:36:56 +01:00
Will Thompson
e7ec1efdc8 Remove unused, no-op create_pot_file.sh
614f6573e7 made this "a no-op script, for
now", in September 2006. It seems safe to assume, 16 years later, that
if it is needed it can be recovered from the Git history.
2022-06-10 10:36:56 +01:00
dolphin6k
ff4352d575 Corrected suffix of the system-wide config file 2022-06-10 10:57:06 +09:00
Bill Kendrick
4e298483c5 Merge branch 'master' into sdl2.0 2022-06-06 21:43:20 -07:00
Bill Kendrick
e03e8a7c93 Sync doc's w/ new macOS Install changes
h/t Mark Kim
2022-06-05 13:49:58 -07:00
Mark Kim
9ab896b8df update .gitignore
Add some intermediary files created during macOS build to .gitignore.
2022-06-05 15:51:02 -04:00
Mark Kim
b410a9dbfb update .gitignore
Add some intermediary files created during macOS build to .gitignore.
2022-06-05 15:49:41 -04:00
Mark Kim
f041db9c4d Localization of SDL2.0 menu on macOS.
SDL2 initializes the macOS menu later than SDL1 (appears to be done
around the video initialization time), so we also need to call later our
routine to override the SDL menu with our localizable version.
2022-06-04 22:34:16 -04:00
Mark Kim
62fee7f58a macos build: remove the --openfolder option
`bless` no longer supports the `--openfolder` option.  It appears to be
a change in the March 2022 Xcode update.
2022-06-04 19:20:37 -04:00
Mark Kim
c5c0805d84 macos build: remove the --openfolder option
`bless` no longer supports the `--openfolder` option.  It appears to be
a change in the March 2022 Xcode update.
2022-06-04 13:07:08 -04:00
Pere Pujal i Carabantes
937e99f6c2 Updating Catalan. 2022-06-04 10:06:48 +02:00
Pere Pujal i Carabantes
1d0ea00d95 Updating Catalan. 2022-06-04 10:03:42 +02:00
Bill Kendrick
1f92d31720 Merge branch 'master' into sdl2.0 2022-06-04 00:28:28 -07:00
Bill Kendrick
2687c55e08 Update dates in macos/Info.plist & win32/resources.rc 2022-06-04 00:26:48 -07:00
Bill Kendrick
be9614f5b5 For release: This is SDL2.0 branch 2022-06-04 00:23:15 -07:00
Bill Kendrick
2af844e40c Merge branch 'master' into sdl2.0 2022-06-04 00:22:54 -07:00
Bill Kendrick
a4c894ac08 Release builds tarballs that denote branch
(SDL1.2 vs SDL2.0)
2022-06-04 00:22:32 -07:00
Bill Kendrick
07c02ce281 Merge branch 'master' into sdl2.0 2022-06-04 00:15:28 -07:00
Bill Kendrick
6a7aa6d840 Refresh docs; get updated date stamps 2022-06-04 00:14:33 -07:00
Bill Kendrick
45a26483fa Merge branch 'master' into sdl2.0 2022-06-04 00:11:14 -07:00
Bill Kendrick
a3f915be1c Happy 20th Anniversary! 2022-06-04 00:06:00 -07:00
Bill Kendrick
7e11d08396 Sync docs 2022-06-03 00:16:27 -07:00
dolphin6k
f21018282c Updated Japanese translation (tile zoom) 2022-06-03 14:09:23 +09:00
Bill Kendrick
ff470263a0 Different description for Tile Zoom than plain Zoom
Oops, had committed to sdl2.0 only :eyeroll:
2022-06-02 21:17:23 -07:00
Bill Kendrick
040884f3f3 Different description for Tile Zoom than plain Zoom
h/t Pere for the suggestion
2022-06-02 21:09:23 -07:00
Bill Kendrick
5369bca3b9 Merge branch 'master' into sdl2.0 2022-06-02 21:06:27 -07:00
Pere Pujal i Carabantes
f4977c31dc Updating Catalan translation. 2022-05-31 00:06:01 +02:00
Pere Pujal i Carabantes
78586144ab Updating Catalan translation. 2022-05-31 00:04:28 +02:00
Bill Kendrick
05112612a6 Sync'ing Japanese Docs (re: sort reverse)
h/t Shin-Ichi
2022-05-28 14:53:59 -07:00
dolphin6k
8babe0e4ee Updated Japanese translation 2022-05-28 18:06:07 +09:00
Bill Kendrick
8eeb860183 Show SDL version in --verbose-version output 2022-05-22 23:53:23 -07:00
Bill Kendrick
23cc59539c Show SDL version in --verbose-version output 2022-05-22 23:52:32 -07:00
Bill Kendrick
f361794eb9 Sync README & INSTALL 2022-05-22 23:48:39 -07:00
Bill Kendrick
b65deaf2d3 Sync README & INSTALL 2022-05-22 23:48:11 -07:00
dolphin6k
57e1eeca4b Changed package name again. 2022-05-22 13:12:18 +09:00
dolphin6k
18850108ec Remove existing package before building. 2022-05-22 09:01:29 +09:00
dolphin6k
602f5e8347 Remove existing package before building. 2022-05-22 09:00:33 +09:00
Mark Kim
f0b2367b3d osk fix for single quote and backtick
Change the behavior of the onscreen keyboard's quote and backtick such
that clicking them once displays the clicked key.

Previously they defaulted to composing an accented character, as
discussed here:

  https://sourceforge.net/p/tuxpaint/mailman/message/37656169/
2022-05-21 10:46:48 -04:00
Mark Kim
c350e025fb Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2022-05-21 10:45:31 -04:00
Mark Kim
d167907e19 osk fix for single quote and backtick
Change the behavior of the onscreen keyboard's quote and backtick such
that clicking them once displays the clicked key.

Previously they defaulted to composing an accented character, as
discussed here:

  https://sourceforge.net/p/tuxpaint/mailman/message/37656169/
2022-05-21 10:42:37 -04:00
dolphin6k
7528be4b20 Renamed installer to distinguish SDL versions 2022-05-21 23:11:38 +09:00
dolphin6k
454479f234 Woops, mistook the SDL version. 2022-05-21 23:10:16 +09:00
dolphin6k
ab4cd9d735 Renamed installer to distinguish SDL versions 2022-05-21 23:08:17 +09:00
Bill Kendrick
be1031efb2 Mend mis-find-replace of an OSK debug #define 2022-05-20 00:27:51 -07:00
Bill Kendrick
2b5b6132ab Backport OSK keyboard debug change to master
Allow for an "OSK_DEBUG" to be set, to show only debug
from `onscreen_keyboard.c`, and nowhere else.
2022-05-20 00:25:32 -07:00
Bill Kendrick
db7a5e171b Attempt to mend glitchiness of OSK on SDL2.0 branch
Composing is still messed up, however...
2022-05-20 00:23:01 -07:00
Bill Kendrick
e1fc4d60e7 Wrapping a printf in im.c in a debug #ifdef 2022-05-19 23:29:19 -07:00
Bill Kendrick
dcc699eea1 Merge SDL-agnostic way to declare callback func. for SDL_SetEventFilter() 2022-05-19 01:36:47 -07:00