use carrige returns :)
Modified: trunk/reactos/apps/utils/net/tcpsvcs/qotd.c
_____
Modified: trunk/reactos/apps/utils/net/tcpsvcs/qotd.c
--- trunk/reactos/apps/utils/net/tcpsvcs/qotd.c 2005-09-29 22:36:46 UTC
(rev 18160)
+++ trunk/reactos/apps/utils/net/tcpsvcs/qotd.c 2005-09-29 22:57:42 UTC
(rev 18161)
@@ -7,13 +7,13 @@
//these need putting in an RC file.
TCHAR Quotes[][MAX_QUOTE_BUF] =
{
- _T("\"I have a penchant for mischief, property damage, stalking and
cheesecake, of course\"\n - kjk hyperion"),
+ _T("\"I have a penchant for mischief, property damage, stalking and
cheesecake, of course\"\r\n - kjk hyperion"),
_T("\"Wow! I fixed a setmenu bug.\" - jimtabor"),
- _T("\"if the code is broken though, your free to call it ur own\"\n
- Alex Ionescu"),
- _T("\"i don't know about any bug; none exist; ReactOS is
prefect\"\n - filip2307"),
- _T("\"if you were kernel code, cutler would rewrite you.\"\n - Alex
Ionescu"),
- _T("\"Looks like Hartmut is cleaning out his WC. working copy, that
is\"\n - WaxDragon")
- _T("\"don't question it ... it's clearly an optimization\"\n -
arty")
+ _T("\"if the code is broken though, your free to call it ur
own\"\r\n - Alex Ionescu"),
+ _T("\"i don't know about any bug; none exist; ReactOS is
prefect\"\r\n - filip2307"),
+ _T("\"if you were kernel code, cutler would rewrite you.\"\r\n -
Alex Ionescu"),
+ _T("\"Looks like Hartmut is cleaning out his WC. working copy, that
is\"\r\n - WaxDragon")
+ _T("\"don't question it ... it's clearly an optimization\"\r\n -
arty")
};
DWORD WINAPI QotdHandler(VOID* Sock_)
randomise the quote sent
Modified: trunk/reactos/apps/utils/net/tcpsvcs/qotd.c
_____
Modified: trunk/reactos/apps/utils/net/tcpsvcs/qotd.c
--- trunk/reactos/apps/utils/net/tcpsvcs/qotd.c 2005-09-29 20:41:12 UTC
(rev 18159)
+++ trunk/reactos/apps/utils/net/tcpsvcs/qotd.c 2005-09-29 22:36:46 UTC
(rev 18160)
@@ -7,13 +7,13 @@
//these need putting in an RC file.
TCHAR Quotes[][MAX_QUOTE_BUF] =
{
- _T("\"I have a penchant for mischief, property damage, stalking and
cheesecake, of course\" - kjk hyperion"),
+ _T("\"I have a penchant for mischief, property damage, stalking and
cheesecake, of course\"\n - kjk hyperion"),
_T("\"Wow! I fixed a setmenu bug.\" - jimtabor"),
- _T("\"if the code is broken though, your free to call it ur own\" -
Alex Ionescu"),
- _T("\"i don't know about any bug; none exist; ReactOS is prefect\"
- filip2307"),
- _T("\"if you were kernel code, cutler would rewrite you.\" - Alex
Ionescu"),
- _T("\"Looks like Hartmut is cleaning out his WC. working copy, that
is\" - WaxDragon")
- _T("\"don't question it ... it's clearly an optimization\" - arty")
+ _T("\"if the code is broken though, your free to call it ur own\"\n
- Alex Ionescu"),
+ _T("\"i don't know about any bug; none exist; ReactOS is
prefect\"\n - filip2307"),
+ _T("\"if you were kernel code, cutler would rewrite you.\"\n - Alex
Ionescu"),
+ _T("\"Looks like Hartmut is cleaning out his WC. working copy, that
is\"\n - WaxDragon")
+ _T("\"don't question it ... it's clearly an optimization\"\n -
arty")
};
DWORD WINAPI QotdHandler(VOID* Sock_)
@@ -21,12 +21,17 @@
DWORD Retval = 0;
SOCKET Sock;
INT NumOfQuotes;
+ INT QuoteToPrint;
Sock = (SOCKET)Sock_;
NumOfQuotes = sizeof(Quotes) / MAX_QUOTE_BUF;
- SendQuote(Sock, Quotes[1]);
+ /* randomise the quote */
+ srand((unsigned int) time(0));
+ QuoteToPrint = rand() % NumOfQuotes;
+ SendQuote(Sock, Quotes[QuoteToPrint]);
+
_tprintf(_T("Shutting connection down...\n"));
if (ShutdownConnection(Sock, FALSE))
_tprintf(_T("Connection is down.\n"));
Set eol-style for new resources files
Add back Da.rc resources
Modified: trunk/reactos/lib/setupapi/Bg.rc
Modified: trunk/reactos/lib/setupapi/No.rc
Modified: trunk/reactos/lib/setupapi/setupapi.rc
_____
Modified: trunk/reactos/lib/setupapi/Bg.rc
--- trunk/reactos/lib/setupapi/Bg.rc 2005-09-29 11:58:31 UTC (rev
18153)
+++ trunk/reactos/lib/setupapi/Bg.rc 2005-09-29 12:06:02 UTC (rev
18154)
@@ -1,34 +1,34 @@
-/*
- * Bulgarian resources for SETUPAPI
- *
- * Copyright 2005 Milko Krachounov
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
- */
-
-LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
-
-COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105
-STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION
-CAPTION "?¯´ÞÓÝÕ ÝÓ ¶ÓÚÙ¯ÔÕ..."
-FONT 8, "MS Shell Dlg"
-BEGIN
- PUSHBUTTON "??ýÕÝÞ", IDCANCEL, 79, 84, 50, 14, WS_CHILD |
WS_VISIBLE | WS_TABSTOP
- LTEXT "?þ?¯¸ÝÞÛ:", -1, 7, 7, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
- LTEXT "", SOURCESTRORD, 7, 18, 194, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
- LTEXT "ÍÕÙ:", -1, 7, 30, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
- LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE |
WS_GROUP
- CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13,
WS_CHILD | WS_VISIBLE | WS_TABSTOP
-END
+/*
+ * Bulgarian resources for SETUPAPI
+ *
+ * Copyright 2005 Milko Krachounov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ */
+
+LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
+
+COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105
+STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION
+CAPTION "?¯´ÞÓÝÕ ÝÓ ¶ÓÚÙ¯ÔÕ..."
+FONT 8, "MS Shell Dlg"
+BEGIN
+ PUSHBUTTON "??ýÕÝÞ", IDCANCEL, 79, 84, 50, 14, WS_CHILD |
WS_VISIBLE | WS_TABSTOP
+ LTEXT "?þ?¯¸ÝÞÛ:", -1, 7, 7, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", SOURCESTRORD, 7, 18, 194, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "ÍÕÙ:", -1, 7, 30, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13,
WS_CHILD | WS_VISIBLE | WS_TABSTOP
+END
Property changes on: trunk/reactos/lib/setupapi/Bg.rc
___________________________________________________________________
Name: svn:eol-style
+ native
_____
Modified: trunk/reactos/lib/setupapi/No.rc
--- trunk/reactos/lib/setupapi/No.rc 2005-09-29 11:58:31 UTC (rev
18153)
+++ trunk/reactos/lib/setupapi/No.rc 2005-09-29 12:06:02 UTC (rev
18154)
@@ -1,34 +1,34 @@
-/*
- * Norwegian BokmÕl resources for SETUPAPI
- *
- * Copyright 2005 Alexander N. S°rnes <alex(a)thehandofagony.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
- */
-
-LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
-
-COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105
-STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION
-CAPTION "Kopierer filer . . ."
-FONT 8, "MS Shell Dlg"
-BEGIN
- PUSHBUTTON "Cancel", IDCANCEL, 79, 84, 50, 14, WS_CHILD |
WS_VISIBLE | WS_TABSTOP
- LTEXT "Kilde:", -1, 7, 7, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
- LTEXT "", SOURCESTRORD, 7, 18, 194, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
- LTEXT "MÕl:", -1, 7, 30, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
- LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE |
WS_GROUP
- CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13,
WS_CHILD | WS_VISIBLE | WS_TABSTOP
-END
+/*
+ * Norwegian BokmÕl resources for SETUPAPI
+ *
+ * Copyright 2005 Alexander N. S°rnes <alex(a)thehandofagony.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ */
+
+LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
+
+COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105
+STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION
+CAPTION "Kopierer filer . . ."
+FONT 8, "MS Shell Dlg"
+BEGIN
+ PUSHBUTTON "Cancel", IDCANCEL, 79, 84, 50, 14, WS_CHILD |
WS_VISIBLE | WS_TABSTOP
+ LTEXT "Kilde:", -1, 7, 7, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", SOURCESTRORD, 7, 18, 194, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "MÕl:", -1, 7, 30, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13,
WS_CHILD | WS_VISIBLE | WS_TABSTOP
+END
Property changes on: trunk/reactos/lib/setupapi/No.rc
___________________________________________________________________
Name: svn:eol-style
+ native
_____
Modified: trunk/reactos/lib/setupapi/setupapi.rc
--- trunk/reactos/lib/setupapi/setupapi.rc 2005-09-29 11:58:31 UTC
(rev 18153)
+++ trunk/reactos/lib/setupapi/setupapi.rc 2005-09-29 12:06:02 UTC
(rev 18154)
@@ -26,6 +26,7 @@
#include "Bg.rc"
#include "Cs.rc"
+#include "Da.rc"
#include "De.rc"
#include "En.rc"
#include "Es.rc"
- Milko Krachounov <milko(a)3mhz.net>
Added Bulgarian translations.
- Alexander N. Sørnes <alex(a)thehandofagony.com>
Added Norwegian translations.
Added: trunk/reactos/lib/setupapi/Bg.rc
Added: trunk/reactos/lib/setupapi/No.rc
Modified: trunk/reactos/lib/setupapi/setupapi.rc
_____
Added: trunk/reactos/lib/setupapi/Bg.rc
--- trunk/reactos/lib/setupapi/Bg.rc 2005-09-29 09:46:35 UTC (rev
18152)
+++ trunk/reactos/lib/setupapi/Bg.rc 2005-09-29 11:58:31 UTC (rev
18153)
@@ -0,0 +1,34 @@
+/*
+ * Bulgarian resources for SETUPAPI
+ *
+ * Copyright 2005 Milko Krachounov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ */
+
+LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
+
+COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105
+STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION
+CAPTION "?¯´ÞÓÝÕ ÝÓ ¶ÓÚÙ¯ÔÕ..."
+FONT 8, "MS Shell Dlg"
+BEGIN
+ PUSHBUTTON "??ýÕÝÞ", IDCANCEL, 79, 84, 50, 14, WS_CHILD |
WS_VISIBLE | WS_TABSTOP
+ LTEXT "?þ?¯¸ÝÞÛ:", -1, 7, 7, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", SOURCESTRORD, 7, 18, 194, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "ÍÕÙ:", -1, 7, 30, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13,
WS_CHILD | WS_VISIBLE | WS_TABSTOP
+END
_____
Added: trunk/reactos/lib/setupapi/No.rc
--- trunk/reactos/lib/setupapi/No.rc 2005-09-29 09:46:35 UTC (rev
18152)
+++ trunk/reactos/lib/setupapi/No.rc 2005-09-29 11:58:31 UTC (rev
18153)
@@ -0,0 +1,34 @@
+/*
+ * Norwegian BokmÕl resources for SETUPAPI
+ *
+ * Copyright 2005 Alexander N. S°rnes <alex(a)thehandofagony.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ */
+
+LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
+
+COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105
+STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION
+CAPTION "Kopierer filer . . ."
+FONT 8, "MS Shell Dlg"
+BEGIN
+ PUSHBUTTON "Cancel", IDCANCEL, 79, 84, 50, 14, WS_CHILD |
WS_VISIBLE | WS_TABSTOP
+ LTEXT "Kilde:", -1, 7, 7, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", SOURCESTRORD, 7, 18, 194, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "MÕl:", -1, 7, 30, 77, 11, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE |
WS_GROUP
+ CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13,
WS_CHILD | WS_VISIBLE | WS_TABSTOP
+END
_____
Modified: trunk/reactos/lib/setupapi/setupapi.rc
--- trunk/reactos/lib/setupapi/setupapi.rc 2005-09-29 09:46:35 UTC
(rev 18152)
+++ trunk/reactos/lib/setupapi/setupapi.rc 2005-09-29 11:58:31 UTC
(rev 18153)
@@ -24,8 +24,8 @@
#include "winnls.h"
#include "setupapi_private.h"
+#include "Bg.rc"
#include "Cs.rc"
-#include "Da.rc"
#include "De.rc"
#include "En.rc"
#include "Es.rc"
@@ -34,6 +34,7 @@
#include "It.rc"
#include "Ja.rc"
#include "Nl.rc"
+#include "No.rc"
#include "Pl.rc"
#include "Pt.rc"
#include "Ru.rc"