Fixed locale stamp sound effect bug. (John Popplewell)

This commit is contained in:
William Kendrick 2003-03-01 02:22:03 +00:00
parent 145ff595b8
commit 07f08cef86
4 changed files with 35 additions and 9 deletions

View file

@ -7,10 +7,17 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.newbreedsoftware.com/tuxpaint/
2003.February.26 (0.9.11) 2003.February.28 (0.9.11)
* Set $OUTPUT_CHARSET for Japanese locale, to fix Win32 issue. * Set $OUTPUT_CHARSET for Japanese locale, to fix Win32 issue.
TOYAMA Shin-ichi <kyone@tky2.3web.ne.jp> TOYAMA Shin-ichi <kyone@tky2.3web.ne.jp>
* Lithuanian translation.
Mantas Kriauciunas <monte@mail.lt>
Rita Verbauskait? <verba@centras.lt>,
* Fixed bug that would cause some translated stamp sounds to not load.
John Popplewell <john@johnnypops.demon.co.uk>
2003.February.22 (0.9.10) 2003.February.22 (0.9.10)
* UTF-8 stamp descriptions word-wrap around spaces. * UTF-8 stamp descriptions word-wrap around spaces.

View file

@ -1,5 +1,5 @@
Tux Paint Tux Paint
0.9.10 0.9.11
A simple drawing program for children A simple drawing program for children
@ -9,7 +9,7 @@
bill@newbreedsoftware.com bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.newbreedsoftware.com/tuxpaint/
June 14, 2002 - February 22, 2003 June 14, 2002 - February 28, 2003
---------------------------------------------------------------------- ----------------------------------------------------------------------
@ -349,6 +349,8 @@ Options
|--------------------+------------------+---------| |--------------------+------------------+---------|
|korean | | | |korean | | |
|--------------------+------------------+---------| |--------------------+------------------+---------|
|lithuanian |lietuviu | |
|--------------------+------------------+---------|
|norwegian |nynorsk | | |norwegian |nynorsk | |
|--------------------+------------------+---------| |--------------------+------------------+---------|
|polish |polski | | |polish |polski | |
@ -523,6 +525,8 @@ Options
|---------------+-------------------+--------------------| |---------------+-------------------+--------------------|
|ko_KR.UTF-8 (*)| |Korean | |ko_KR.UTF-8 (*)| |Korean |
|---------------+-------------------+--------------------| |---------------+-------------------+--------------------|
|lt_LT.UTF-8 (*)|Lietuviu |Lithuanian |
|---------------+-------------------+--------------------|
|nn_NO |Norsk (nynorsk) |Norwegian Nynorsk | |nn_NO |Norsk (nynorsk) |Norwegian Nynorsk |
|---------------+-------------------+--------------------| |---------------+-------------------+--------------------|
|nl_NL@euro | |Dutch | |nl_NL@euro | |Dutch |

View file

@ -10,7 +10,7 @@ alink="#FF00FF">
<h1><img src="images/tuxpaint-title.png" width=220 height=219 <h1><img src="images/tuxpaint-title.png" width=220 height=219
alt="Tux&nbsp;Paint"><br> alt="Tux&nbsp;Paint"><br>
0.9.10 0.9.11
</h1> </h1>
<h3>A simple drawing program for children</h3> <h3>A simple drawing program for children</h3>
@ -21,7 +21,7 @@ New Breed Software</p>
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br> <p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
<a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p> <a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p>
<p>June 14, 2002 - February 22, 2003</p> <p>June 14, 2002 - February 28, 2003</p>
</center> </center>
<hr size=2 noshade> <hr size=2 noshade>
@ -503,6 +503,11 @@ New Breed Software</p>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr>
<td><code>lithuanian</code></td>
<td><code>lietuviu</code></td>
<td>&nbsp;</td>
</tr>
<tr> <tr>
<td><code>norwegian</code></td> <td><code>norwegian</code></td>
<td><code>nynorsk</code></td> <td><code>nynorsk</code></td>
@ -800,6 +805,11 @@ New Breed Software</p>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>Korean</td> <td>Korean</td>
</tr> </tr>
<tr>
<td><code>lt_LT.UTF-8</code> (*)</td>
<td>Lietuviu</td>
<td>Lithuanian</td>
</tr>
<tr> <tr>
<td><code>nn_NO</code></td> <td><code>nn_NO</code></td>
<td>Norsk (nynorsk)</td> <td>Norsk (nynorsk)</td>

View file

@ -292,7 +292,7 @@ int lang_use_utf8[] = {
LANG_EL, LANG_EL,
LANG_JA, LANG_JA,
LANG_KO, LANG_KO,
LANG_LT, /* LANG_LT, */
LANG_ZH, LANG_ZH,
-1 -1
}; };
@ -3759,8 +3759,13 @@ void setup(int argc, char * argv[])
else if (strcmp(langstr, "lithuanian") == 0 || else if (strcmp(langstr, "lithuanian") == 0 ||
strcmp(langstr, "lietuviu") == 0) strcmp(langstr, "lietuviu") == 0)
{ {
/*
putenv("LANG=lt_LT.UTF-8"); putenv("LANG=lt_LT.UTF-8");
putenv("LC_ALL=lt_LT.UTF-8"); putenv("LC_ALL=lt_LT.UTF-8");
*/
putenv("LANG=lt_LT");
putenv("LC_ALL=lt_LT");
} }
else if (strcmp(langstr, "chinese") == 0) else if (strcmp(langstr, "chinese") == 0)
{ {
@ -6531,7 +6536,7 @@ Mix_Chunk * loadsound(char * fname)
snd_fname = malloc(strlen(fname) + strlen(lang_prefixes[language]) + 2); snd_fname = malloc(strlen(fname) + strlen(lang_prefixes[language]) + 2);
strcpy(snd_fname, fname); strcpy(snd_fname, fname);
snprintf(tmp_str, strlen(tmp_str), "_%s.wav", lang_prefixes[language]); snprintf(tmp_str, sizeof(tmp_str), "_%s.wav", lang_prefixes[language]);
if (strstr(snd_fname, ".png") != NULL) if (strstr(snd_fname, ".png") != NULL)