From a2960dce52b1140a3541447e8ac496c5a9242654 Mon Sep 17 00:00:00 2001
From: William Kendrick
Date: Wed, 17 Mar 2004 13:54:29 +0000
Subject: [PATCH] Prepared code, Makefile and Docs for imminent Slovenian
translation.
---
Makefile | 12 +++++++++++-
docs/AUTHORS.txt | 11 +++++++----
docs/CHANGES.txt | 5 ++++-
docs/html/README.html | 18 ++++++++++++++----
src/manpage/tuxpaint.1 | 5 +++--
src/messages/sl.po | 14 ++++++++++++++
src/tuxpaint.c | 11 ++++++++++-
7 files changed, 63 insertions(+), 13 deletions(-)
create mode 100644 src/messages/sl.po
diff --git a/Makefile b/Makefile
index 5e3bbd097..3b3da6363 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
# bill@newbreedsoftware.com
# http://www.newbreedsoftware.com/tuxpaint/
-# June 14, 2002 - March 4, 2004
+# June 14, 2002 - March 17, 2004
# Where to install things:
@@ -505,6 +505,11 @@ install-gettext:
@cp trans/sk.mo $(LOCALE_PREFIX)sk/LC_MESSAGES/tuxpaint.mo
@chmod 644 $(LOCALE_PREFIX)sk/LC_MESSAGES/tuxpaint.mo
@#
+ @echo " sl_SI ...Slovenian..."
+ @install -d $(LOCALE_PREFIX)sl/LC_MESSAGES
+ @cp trans/sl.mo $(LOCALE_PREFIX)sl/LC_MESSAGES/tuxpaint.mo
+ @chmod 644 $(LOCALE_PREFIX)sl/LC_MESSAGES/tuxpaint.mo
+ @#
@echo " es_ES ...Spanish..."
@install -d $(LOCALE_PREFIX)es/LC_MESSAGES
@cp trans/es.mo $(LOCALE_PREFIX)es/LC_MESSAGES/tuxpaint.mo
@@ -653,6 +658,7 @@ translations: trans \
trans/ro.mo \
trans/ru.mo \
trans/sk.mo \
+ trans/sl.mo \
trans/sr.mo \
trans/sv.mo \
trans/ta.mo \
@@ -781,6 +787,10 @@ trans/sk.mo: src/messages/sk.po
@echo " sk_SK ...Slovak..."
@msgfmt src/messages/sk.po -o trans/sk.mo
+trans/sl.mo: src/messages/sl.po
+ @echo " sl_SI ...Slovenian..."
+ @msgfmt src/messages/sl.po -o trans/sl.mo
+
trans/sr.mo: src/messages/sr.po
@echo " sr_YU ...Serbian..."
@msgfmt src/messages/sr.po -o trans/sr.mo
diff --git a/docs/AUTHORS.txt b/docs/AUTHORS.txt
index 3eb98ddd7..f25b7a446 100644
--- a/docs/AUTHORS.txt
+++ b/docs/AUTHORS.txt
@@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/
-June 17, 2002 - March 4, 2004
+June 17, 2002 - March 17, 2004
* Design and Coding:
@@ -169,12 +169,15 @@ June 17, 2002 - March 4, 2004
* Serbian
Aleksandar Jelenak
- * Spanish
- Gabriel Gazzan
-
* Slovak
Milan Plzik
+ * Slovenian
+ Urska Colner
+
+ * Spanish
+ Gabriel Gazzan
+
* Swedish
Daniel Andersson [retired]
diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt
index 110a93d4c..b9b55c6a9 100644
--- a/docs/CHANGES.txt
+++ b/docs/CHANGES.txt
@@ -7,13 +7,16 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/
-2004.Mar.04 (0.9.14) [cvs]
+2004.Mar.17 (0.9.14) [cvs]
* Afrikaans translation created.
Petri Jooste
* Serbian translation created.
Aleksandar Jelenak
+ * Slovenian translation created.
+ Urska Colner
+
* Korean language file (ko.po) update.
Mark K. Kim
diff --git a/docs/html/README.html b/docs/html/README.html
index 899d978a1..57dc4bfb5 100644
--- a/docs/html/README.html
+++ b/docs/html/README.html
@@ -23,7 +23,7 @@ New Breed Software
bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/
-June 14, 2002 - March 4, 2004
+June 14, 2002 - March 17, 2004
@@ -623,6 +623,11 @@ New Breed Software
|
|
+
+ slovenian |
+ |
+ |
+
swedish |
svenska |
@@ -982,15 +987,20 @@ New Breed Software
Slovak |
- sv_SE@euro |
- Svenska |
- Swedish |
+ sl_SI |
+ |
+ Slovenian |
sr_YU |
|
Serbian |
+
+ sv_SE@euro |
+ Svenska |
+ Swedish |
+
ta_IN (*) |
|
diff --git a/src/manpage/tuxpaint.1 b/src/manpage/tuxpaint.1
index 20e6cf83c..0a14fa9c0 100644
--- a/src/manpage/tuxpaint.1
+++ b/src/manpage/tuxpaint.1
@@ -1,5 +1,5 @@
-.\" tuxpaint.1 - 2004.03.04
-.TH TUXPAINT 1 "04 Mar 2004" "0.9.14" "Tux Paint"
+.\" tuxpaint.1 - 2004.03.17
+.TH TUXPAINT 1 "17 Mar 2004" "0.9.14" "Tux Paint"
.SH NAME
tuxpaint -- A drawing program for young children.
@@ -437,6 +437,7 @@ Herman Bruyninckx,
Laurentiu Buzdugan,
Pere Pujal Carabantes,
Jacques Chion,
+Urska Colner,
Ricardo Cruz,
Doruk Fisek,
Dovix,
diff --git a/src/messages/sl.po b/src/messages/sl.po
new file mode 100644
index 000000000..443d46e78
--- /dev/null
+++ b/src/messages/sl.po
@@ -0,0 +1,14 @@
+# Dummy PO
+msgid ""
+msgstr ""
+"POT-Creation-Date: \n"
+"PO-Revision-Date: 2004-03-17 00:00+0100\n"
+"Last-Translator: na \n"
+"Language-Team: na \n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: tuxpaint.c:795
+msgid "Do you really want to quit?"
+msgstr "REALLY?"
+
diff --git a/src/tuxpaint.c b/src/tuxpaint.c
index b9b94f6f8..295eacba7 100644
--- a/src/tuxpaint.c
+++ b/src/tuxpaint.c
@@ -26,7 +26,7 @@
#define VER_VERSION "0.9.14"
-#define VER_DATE "2004.03.04"
+#define VER_DATE "2004.03.17"
/* #define DEBUG */
@@ -316,6 +316,7 @@ enum {
LANG_RO, /* Romanian */
LANG_RU, /* Russian */
LANG_SK, /* Slovak */
+ LANG_SL, /* Slovenian */
LANG_SR, /* Serbian */
LANG_SV, /* Swedish */
LANG_TA, /* Tamil */
@@ -356,6 +357,7 @@ const char * lang_prefixes[NUM_LANGS] = {
"ro",
"ru",
"sk",
+ "sl",
"sr",
"sv",
"ta",
@@ -3812,6 +3814,7 @@ void show_lang_usage(FILE * f, char * prg)
" romanian\n"
" russian russkiy\n"
" slovak\n"
+ " slovenian\n"
" spanish espanol\n"
" swedish svenska\n"
" tamil\n"
@@ -3863,6 +3866,7 @@ void show_locale_usage(FILE * f, char * prg)
" ro_RO (Romanian)\n"
" ru_RU (Russian Russkiy)\n"
" sk_SK (Slovak)\n"
+ " sl_SI (Slovenian)\n"
" sr_YU (Serbian)\n"
" es_ES (Spanish Espanol)\n"
" sv_SE (Swedish Svenska)\n"
@@ -4547,6 +4551,11 @@ void setup(int argc, char * argv[])
putenv("LANG=sk_SK");
putenv("LC_ALL=sk_SK");
}
+ else if (strcmp(langstr, "slovenian") == 0)
+ {
+ putenv("LANG=sl_SI");
+ putenv("LC_ALL=sl_SI");
+ }
else if (strcmp(langstr, "serbian") == 0)
{
putenv("LANG=sr_YU");