summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scilab/modules/gui/locales/en_US/messages.pot91
-rw-r--r--scilab/modules/gui/locales/fr_FR/messages.po107
-rw-r--r--scilab/modules/gui/sci_gateway/c/gw_gui.c3
-rw-r--r--scilab/modules/gui/sci_gateway/c/sci_ClipBoard.c25
-rw-r--r--scilab/modules/gui/sci_gateway/c/sci_hidetoolbar.c3
-rw-r--r--scilab/modules/gui/sci_gateway/c/sci_raise_window.c3
-rw-r--r--scilab/modules/gui/sci_gateway/c/sci_setlookandfeel.c3
-rw-r--r--scilab/modules/gui/sci_gateway/c/sci_toolbar.c7
-rw-r--r--scilab/modules/gui/src/nogui/nogui.c11
9 files changed, 229 insertions, 24 deletions
diff --git a/scilab/modules/gui/locales/en_US/messages.pot b/scilab/modules/gui/locales/en_US/messages.pot
new file mode 100644
index 0000000..712d0bd
--- /dev/null
+++ b/scilab/modules/gui/locales/en_US/messages.pot
@@ -0,0 +1,91 @@
1# Localization of the module gui
2# Please see in SCI/tools/localization for localization management
3# Copyright (C) 2007/2008 - INRIA / Scilab
4# This file is distributed under the same license as the Scilab package.
5# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007/2008.
6#
7msgid ""
8msgstr ""
9"Project-Id-Version: Scilab\n"
10"Report-Msgid-Bugs-To: <localization@scilab.org>\n"
11"POT-Creation-Date: 2007-11-26 18:05+0100\n"
12"Last-Translator: Sylvestre Ledru <sylvestre.ledru@inria.fr>\n"
13"Language-Team: Scilab Localization <localization@scilab.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=ISO-8859-1\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Revision-Date: 2007-11-27 11:13+0100\n"
18
19# File: src/nogui/nogui.c, line: 19
20# File: src/nogui/nogui.c, line: 135
21# File: src/nogui/nogui.c, line: 139
22msgid "Scilab GUI module not installed.\n"
23msgstr ""
24#
25# File: src/nogui/nogui.c, line: 30
26msgid "Only in Window Mode.\n"
27msgstr ""
28#
29# File: src/nogui/nogui.c, line: 101
30msgid "Error. A signal has been caught.\n"
31msgstr ""
32#
33# File: sci_gateway/c/sci_toolbar.c, line: 36
34msgid "Input argument type incorrect"
35msgstr ""
36#
37# File: sci_gateway/c/sci_toolbar.c, line: 61
38msgid "Second parameter incorrect: 'on' or 'off'"
39msgstr ""
40#
41# File: sci_gateway/c/sci_toolbar.c, line: 67
42msgid "Input argument(s) type incorrect"
43msgstr ""
44#
45# File: sci_gateway/c/gw_gui.c, line: 41
46msgid "Module disabled in -nogui mode."
47msgstr ""
48#
49# File: sci_gateway/c/sci_raise_window.c, line: 15
50# File: sci_gateway/c/sci_ClipBoard.c, line: 185
51msgid "Not yet implemented.\n"
52msgstr ""
53#
54# File: sci_gateway/c/sci_hidetoolbar.c, line: 31
55msgid "Input argument incorrect type.\n"
56msgstr ""
57#
58# File: sci_gateway/c/sci_ClipBoard.c, line: 60
59msgid "Unknown first input argument. Should be 'paste' or 'pastespecial'.\n"
60msgstr ""
61#
62# File: sci_gateway/c/sci_ClipBoard.c, line: 94
63msgid "Incorrect second input argument."
64msgstr ""
65#
66# File: sci_gateway/c/sci_ClipBoard.c, line: 168
67msgid "Incorrect input argument. See : help clipboard"
68msgstr ""
69#
70# File: sci_gateway/c/sci_ClipBoard.c, line: 222
71# File: sci_gateway/c/sci_ClipBoard.c, line: 289
72msgid "Input argument must be >= 0."
73msgstr ""
74#
75# File: sci_gateway/c/sci_ClipBoard.c, line: 228
76# File: sci_gateway/c/sci_ClipBoard.c, line: 295
77msgid "Second input argument must be 'EMF' or 'DIB'."
78msgstr ""
79#
80# File: sci_gateway/c/sci_ClipBoard.c, line: 235
81msgid "Incorrect argument. See : help clipboard"
82msgstr ""
83#
84# File: sci_gateway/c/sci_ClipBoard.c, line: 271
85msgid "Not yet implemented\n"
86msgstr ""
87#
88# File: sci_gateway/c/sci_ClipBoard.c, line: 301
89# File: sci_gateway/c/sci_ClipBoard.c, line: 304
90msgid "Only on Windows mode.\n"
91msgstr ""
diff --git a/scilab/modules/gui/locales/fr_FR/messages.po b/scilab/modules/gui/locales/fr_FR/messages.po
new file mode 100644
index 0000000..c5f6859
--- /dev/null
+++ b/scilab/modules/gui/locales/fr_FR/messages.po
@@ -0,0 +1,107 @@
1# Localization of the module gui
2# Please see in SCI/tools/localization for localization management
3# Copyright (C) 2007/2008 - INRIA / Scilab
4# This file is distributed under the same license as the Scilab package.
5# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007/2008.
6#
7msgid ""
8msgstr ""
9"Project-Id-Version: Scilab\n"
10"Report-Msgid-Bugs-To: <localization@scilab.org>\n"
11"POT-Creation-Date: 2007-11-26 18:05+0100\n"
12"Last-Translator: Sylvestre Ledru <sylvestre.ledru@inria.fr>\n"
13"Language-Team: Scilab Localization <localization@scilab.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=ISO-8859-1\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Revision-Date: 2007-11-27 11:13+0100\n"
18
19# File: src/nogui/nogui.c, line: 19
20# File: src/nogui/nogui.c, line: 135
21# File: src/nogui/nogui.c, line: 139
22msgid "Scilab GUI module not installed.\n"
23msgstr ""
24
25#
26# File: src/nogui/nogui.c, line: 30
27msgid "Only in Window Mode.\n"
28msgstr ""
29
30#
31# File: src/nogui/nogui.c, line: 101
32msgid "Error. A signal has been caught.\n"
33msgstr ""
34
35#
36# File: sci_gateway/c/sci_toolbar.c, line: 36
37msgid "Input argument type incorrect"
38msgstr ""
39
40#
41# File: sci_gateway/c/sci_toolbar.c, line: 61
42msgid "Second parameter incorrect: 'on' or 'off'"
43msgstr ""
44
45#
46# File: sci_gateway/c/sci_toolbar.c, line: 67
47msgid "Input argument(s) type incorrect"
48msgstr ""
49
50#
51# File: sci_gateway/c/gw_gui.c, line: 41
52msgid "Module disabled in -nogui mode."
53msgstr ""
54
55#
56# File: sci_gateway/c/sci_raise_window.c, line: 15
57# File: sci_gateway/c/sci_ClipBoard.c, line: 185
58msgid "Not yet implemented.\n"
59msgstr ""
60
61#
62# File: sci_gateway/c/sci_hidetoolbar.c, line: 31
63msgid "Input argument incorrect type.\n"
64msgstr ""
65
66#
67# File: sci_gateway/c/sci_ClipBoard.c, line: 60
68msgid "Unknown first input argument. Should be 'paste' or 'pastespecial'.\n"
69msgstr ""
70
71#
72# File: sci_gateway/c/sci_ClipBoard.c, line: 94
73msgid "Incorrect second input argument."
74msgstr ""
75
76#
77# File: sci_gateway/c/sci_ClipBoard.c, line: 168
78msgid "Incorrect input argument. See : help clipboard"
79msgstr ""
80
81#
82# File: sci_gateway/c/sci_ClipBoard.c, line: 222
83# File: sci_gateway/c/sci_ClipBoard.c, line: 289
84msgid "Input argument must be >= 0."
85msgstr ""
86
87#
88# File: sci_gateway/c/sci_ClipBoard.c, line: 228
89# File: sci_gateway/c/sci_ClipBoard.c, line: 295
90msgid "Second input argument must be 'EMF' or 'DIB'."
91msgstr ""
92
93#
94# File: sci_gateway/c/sci_ClipBoard.c, line: 235
95msgid "Incorrect argument. See : help clipboard"
96msgstr ""
97
98#
99# File: sci_gateway/c/sci_ClipBoard.c, line: 271
100msgid "Not yet implemented\n"
101msgstr ""
102
103#
104# File: sci_gateway/c/sci_ClipBoard.c, line: 301
105# File: sci_gateway/c/sci_ClipBoard.c, line: 304
106msgid "Only on Windows mode.\n"
107msgstr ""
diff --git a/scilab/modules/gui/sci_gateway/c/gw_gui.c b/scilab/modules/gui/sci_gateway/c/gw_gui.c
index 4a96a8d..5005db1 100644
--- a/scilab/modules/gui/sci_gateway/c/gw_gui.c
+++ b/scilab/modules/gui/sci_gateway/c/gw_gui.c
@@ -7,6 +7,7 @@
7#include "stack-c.h" 7#include "stack-c.h"
8#include "scilabmode.h" 8#include "scilabmode.h"
9#include "callFunctionFromGateway.h" 9#include "callFunctionFromGateway.h"
10#include "localization.h"
10/*--------------------------------------------------------------------------*/ 11/*--------------------------------------------------------------------------*/
11static gw_generic_table Tab[]= 12static gw_generic_table Tab[]=
12{ 13{
@@ -37,7 +38,7 @@ int C2F(gw_gui)(void)
37 38
38 if ( getScilabMode() == SCILAB_NWNI) 39 if ( getScilabMode() == SCILAB_NWNI)
39 { 40 {
40 Scierror(999,"interface disabled in -nogui mode."); 41 Scierror(999,_("Module disabled in -nogui mode."));
41 return 0; 42 return 0;
42 } 43 }
43 44
diff --git a/scilab/modules/gui/sci_gateway/c/sci_ClipBoard.c b/scilab/modules/gui/sci_gateway/c/sci_ClipBoard.c
index 36374c4..ac7b255 100644
--- a/scilab/modules/gui/sci_gateway/c/sci_ClipBoard.c
+++ b/scilab/modules/gui/sci_gateway/c/sci_ClipBoard.c
@@ -11,6 +11,7 @@
11#include "MALLOC.h" 11#include "MALLOC.h"
12#include "sciprint.h" 12#include "sciprint.h"
13#include "scilabmode.h" 13#include "scilabmode.h"
14#include "localization.h"
14#include "IsAScalar.h" 15#include "IsAScalar.h"
15/*--------------------------------------------------------------------------*/ 16/*--------------------------------------------------------------------------*/
16int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l)) 17int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
@@ -56,7 +57,7 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
56 } 57 }
57 else 58 else
58 { 59 {
59 Scierror(999,"Unknown first input argument. Should be 'paste' or 'pastespecial'.\n"); 60 Scierror(999,_("Unknown first input argument. Should be 'paste' or 'pastespecial'.\n"));
60 return 0; 61 return 0;
61 } 62 }
62 } 63 }
@@ -90,7 +91,7 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
90 } 91 }
91 else 92 else
92 { 93 {
93 Scierror(999,"Incorrect second input argument."); 94 Scierror(999,_("Incorrect second input argument."));
94 return 0; 95 return 0;
95 } 96 }
96 97
@@ -164,7 +165,7 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
164 } 165 }
165 else 166 else
166 { 167 {
167 Scierror(999,"Incorrect input argument. See : help clipboard"); 168 Scierror(999,_("Incorrect input argument. See : help clipboard"));
168 return 0; 169 return 0;
169 } 170 }
170 } 171 }
@@ -181,7 +182,7 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
181 num_win=*istk(l1); 182 num_win=*istk(l1);
182 if (num_win>=0) 183 if (num_win>=0)
183 { 184 {
184 sciprint("Not yet implemented\n"); 185 sciprint(_("Not yet implemented.\n"));
185 { 186 {
186/* 187/*
187// struct BCG *ScilabGC=NULL; 188// struct BCG *ScilabGC=NULL;
@@ -218,20 +219,20 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
218 } 219 }
219 else 220 else
220 { 221 {
221 Scierror(999,"Input argument must be >= 0."); 222 Scierror(999,_("Input argument must be >= 0."));
222 return 0; 223 return 0;
223 } 224 }
224 } 225 }
225 else 226 else
226 { 227 {
227 Scierror(999,"Second input argument must be 'EMF' or 'DIB'."); 228 Scierror(999,_("Second input argument must be 'EMF' or 'DIB'."));
228 return 0; 229 return 0;
229 } 230 }
230 } 231 }
231 } 232 }
232 else 233 else
233 { 234 {
234 Scierror(999,"Incorrect argument. See : help clipboard"); 235 Scierror(999,_("Incorrect argument. See : help clipboard"));
235 return 0; 236 return 0;
236 } 237 }
237 } 238 }
@@ -267,7 +268,7 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
267 /* copy in clipboard EMF or DIB */ 268 /* copy in clipboard EMF or DIB */
268 { 269 {
269 270
270 sciprint("not yet implemented\n"); 271 sciprint(_("Not yet implemented\n"));
271 272
272 m1=0; 273 m1=0;
273 n1=0; 274 n1=0;
@@ -285,22 +286,22 @@ int C2F(sci_ClipBoard) _PARAMS((char *fname,unsigned long l))
285 } 286 }
286 else 287 else
287 { 288 {
288 Scierror(999,"Input argument must be >= 0."); 289 Scierror(999,_("Input argument must be >= 0."));
289 return 0; 290 return 0;
290 } 291 }
291 } 292 }
292 else 293 else
293 { 294 {
294 Scierror(999,"Second input argument must be 'EMF' or 'DIB'."); 295 Scierror(999,_("Second input argument must be 'EMF' or 'DIB'."));
295 return 0; 296 return 0;
296 } 297 }
297 } 298 }
298 else 299 else
299 { 300 {
300 Scierror(999,"Only on Windows mode.\n"); 301 Scierror(999,_("Only on Windows mode.\n"));
301 return 0; 302 return 0;
302 } 303 }
303 Scierror(999,"Only on Windows mode.\n"); 304 Scierror(999,_("Only on Windows mode.\n"));
304 return 0; 305 return 0;
305 } 306 }
306 return 0; 307 return 0;
diff --git a/scilab/modules/gui/sci_gateway/c/sci_hidetoolbar.c b/scilab/modules/gui/sci_gateway/c/sci_hidetoolbar.c
index 594d895..21ff589 100644
--- a/scilab/modules/gui/sci_gateway/c/sci_hidetoolbar.c
+++ b/scilab/modules/gui/sci_gateway/c/sci_hidetoolbar.c
@@ -5,6 +5,7 @@
5#include "gw_gui.h" 5#include "gw_gui.h"
6#include "stack-c.h" 6#include "stack-c.h"
7#include "Scierror.h" 7#include "Scierror.h"
8#include "localization.h"
8/*--------------------------------------------------------------------------*/ 9/*--------------------------------------------------------------------------*/
9int C2F(sci_hidetoolbar) _PARAMS((char *fname,unsigned long l)) 10int C2F(sci_hidetoolbar) _PARAMS((char *fname,unsigned long l))
10{ 11{
@@ -27,7 +28,7 @@ int C2F(sci_hidetoolbar) _PARAMS((char *fname,unsigned long l))
27 } 28 }
28 else 29 else
29 { 30 {
30 Scierror(999,"Parameter incorrect type.\n"); 31 Scierror(999,_("Input argument incorrect type.\n"));
31 return 0; 32 return 0;
32 } 33 }
33 return 0; 34 return 0;
diff --git a/scilab/modules/gui/sci_gateway/c/sci_raise_window.c b/scilab/modules/gui/sci_gateway/c/sci_raise_window.c
index 2133879..ea87b10 100644
--- a/scilab/modules/gui/sci_gateway/c/sci_raise_window.c
+++ b/scilab/modules/gui/sci_gateway/c/sci_raise_window.c
@@ -8,10 +8,11 @@
8#include "gw_gui.h" 8#include "gw_gui.h"
9#include "stack-c.h" 9#include "stack-c.h"
10#include "Scierror.h" 10#include "Scierror.h"
11#include "localization.h"
11/*--------------------------------------------------------------------------*/ 12/*--------------------------------------------------------------------------*/
12int C2F(sci_raise_window) _PARAMS(( char * fname, unsigned long fname_len )) 13int C2F(sci_raise_window) _PARAMS(( char * fname, unsigned long fname_len ))
13{ 14{
14 Scierror(999,"\nNot yet implemented.\n"); 15 Scierror(999,_("Not yet implemented.\n"));
15 return 0; 16 return 0;
16//#ifdef _MSC_VER 17//#ifdef _MSC_VER
17// static int l1, m1, n1; 18// static int l1, m1, n1;
diff --git a/scilab/modules/gui/sci_gateway/c/sci_setlookandfeel.c b/scilab/modules/gui/sci_gateway/c/sci_setlookandfeel.c
index ec4a638..ad4b838 100644
--- a/scilab/modules/gui/sci_gateway/c/sci_setlookandfeel.c
+++ b/scilab/modules/gui/sci_gateway/c/sci_setlookandfeel.c
@@ -8,6 +8,7 @@
8#include "MALLOC.h" 8#include "MALLOC.h"
9#include "stack-c.h" 9#include "stack-c.h"
10#include "Scierror.h" 10#include "Scierror.h"
11#include "localization.h"
11/*--------------------------------------------------------------------------*/ 12/*--------------------------------------------------------------------------*/
12int C2F(sci_setlookandfeel) _PARAMS((char *fname,unsigned long fname_len)) 13int C2F(sci_setlookandfeel) _PARAMS((char *fname,unsigned long fname_len))
13{ 14{
@@ -57,7 +58,7 @@ int C2F(sci_setlookandfeel) _PARAMS((char *fname,unsigned long fname_len))
57 } 58 }
58 else 59 else
59 { 60 {
60 Scierror(999,"invalid parameter.\n"); 61 Scierror(999,"Invalid input argument.\n");
61 } 62 }
62 return 0; 63 return 0;
63} 64}
diff --git a/scilab/modules/gui/sci_gateway/c/sci_toolbar.c b/scilab/modules/gui/sci_gateway/c/sci_toolbar.c
index 83e25b3..7ea4aac 100644
--- a/scilab/modules/gui/sci_gateway/c/sci_toolbar.c
+++ b/scilab/modules/gui/sci_gateway/c/sci_toolbar.c
@@ -6,6 +6,7 @@
6#include "stack-c.h" 6#include "stack-c.h"
7#include "Scierror.h" 7#include "Scierror.h"
8#include "MALLOC.h" 8#include "MALLOC.h"
9#include "localization.h"
9/*--------------------------------------------------------------------------*/ 10/*--------------------------------------------------------------------------*/
10int C2F(sci_toolbar) _PARAMS((char *fname,unsigned long l)) 11int C2F(sci_toolbar) _PARAMS((char *fname,unsigned long l))
11{ 12{
@@ -32,7 +33,7 @@ int C2F(sci_toolbar) _PARAMS((char *fname,unsigned long l))
32 } 33 }
33 else 34 else
34 { 35 {
35 Scierror(999,"parameter type incorrect"); 36 Scierror(999,_("Input argument type incorrect"));
36 return 0; 37 return 0;
37 } 38 }
38 } 39 }
@@ -57,13 +58,13 @@ int C2F(sci_toolbar) _PARAMS((char *fname,unsigned long l))
57 } 58 }
58 else 59 else
59 { 60 {
60 Scierror(999,"Second parameter incorrect: 'on' or 'off'"); 61 Scierror(999,_("Second parameter incorrect: 'on' or 'off'"));
61 return 0; 62 return 0;
62 } 63 }
63 } 64 }
64 else 65 else
65 { 66 {
66 Scierror(999,"parameter(s) type incorrect"); 67 Scierror(999,_("Input argument(s) type incorrect"));
67 return 0; 68 return 0;
68 } 69 }
69 } 70 }
diff --git a/scilab/modules/gui/src/nogui/nogui.c b/scilab/modules/gui/src/nogui/nogui.c
index f140dae..4172933 100644
--- a/scilab/modules/gui/src/nogui/nogui.c
+++ b/scilab/modules/gui/src/nogui/nogui.c
@@ -11,11 +11,12 @@
11#include "sciprint.h" 11#include "sciprint.h"
12#include "nogui.h" 12#include "nogui.h"
13#include "xscimore.h" 13#include "xscimore.h"
14#include "localization.h"
14#include "core_math.h" /* Max */ 15#include "core_math.h" /* Max */
15/*--------------------------------------------------------------------------*/ 16/*--------------------------------------------------------------------------*/
16int C2F(gw_gui)() 17int C2F(gw_gui)()
17{ 18{
18 Scierror(999,"Scilab GUI module not installed.\n"); 19 Scierror(999,_("Scilab GUI module not installed.\n"));
19 return 0; 20 return 0;
20} 21}
21/*--------------------------------------------------------------------------*/ 22/*--------------------------------------------------------------------------*/
@@ -26,7 +27,7 @@ BOOL TerminateGUI(void)
26/*--------------------------------------------------------------------------*/ 27/*--------------------------------------------------------------------------*/
27int XClearScreenConsole(char *fname) 28int XClearScreenConsole(char *fname)
28{ 29{
29 sciprint("\n Only in Window Mode\n"); 30 sciprint(_("Only in Window Mode.\n"));
30 return 0; 31 return 0;
31} 32}
32/*--------------------------------------------------------------------------*/ 33/*--------------------------------------------------------------------------*/
@@ -97,7 +98,7 @@ int Xorgetchar(int interrupt){
97 if (i < 0) { 98 if (i < 0) {
98 if (errno != EINTR) /* EINTR A signal was caught. */ 99 if (errno != EINTR) /* EINTR A signal was caught. */
99 { 100 {
100 sciprint("Error.\n"); 101 sciprint(_("Error. A signal has been caught.\n"));
101 exit(0); 102 exit(0);
102 continue; 103 continue;
103 } 104 }
@@ -131,11 +132,11 @@ int XEvorgetchar(int interrupt){
131} 132}
132/*--------------------------------------------------------------------------*/ 133/*--------------------------------------------------------------------------*/
133void main_sci (char *startup, int lstartup,int memory){ 134void main_sci (char *startup, int lstartup,int memory){
134 Scierror(999,"GUI interface not installed.\n"); 135 Scierror(999,_("Scilab GUI module not installed.\n"));
135} 136}
136/*--------------------------------------------------------------------------*/ 137/*--------------------------------------------------------------------------*/
137void InitXsession(void){ 138void InitXsession(void){
138 Scierror(999,"GUI interface not installed.\n"); 139 Scierror(999,_("Scilab GUI module not installed.\n"));
139} 140}
140/*--------------------------------------------------------------------------*/ 141/*--------------------------------------------------------------------------*/
141BOOL InitializeGUI(void) 142BOOL InitializeGUI(void)