Commit graph

151 commits

Author SHA1 Message Date
Pere Pujal i Carabantes
f9db53fe19 Correcting Devaganari to Devanagari 2020-11-05 03:38:42 +01:00
Pere Pujal i Carabantes
f8179faa0f Adding Sardinian translation. 2020-10-29 20:43:30 +01:00
Pere Pujal i Carabantes
436a535003 Merge branch 'master' with export features made by Bill and some updated translations into sdl2.0 2020-08-06 00:48:08 +02:00
Bill Kendrick
4ba4c11911 Properly handling getenv() returning "" not NULL
i18n code was checking for local-related environment variables
(e.g., "getenv("LANGUAGE")") coming back as a NULL if unset.

However, on my laptop, under Kubuntu 20.04 with GLIBC 2.31, a
"LANGUAGE" env. var. is set, but it's blank.

Tux Paint failed to attempt any fallback (e.g., checking "LANG")
in that situation, which was causing the description text corruption
that was corrected in a previous commit.

That commit also mistakenly suggested that the issue might've been a
difference with GCC versions, but the problem was deeper in Tux Paint's
code (in i18n.c), and was triggered by an unexpected environment.
2020-07-26 17:17:14 -07:00
Bill Kendrick
42512a67b0 Don't use extern for num_wished_langs
WORK IN PROGRESS -- Attempting to mend an issue where stamp descriptions
are not loading.

Also, making things safer when a problem occurs.

Using gcc 9.3.0 compiler, this was happening in 0.9.25 during
development, but also affected 0.9.24 and 0.9.23, which worked
fine under earlier versions of gcc.
2020-07-26 16:42:12 -07:00
Pere Pujal i Carabantes
7769410b2e Merge 0.9.24 master branch into sdl2.0 2020-05-31 00:47:19 +02:00
Bill Kendrick
91505fae8e Debug output clean-up
Wrapped some debug output in "#ifdef DEBUG" tests,
and made sure some warnings and errors were going to
STDERR, rather than STDOUT.

Motivation: Less noise while launching/using Tux Paint,
unless it matters.
2020-04-02 22:15:13 -07:00
Pere Pujal i Carabantes
a1c778135d Merge branch 'master' into sdl2.0
Merging master 2019-september-24 into sdl2.0 branch
2019-09-24 14:52:40 +02:00
begasus
e5c3cdfcf5 Haiku fixes 2019-09-06 13:45:56 +02:00
Bill Kendrick
7938480174 Clean up GCC warnings (2019-08-29 edition)
Updated most parts of the code that were throwing warnings in GCC.
2019-08-30 00:01:00 -07:00
Pere Pujal i Carabantes
4d3ef642da Updating to master 2019/6/6 2019-06-06 20:22:55 +02:00
Bill Kendrick
4e3a9fbc8c Re-ran indent on .c files
Also, added a few places where indent is disabled
(via `/* *INDENT-OFF* */`).

See https://sourceforge.net/p/tuxpaint/mailman/message/36077409/
from Oct. 2017.
2019-04-13 12:00:44 -07:00
Pere Pujal i Carabantes
1a5308226c Merge branch 'master' into sdl2.0 2018-08-30 01:37:00 +02:00
Bill Kendrick
9144ebd705 More function documentation 2018-05-17 00:30:48 -07:00
Pere Pujal i Carabantes
b2c176730a Merging from the master branch. 2017-12-19 02:47:08 +01:00
Pere Pujal i Carabantes
1e0ea6d4b3 Indentation. 2017-12-19 02:17:27 +01:00
Pere Pujal i Carabantes
ede838caf9 Syncing with the android version... 2017-12-06 06:39:41 +01:00
Mark K. Kim
472bf79bb9 Trying again... 2017-11-27 01:02:41 -05:00
Bill Kendrick
5b4e0dd53f indent i18n.c i18n.h 2017-10-15 10:56:18 -07:00
William Kendrick
548805f676 Had forgotten to add Kabyle to "--lang help" output.
(N.B. This stuff begs for modularization)
2016-12-12 07:37:23 +00:00
William Kendrick
f762aafa10 Adding Kabyle (aka Kabylian) translation 2016-12-12 07:20:34 +00:00
Pere Pujal i Carabantes
9c43a9b69e kashmiri, sindhi and urdu in perso-arabic are rtl 2015-03-11 21:48:34 +00:00
Pere Pujal i Carabantes
ce84b47f0d Adding2 Sindhi and 2 Kashmiri translations provided by chandrakant dhutadmal 2015-03-10 23:38:59 +00:00
Pere Pujal i Carabantes
df45c3993c Adding Bengali, Bodo, Dogri and Urdu provided by chandrakant dhutadmal in the mailing list, still todo add 2 Sindhi and 2 Kashmiri translations 2015-03-09 22:52:05 +00:00
Pere Pujal i Carabantes
79e6da0fb6 Commenting out printf()s 2014-08-14 06:08:48 +00:00
Pere Pujal i Carabantes
dac517aef5 Stamps also should display localized even if the language has not a correponding locale. 2014-08-06 22:28:41 +00:00
William Kendrick
1a31c28d40 Tweaked "--lang serbian" locale (was sr_YU, now sr_RS, based on Ubuntu locales) 2014-08-05 06:55:05 +00:00
Pere Pujal i Carabantes
7f01f9017b Enabling Sinhala 2014-08-04 23:08:07 +00:00
Pere Pujal i Carabantes
cec79bfa7f Setting safe defaults. 2014-08-04 22:18:16 +00:00
Pere Pujal i Carabantes
85082b9092 LANGUAGE and env vars should work for stamps too, fallbacks should also work, also on Windows. 2014-08-04 00:02:54 +00:00
Pere Pujal i Carabantes
b4c21d9533 @variant locales should work now. 2014-07-18 22:04:35 +00:00
Pere Pujal i Carabantes
271cd0e1e3 Bosnian translation 2014-07-14 23:08:40 +00:00
Pere Pujal i Carabantes
1da6cdda34 Locale code for Twi is tw, twi.po -> tw.po 2014-07-10 21:22:06 +00:00
Pere Pujal i Carabantes
a9cfdb78a8 Adding Konkani translations. 2014-05-19 22:29:08 +00:00
Pere Pujal i Carabantes
2036ec4865 Adding Manipuri translations. 2014-05-18 22:28:34 +00:00
Pere Pujal i Carabantes
0fc78d8bb4 Adding Santali in Ol-Chiki script. 2014-05-15 22:04:14 +00:00
Shin-ichi TOYAMA
2ca5d55191 Missing entry in *lang_prefixes[] for Assamese 2014-04-30 14:12:25 +00:00
Pere Pujal i Carabantes
8cacae3b92 Adding Assamese. 2014-04-28 22:27:02 +00:00
Pere Pujal i Carabantes
36f570937b Adding kannada. 2014-04-28 21:53:46 +00:00
Pere Pujal i Carabantes
e3c0c45210 Adding Nepali. 2014-04-28 20:55:42 +00:00
Pere Pujal i Carabantes
65fa89d4db New language Maithili 2014-04-23 22:45:00 +00:00
William Kendrick
db456e4b5b Odia (aka Oriya) translation.
Also misc updates/tweaks to some other locale stuff.
2014-04-16 21:45:08 +00:00
William Kendrick
29d166dc32 Sanskrit translation. 2014-04-16 18:37:18 +00:00
William Kendrick
a00cfcd3c6 Added Santali localization. 2014-04-11 08:34:30 +00:00
Pere Pujal i Carabantes
0134a11591 Fulah 2014-04-09 23:05:42 +00:00
William Kendrick
0b27bec2e8 * Squelching a lot of debugging output, unless DEBUG is #define'd
* Added "--joystick-dev" option, for specifying which joystick device
   Tux Paint should listen to
   * "--joystick-dev list" is now used to list the available devices
 * Cleaned up some 'usage' output
2014-03-30 07:23:20 +00:00
Pere Pujal i Carabantes
d6a35c5c61 Removing wrong spelling for TlhIngan 2014-03-20 22:02:11 +00:00
William Kendrick
efd8d14585 A few tweaks (including wrapping stuff in #ifdef __APPLE__) to make sure
stuff still compiles under Linux, after applying Eric P.'s OSX changes.
2014-03-20 00:11:52 +00:00
William Kendrick
e990b48de7 Large bundle of OS X tweaks by Eric P. (basis of the 10.9-compatible
pre-release made in Dec. 2013):
 * Fix OS X 10.9 issue of current directory set by Finder
   to something else than folder where app bundle resides.
 * Some Mac OS X build / project changes & updates.
 * Adjustments to Mac OS X fontconfig config file, to avoid warnings
   and make things more robust.
 * Updates to some #include's to catch up with newer library revisions.
 * Tweaks to pixel read/write on Apple.
 * Introduction of 'intprt_t' casting to avoid warnings on x64.
 * Some additional debugging output.
 * Logging stderr & stdout to /tmp/tuxpaint.log
Untested (I don't have a Mac!)
2014-03-19 23:39:17 +00:00
Pere Pujal i Carabantes
28c604997e Enabling zulu in tuxpaint 2014-03-18 23:30:49 +00:00