+2000-02-01 Juergen Vigna <jug@sad.it>
+
+ * po/it.po: updated a bit the italian po file and also changed the
+ 'file nuovo' for newfile to 'filenuovo' without a space, this did
+ annoy me a lot :)
+
+ * src/lyxrc.C (LyXRC): added support for a default insert_date_format
+ for the new insert_date command.
+
+ * src/lyxfunc.C (Dispatch): added support for a insert_date function
+ from jdblair, to insert a date into the current text conforming to
+ a strftime format (for now only considering the locale-set and not
+ the document-language).
+
2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/lyxfont.C (textWidth): hopefully better fix for the Array
#: src/buffer.C:222
msgid "Specified file is unreadable: "
-msgstr ""
+msgstr "File specificato non puo essere letto: "
#: src/buffer.C:232
#, fuzzy
#: src/insets/insetbib.C:96 src/insets/insetbib.C:97
msgid "Remark:|#R"
-msgstr ""
+msgstr "Osservazione:|#O"
#. InsetBibtex uses the same form, with different labels
#: src/insets/insetbib.C:114 src/insets/insetbib.C:115
#: src/insets/insetinclude.C:44 src/insets/insetinclude.C:45
msgid "Don't typeset|#D"
-msgstr ""
+msgstr "Non componi|#N"
#: src/insets/insetinclude.C:54 src/insets/insetinclude.C:55
msgid "Load|#L"
#: src/insets/insetinclude.C:71 src/insets/insetinclude.C:72
msgid "Use input|#i"
-msgstr ""
+msgstr "Usa input|#i"
#: src/insets/insetinclude.C:75 src/insets/insetinclude.C:76
msgid "Use include|#U"
-msgstr ""
+msgstr "Usa include|#U"
#. launches dialog
#: src/insets/insetinclude.C:111 src/lyx_cb.C:314 src/lyxfunc.C:2459
#: src/insets/insetinclude.C:289
msgid "Input"
-msgstr ""
+msgstr "Includi"
#: src/insets/insetinclude.C:291
msgid "Verbatim Input"
-msgstr ""
+msgstr "Includi verbatim"
#: src/insets/insetindex.C:53 src/insets/insetindex.C:54
msgid "Keyword:|#K"
-msgstr ""
+msgstr "Parola chiave:|#P"
#: src/insets/insetindex.C:104
msgid "Index"
-msgstr ""
+msgstr "Indice"
#: src/insets/insetindex.C:111
msgid "Idx"
-msgstr ""
+msgstr "Ind"
#: src/insets/insetindex.C:139
msgid "PrintIndex"
-msgstr ""
+msgstr "StampaIndice"
#: src/insets/insetinfo.C:70 src/insets/insetinfo.C:89
#: src/insets/insetinfo.C:209
#: src/LyXAction.C:351
msgid "Register document under version control"
-msgstr ""
+msgstr "Restria il documento con version control"
#: src/LyXAction.C:575
msgid "No description available!"
#: src/lyx_cb.C:793
msgid "DocBook does not have a latex backend"
-msgstr ""
+msgstr "DocBook non ha un backend latex"
#: src/lyx_cb.C:800
msgid "Nice LaTeX file saved as"
#: src/lyx_cb.C:937
msgid "Document exported as HTML to file `"
-msgstr ""
+msgstr "Documento esportato in HTML sul file `"
#: src/lyx_cb.C:940
#, fuzzy
#: src/lyx_cb.C:1148
msgid "Error! Specified file is unreadable: "
-msgstr ""
+msgstr "Errore! Il file specificato non puo essere letto: "
#: src/lyx_cb.C:1155
#, fuzzy
#: src/lyxfr1.C:149 src/lyxfr1.C:186
msgid "You cannot replace a single space, nor an empty character."
-msgstr ""
+msgstr "Non si puo sostituire uno spazio singolo o un carattere vuoto"
#: src/lyxfr1.C:217 src/lyxfr1.C:265
#, fuzzy
#: src/lyxfr1.C:224
msgid " strings have been replaced."
-msgstr ""
+msgstr "le stringhe sono state sostituite."
#: src/lyxfr1.C:261
#, fuzzy
#: src/lyxfunc.C:2462
msgid "newfile"
-msgstr "file nuovo"
+msgstr "filenuovo"
#: src/lyxfunc.C:2481 src/lyxfunc.C:2620 src/lyxfunc.C:2699
msgid ""
#: src/lyx_gui_misc.C:356
msgid "Dismiss"
-msgstr ""
+msgstr "Chiudi"
#: src/lyx_gui_misc.C:373 src/lyx_gui_misc.C:386 src/lyx_gui_misc.C:391
#: src/lyx_gui_misc.C:397
"\n"
"Check the LyX man page for more options."
msgstr ""
+"Uso: lyx [ opzioni di commando ] [ nome.lyx ...]\n"
+"Opzioni di comando (sensibile alle maiuscole):\n"
+"\t-help visuzlizza messaggio di aiuto\n"
+"\t-sysdir x prova a settare il direttorio base a x\n"
+"\t-width x setta la largezza della finestra principale\n"
+"\t-height y setta l'altezza della finestra principale\n"
+"\t-xpos x setta la posizione x della finestra principale\n"
+"\t-ypos y setta la posizione y della finestra principale\n"
+"\t-dbg caratteristica[,carateristica]...\n"
+" setta le carateristiche da debuggare.\n"
+" Digita `lyx -dbg' per vedere una lista di carateristiche\n"
+"\t-Reverse inverte i colori di sfondo e di primo piano\n"
+"\t-Mono fa partire LyX in modo bianco e nero\n"
+"\t-FastSelection usa una procedura veloce per fare selezioni\n"
+"\n"
+"Guarda anche le LyX man pagine per più opzioni."
#: src/lyx_main.C:492
msgid "List of supported debug flags:"
-msgstr ""
+msgstr "Lista delle opzioni di debug:"
#: src/lyx_main.C:511
msgid "Missing directory for -sysdir switch!"
#: src/lyx_main.C:564
msgid "' after "
-msgstr ""
+msgstr "' dopo "
#: src/lyx_main.C:565 src/lyx_main.C:570
msgid " switch!"
-msgstr ""
+msgstr " opzione!"
#: src/lyx_main.C:568
msgid "Missing file type [eg latex, ps...] after "
-msgstr ""
+msgstr "Manca il tipo di file [p.e. latex, ps...] dopo "
#: src/lyx_sendfax.C:21
msgid "Fax no.:|#F"
#: src/lyxvc.C:140
msgid "(no log message)"
-msgstr ""
+msgstr "(nessun messaggio di log)"
#: src/lyxvc.C:155
msgid "Ignore changes and proceed with check out?"
* ====================================================== */
#include <config.h>
+#include <time.h>
+#include <locale.h>
#include <cstdlib>
#include <cctype>
}
break;
+ case LFUN_INSERT_DATE: // jdblair: insert-date cmd
+ {
+ char datetmp[32];
+ int datetmp_len;
+ time_t now_time_t;
+ struct tm *now_tm;
+ static string arg;
+
+ now_time_t = time(NULL);
+ now_tm = localtime(&now_time_t);
+ (void)setlocale(LC_TIME, "");
+ if (!argument.empty())
+ arg = argument;
+ else if (arg.empty())
+ arg = lyxrc->insert_date_format;
+ datetmp_len = (int) strftime(datetmp, 32, arg.c_str(), now_tm);
+ for (int i = 0; i < datetmp_len; i++) {
+ owner->view()->text->InsertChar(datetmp[i]);
+ owner->view()->smallUpdate(1);
+ }
+ SetUpdateTimer();
+ owner->view()->text->sel_cursor = owner->view()->text->cursor;
+ moveCursorUpdate(false);
+ }
+ break;
+
case LFUN_SAVEPREFERENCES:
{
Path p(user_lyxdir);
RC_VIEWPDF_COMMAND,
RC_PDF_TO_PS_COMMAND,
RC_DVI_TO_PS_COMMAND,
+ RC_INSERT_DATE_FORMAT,
RC_LAST
};
{ "\\font_encoding", RC_FONT_ENCODING },
{ "\\html_command", RC_HTML_COMMAND },
{ "\\input", RC_INPUT },
+ { "\\insert_date_format", RC_INSERT_DATE_FORMAT },
{ "\\kbmap", RC_KBMAP },
{ "\\kbmap_primary", RC_KBMAP_PRIMARY },
{ "\\kbmap_secondary", RC_KBMAP_SECONDARY },
use_kbmap = false;
hasBindFile = false;
defaultKeyBindings();
+ ///
+ insert_date_format = "%A, %B %d %Y";
}
if (lexrc.next())
make_backup = lexrc.GetBool();
break;
+ case RC_INSERT_DATE_FORMAT:
+ if (lexrc.next())
+ insert_date_format = lexrc.GetString();
+ break;
case RC_LAST: break; // this is just a dummy
}
}