From koffice-devel Thu May 30 08:11:13 2002 From: David Faure Date: Thu, 30 May 2002 08:11:13 +0000 To: koffice-devel Subject: Re: Questions about styles X-MARC-Message: https://marc.info/?l=koffice-devel&m=102274650710119 On Wednesday 29 May 2002 20:20, Nash Hoogwater wrote: > Hi all, > > I have some question while working with current CVS HEAD. > > 1. How does the translation of style-names work? stylenames.cc has the list of standard style names, so that xgettext picks it up and translators can provide translations for them, feel free to add frame styles to that list (with a comment). Then when displaying a style the code uses i18n("style name", theStyleName), see KoStyle::translatedName(). The point is that this is in the GUI only, the file still has the raw untranslated name - so that people using different languages can exchange documents ;). Until they create their own styles, that is ;) > 2. If I apply styles with the following code-snippet: > > KoTextDocument::Temp, KoParagLayout::All, KoTextFormat::Format, false, false > ); > > However if I undo the return command (from textObject) it doesn't work. Can > somebody explain me how I can get this to work? Try passing "true" to the createUndoRedo bool ;-) -- David FAURE, david@mandrakesoft.com, faure@kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KDE, Making The Future of Computing Available Today _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel