[Libreoffice] [PATCH 1/2] Translate german comments

Martin Kepplinger martinkepplinger at eml.cc
Sun Jun 5 07:46:41 PDT 2011


Translate a part of german code comments in writer/sw/source/ui/misc to
english!

This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
 sw/source/ui/misc/bookmark.cxx |   25 +++++++-------
 sw/source/ui/misc/docfnote.cxx |   42 +++++++++++-------------
 sw/source/ui/misc/glosbib.cxx  |   21 +++++-------
 sw/source/ui/misc/glosdoc.cxx  |   54 +++++++++++++++---------------
 sw/source/ui/misc/glossary.cxx |   69 +++++++++++++++++++--------------------
 5 files changed, 101 insertions(+), 110 deletions(-)

diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index 49d2c40..7475039 100644
--- a/sw/source/ui/misc/bookmark.cxx
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -78,33 +78,32 @@ IMPL_LINK( SwInsertBookmarkDlg, ModifyHdl, BookmarkCombo *, pBox )
 
     }
 
-    aOkBtn.Enable(!bSelEntries);  	// neue Textmarke
-    aDeleteBtn.Enable(bSelEntries);	// loeschbar?
+    aOkBtn.Enable(!bSelEntries);  	// new text mark
+    aDeleteBtn.Enable(bSelEntries);	// deletable?
 
     return 0;
 }
 
 /*------------------------------------------------------------------------
-     Beschreibung: Callback zum Loeschen einer Textmarke
+     Description: callback to delete a text mark
  -----------------------------------------------------------------------*/
 IMPL_LINK( SwInsertBookmarkDlg, DeleteHdl, Button *, EMPTYARG )
 {
-    // Textmarken aus der ComboBox entfernen
+    // remove text marks from the ComboBox
 
     for (sal_uInt16 i = aBookmarkBox.GetSelectEntryCount(); i; i-- )
         aBookmarkBox.RemoveEntry(aBookmarkBox.GetSelectEntryPos(i - 1));
 
     aBookmarkBox.SetText(aEmptyStr);
-    aDeleteBtn.Enable(sal_False);	// keine weiteren Eintraege vorhanden
+    aDeleteBtn.Enable(sal_False);	// no further entries there
 
-    aOkBtn.Enable();			// Im OK Handler wird geloescht
+    aOkBtn.Enable();			// the OK handler deletes
     return 0;
 }
 
 /*------------------------------------------------------------------------
-     Beschreibung: Callback fuer OKButton. Fuegt eine neue Textmarke
-     an die akt. Position ein. Geloeschte Textmarken werden auch am Modell
-     entfernt.
+     Description: callback for OKButton. Inserts a new text mark to the
+     current position. Deleted text marks are also deleted in the model.
  -----------------------------------------------------------------------*/
 void SwInsertBookmarkDlg::Apply()
 {
@@ -120,7 +119,7 @@ void SwInsertBookmarkDlg::Apply()
         aReq.Done();
     }
 
-    // Textmarke einfuegen
+    // insert text mark
     sal_uInt16		nLen = aBookmarkBox.GetText().Len();
     SwBoxEntry	aTmpEntry(aBookmarkBox.GetText(), 0 );
 
@@ -140,7 +139,7 @@ void SwInsertBookmarkDlg::Apply()
 }
 
 /*------------------------------------------------------------------------
-     Beschreibung: CTOR
+     Description: CTOR
  -----------------------------------------------------------------------*/
 SwInsertBookmarkDlg::SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rS, SfxRequest& rRequest ) :
 
@@ -159,7 +158,7 @@ SwInsertBookmarkDlg::SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rS, SfxRe
 
     aDeleteBtn.SetClickHdl(LINK(this, SwInsertBookmarkDlg, DeleteHdl));
 
-    // Combobox mit vorhandenen Bookmarks fuellen
+    // fill Combobox with existing bookmarks
     IDocumentMarkAccess* const pMarkAccess = rSh.getIDocumentMarkAccess();
     sal_uInt16 nId = 0;
     for( IDocumentMarkAccess::const_iterator_t ppBookmark = pMarkAccess->getBookmarksBegin();
@@ -225,7 +224,7 @@ sal_uInt16 BookmarkCombo::GetSelectEntryCount() const
 }
 
 /*------------------------------------------------------------------------
-     Beschreibung: Position in der Listbox (der ComboBox)
+     Description: position inside of the listbox (the ComboBox)
  -----------------------------------------------------------------------*/
 sal_uInt16 BookmarkCombo::GetSelectEntryPos( sal_uInt16 nSelIndex ) const
 {
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
index 5226749..6eccde9 100644
--- a/sw/source/ui/misc/docfnote.cxx
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -184,7 +184,7 @@ void SwEndNoteOptionPage::Reset( const SfxItemSet& )
     else
     {
         const SwFtnInfo &rInf = pSh->GetFtnInfo();
-        // Position (Seite, Kapitel) setzen
+        // set position (page, chapter)
         if ( rInf.ePos == FTNPOS_PAGE )
         {
             aPosPageBox.Check();
@@ -198,16 +198,16 @@ void SwEndNoteOptionPage::Reset( const SfxItemSet& )
             aNumCountBox.RemoveEntry(aNumChapter);
             bPosDoc = sal_True;
         }
-            // Verweistexte
+            // reference tests
         aContEdit.SetText(rInf.aQuoVadis);
         aContFromEdit.SetText(rInf.aErgoSum);
 
-            // gesammelt wo
+            // collected
         SelectNumbering(rInf.eNum);
     }
 
-        // Numerierung
-        // Art
+        // numbering
+        // art
     aNumViewBox.SelectNumberingType( pInf->aFmt.GetNumberingType());
     aOffsetFld.SetValue(pInf->nFtnOffset + 1);
     aPrefixED.SetText(pInf->GetPrefix());
@@ -222,8 +222,8 @@ void SwEndNoteOptionPage::Reset( const SfxItemSet& )
     aFtnCharAnchorTemplBox.SelectEntry( pCharFmt->GetName() );
     aFtnCharAnchorTemplBox.SaveValue();
 
-        // Vorlagen - Sonderbereiche
-        // Absatz
+        // styles   special regions
+        // paragraph
     SfxStyleSheetBasePool* pStyleSheetPool = pSh->GetView().GetDocShell()->GetStyleSheetPool();
     pStyleSheetPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, SWSTYLEBIT_EXTRA);
     SfxStyleSheetBase *pStyle = pStyleSheetPool->First();
@@ -255,7 +255,7 @@ void SwEndNoteOptionPage::Reset( const SfxItemSet& )
         }
     }
 
-        // Seite
+        // page
     for( i = RES_POOLPAGE_BEGIN; i < RES_POOLPAGE_END; ++i )
         aPageTemplBox.InsertEntry(SwStyleNameMapper::GetUIName( i, aEmptyStr ));
 
@@ -281,10 +281,9 @@ SfxTabPage *SwEndNoteOptionPage::Create( Window *pParent, const SfxItemSet &rSet
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	Unterschiedliche Arten der Numerierung; da die Listbox
-                unterschiedlich viele Eintraege hat, hier Funktionen
-                fuer das Setzen und Erfragen der gemeinten Art
-                der Numerierung.
+ Description:  Different kinds of numbering; because the Listbox has
+               varying numbers of entries, here are functions to
+               set and query the intended kind of numbering.
 ------------------------------------------------------------------------*/
 void SwEndNoteOptionPage::SelectNumbering(int eNum)
 {
@@ -320,7 +319,7 @@ int SwEndNoteOptionPage::GetNumbering() const
 void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell )
 {
     pSh = &rShell;
-    // Zeichenvorlagen sammeln
+    // collect character templates
     aFtnCharTextTemplBox.Clear();
     aFtnCharAnchorTemplBox.Clear();
     ::FillCharStyleListBox(aFtnCharTextTemplBox,
@@ -331,10 +330,8 @@ void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell )
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	Handler hinter dem Button fuer Sammeln der Fussnote
-                auf der Seite.
-                In diesem Fall koennen alle Numerierungsarten verwendet
-                werden.
+ Description:  Handler behind the button to collect the footnote at the
+               page. In this case all kinds of numbering can be used.
 ------------------------------------------------------------------------*/
 
 
@@ -368,10 +365,9 @@ IMPL_LINK( SwEndNoteOptionPage, NumCountHdl, ListBox*, EMPTYARG )
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	Handler hinter dem Button fuer Sammeln der Fussnote
-                am Kapitel oder Dokumentende.
-                In diesem Fall kann keine seitenweise Numerierung verwendet
-                werden.
+ Description:  Handler behind the button to collect the footnote at the
+               chapter or end of the document. In this case no pagewise
+               numbering can be used.
 ------------------------------------------------------------------------*/
 
 
@@ -428,7 +424,7 @@ sal_Bool SwEndNoteOptionPage::FillItemSet( SfxItemSet & )
     pInf->SetAnchorCharFmt( lcl_GetCharFormat( pSh,
                         aFtnCharAnchorTemplBox.GetSelectEntry() ) );
 
-    // Absatzvorlage
+    // paragraph template
     sal_uInt16 nPos = aParaTemplBox.GetSelectEntryPos();
     if(LISTBOX_ENTRY_NOTFOUND != nPos)
     {
@@ -438,7 +434,7 @@ sal_Bool SwEndNoteOptionPage::FillItemSet( SfxItemSet & )
         pInf->SetFtnTxtColl(*pColl);
     }
 
-    // Seitenvorlage
+    // page template
     pInf->ChgPageDesc( pSh->FindPageDescByName(
                                 aPageTemplBox.GetSelectEntry(), sal_True ) );
 
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index 7ebec76..52dfd5e 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -180,8 +180,7 @@ void SwGlossaryGroupDlg::Apply()
             const String sDelGroup = pDelEntry->GetToken(0, '\t');
             if( sDelGroup == aActGroup )
             {
-                //soll die aktuelle Gruppe geloescht werden, muss die akt. Gruppe
-                //umgesetzt werden
+                //when the current group is deleted, the current group has to be relocated
                 if(aGroupTLB.GetEntryCount())
                 {
                     SvLBoxEntry* pFirst = aGroupTLB.First();
@@ -202,7 +201,7 @@ void SwGlossaryGroupDlg::Apply()
         }
 
     }
-    //erst umbenennen, falls es schon eins gab
+    //don't rename before there was one
     if(pRenamedArr && pRenamedArr->Count())
     {
         sal_uInt16 nCount = pRenamedArr->Count();
@@ -295,8 +294,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton  )
     }
     GlosBibUserData* pUserData = (GlosBibUserData*)pEntry->GetUserData();
     String sEntry(pUserData->sGroupName);
-    // befindet sich der zu loeschende Name schon unter den
-    // den neuen - dann weg damit
+    // if the name to be deleted is among the new ones - get rid of it
     sal_Bool bDelete = sal_True;
     if(pInsertedArr && pInsertedArr->Count())
     {
@@ -313,7 +311,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton  )
 
         }
     }
-    // moeglicherweise sollte es schon umbenannt werden?
+    // it should probably be renamed?
     if(bDelete)
     {
         if(pRenamedArr && pRenamedArr->Count())
@@ -364,8 +362,7 @@ IMPL_LINK( SwGlossaryGroupDlg, RenameHdl, Button *, EMPTYARG )
     sNewName += String::CreateFromInt32(aPathLB.GetSelectEntryPos());
     OSL_ENSURE(!pGlosHdl->FindGroupName(sNewName), "group already available!");
 
-    // befindet sich der umzubenennende Name unter den
-    // den neuen - dann austauschen
+    // if the name to be renamed is among the new ones - replace
     sal_Bool bDone = sal_False;
     if(pInsertedArr && pInsertedArr->Count())
     {
@@ -426,7 +423,7 @@ IMPL_LINK( SwGlossaryGroupDlg, ModifyHdl, Edit*, EMPTYARG )
 
 
         nPos = aGroupTLB.GetEntryPos(sEntry, 0);
-        //ist es nicht case sensitive muss man selbst suchen
+        //if it's not case sensitive you have to search for yourself
         if( 0xffffffff == nPos)
         {
             const ::utl::TransliterationWrapper& rSCmp = GetAppCmpStrIgnore();
@@ -468,9 +465,9 @@ sal_Bool SwGlossaryGroupDlg::IsDeleteAllowed(const String &rGroup)
 {
     sal_Bool bDel = (!pGlosHdl->IsReadOnly(&rGroup));
 
-    // OM: befindet sich der Name unter den den neuen Bereichsnamen,
-    // dann ist er auch loeschbar! Bei noch nicht existenten Bereichsnamen
-    // liefert ReadOnly naemlich sal_True.
+    // OM: if the name is among the new region name, it is deletable
+    // as well! Because for non existing region names ReadOnly issues
+    // sal_True.
 
     if(pInsertedArr && pInsertedArr->Count())
     {
diff --git a/sw/source/ui/misc/glosdoc.cxx b/sw/source/ui/misc/glosdoc.cxx
index d06234d..aec1c15 100644
--- a/sw/source/ui/misc/glosdoc.cxx
+++ b/sw/source/ui/misc/glosdoc.cxx
@@ -105,7 +105,7 @@ String lcl_CheckFileName( const String& rNewFilePath,
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Liefert den Namen der Default-Gruppe
+    Description: supplies the default group's name
 ------------------------------------------------------------------------*/
 String	SwGlossaries::GetDefName()
 {
@@ -114,7 +114,7 @@ String	SwGlossaries::GetDefName()
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Liefert die Anzahl der Textbausteingruppen
+    Description: supplies the number of text block groups
 ------------------------------------------------------------------------*/
 sal_uInt16 SwGlossaries::GetGroupCnt()
 {
@@ -122,12 +122,12 @@ sal_uInt16 SwGlossaries::GetGroupCnt()
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Liefert den Gruppennamen
+    Description: supplies the group's name
 ------------------------------------------------------------------------*/
 sal_Bool SwGlossaries::FindGroupName(String & rGroup)
 {
-    //	enthaelt der Gruppenname keinen Pfad, kann hier ein passender
-    // Gruppeneintrag gesucht werden;
+    // if the group name doesn't contain a path, a suitable group entry 
+    // can the searched for here;
     sal_uInt16 nCount = GetGroupCnt();
     sal_uInt16 i;
     for(i= 0; i < nCount; i++)
@@ -139,8 +139,8 @@ sal_Bool SwGlossaries::FindGroupName(String & rGroup)
             return sal_True;
         }
     }
-    //man darf zweimal suchen, denn bei mehreren Verzeichnissen koennte
-    //der caseinsensitive Name mehrfach auftreten
+    // you can search two times because for more directories the case sensitive 
+    // name could occur multiple times
     const ::utl::TransliterationWrapper& rSCmp = GetAppCmpStrIgnore();
     for(i = 0; i < nCount; i++)
     {
@@ -179,12 +179,12 @@ String	SwGlossaries::GetGroupTitle( const String& rGroupName )
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Liefert das Textbaustein-Dokument der Gruppe rName
+    Description: supplies the group rName's text block document
 ------------------------------------------------------------------------*/
 SwTextBlocks* SwGlossaries::GetGroupDoc(const String &rName,
                                         sal_Bool bCreate) const
 {
-        // gfs. in die Liste der Textbausteine eintragen
+        // insert to the list of text blocks if applicable
     if(bCreate && m_pGlosArr)
     {
         const String aName(rName);
@@ -198,7 +198,7 @@ SwTextBlocks* SwGlossaries::GetGroupDoc(const String &rName,
                 break;
         }
         if(i == nCount)
-        {	// Baustein nicht in der Liste
+        {	// block not in the list
             String *pTmp = new String(aName);
             m_pGlosArr->Insert(pTmp, m_pGlosArr->Count());
         }
@@ -207,16 +207,16 @@ SwTextBlocks* SwGlossaries::GetGroupDoc(const String &rName,
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	Loeschen Textblock
+ Description:	delete a text block
 ------------------------------------------------------------------------*/
 void SwGlossaries::PutGroupDoc(SwTextBlocks *pBlock) {
     delete pBlock;
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung:	Erzeugt ein neues Dokument mit dem Gruppenname
-                    Wird temp. auch als File angelegt, damit die
-                    Gruppen auch spaeter (ohne Zugriff) vorhanden sind.
+    Description:   Creates a new document with the group name. temporarly
+                   also created as file so that groups remain there later
+                   (without access).
 ------------------------------------------------------------------------*/
 sal_Bool SwGlossaries::NewGroupDoc(String& rGroupName, const String& rTitle)
 {
@@ -300,7 +300,7 @@ sal_Bool	SwGlossaries::RenameGroupDoc(
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Loescht eine Textbausteingruppe
+    Description: Deletes a text block group
 ------------------------------------------------------------------------*/
 sal_Bool SwGlossaries::DelGroupDoc(const String &rName)
 {
@@ -316,9 +316,9 @@ sal_Bool SwGlossaries::DelGroupDoc(const String &rName)
     aTmp += SwGlossaries::GetExtension();
     sFileURL += INET_PATH_TOKEN;
     sFileURL += aTmp;
-        // Auch, wenn das File nicht existiert, muss es aus der Liste
-        // der Textbausteinbereiche entfernt werden
-    // Kein && wegen CFfront
+        // Even if the file doesn't exist it hast to be deleted from 
+        // the list of text block regions
+    // no && because of CFfront
     sal_Bool bRemoved = SWUnoHelper::UCB_DeleteFile( sFileURL );
     OSL_ENSURE(bRemoved, "file has not been removed");
     RemoveFileFromList( aName );
@@ -326,7 +326,7 @@ sal_Bool SwGlossaries::DelGroupDoc(const String &rName)
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: DTOR
+    Description: DTOR
 ------------------------------------------------------------------------*/
 SwGlossaries::~SwGlossaries()
 {
@@ -351,7 +351,7 @@ SwGlossaries::~SwGlossaries()
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Bausteindokument einlesen
+    Description: read a block document
 ------------------------------------------------------------------------*/
 SwTextBlocks* SwGlossaries::GetGlosDoc( const String &rName, sal_Bool bCreate ) const
 {
@@ -388,7 +388,7 @@ SwTextBlocks* SwGlossaries::GetGlosDoc( const String &rName, sal_Bool bCreate )
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Zugriff auf die Liste der Name; diese wird gfs. eingelesen
+    Description: access to the list of names; read in if applicable
 ------------------------------------------------------------------------*/
 SvStrings* SwGlossaries::GetNameList()
 {
@@ -417,7 +417,7 @@ SvStrings* SwGlossaries::GetNameList()
         }
         if(!m_pGlosArr->Count())
         {
-            // Der Standard-Baustein steht im ersten Teil des Pfades
+            // the standard block is inside of the path's first part
             String *pTmp = new String( SwGlossaries::GetDefName() );
             (*pTmp) += GLOS_DELIM;
             (*pTmp) += '0';
@@ -428,7 +428,7 @@ SvStrings* SwGlossaries::GetNameList()
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: CTOR
+    Description: CTOR
 ------------------------------------------------------------------------*/
 SwGlossaries::SwGlossaries() :
     m_pPathArr(0),
@@ -439,11 +439,11 @@ SwGlossaries::SwGlossaries() :
 }
 
 /*------------------------------------------------------------------------
-    Beschreibung: Neuen Pfad einstellen und internes Array neu aufbauen
+    Description: set new path and recreate internal array
 ------------------------------------------------------------------------*/
 
 /* --------------------------------------------------
-*	#61050# Doppelte Pfade fuehren zu Verwirrung - als raus damit
+*	#61050# double paths cause irritation - get rid of it
  * --------------------------------------------------*/
 sal_Bool lcl_FindSameEntry(const SvStrings& rDirArr, const String& rEntryURL)
 {
@@ -499,7 +499,7 @@ void SwGlossaries::UpdateGlosPath(sal_Bool bFull)
             (m_sErrPath.Len() && (bPathChanged || m_sOldErrPath != m_sErrPath)) )
         {
             m_sOldErrPath = m_sErrPath;
-            // Falscher Pfad, d.h. AutoText-Verzeichnis existiert nicht
+            // wrong path, that means AutoText directory doesn't exist
 
             ErrorHandler::HandleError( *new StringErrorInfo(
                                     ERR_AUTOPATH_ERROR, m_sErrPath,
@@ -597,7 +597,7 @@ void SwGlossaries::RemoveFileFromList( const String& rGroup )
 String SwGlossaries::GetCompleteGroupName( const rtl::OUString& GroupName )
 {
     sal_uInt16 nCount = GetGroupCnt();
-    //wenn der Gruppenname intern erzeugt wurde, dann steht auch hier der Pfad drin
+    // when the group name was created internally the path is here as well
     String sGroup(GroupName);
     String sGroupName(sGroup.GetToken(0, GLOS_DELIM));
     String sPath = sGroup.GetToken(1, GLOS_DELIM);
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index 4aa38a8..89d8dd8 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -68,7 +68,7 @@
 #include <glossary.hxx>
 #include <gloshdl.hxx>
 #include <glosbib.hxx>
-#include <initui.hxx>					// fuer ::GetGlossaries()
+#include <initui.hxx>					// for ::GetGlossaries()
 #include <glosdoc.hxx>
 #include <macassgn.hxx>
 #include <swevent.hxx>
@@ -134,7 +134,7 @@ struct GroupUserData
 };
 
 /*------------------------------------------------------------------------
- Beschreibung:	Dialog fuer neuen Bausteinnamen
+ Description:	dialog for new block name
 ------------------------------------------------------------------------*/
 class SwNewGlosNameDlg : public ModalDialog
 {
@@ -192,7 +192,7 @@ SwNewGlosNameDlg::SwNewGlosNameDlg(Window* pParent,
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	aktuell eingestellte Gruppe erfragen / setzen
+ Description:	query / set currently set group
 ------------------------------------------------------------------------*/
 String SwGlossaryDlg::GetCurrGroup()
 {
@@ -249,7 +249,7 @@ SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame,
 {
     SvtLinguConfig aLocalLinguConfig;
 
-    // Static-Pointer initialisieren
+    // initialise static-pointer
     if( !::GetCurrGlosGroup() )
         ::SetCurrGlosGroup(new String);//(SwGlossaries::GetDefName());
 
@@ -284,7 +284,7 @@ SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame,
     aCategoryBox.SetHelpId(HID_MD_GLOS_CATEGORY);
     aCategoryBox.SetStyle(aCategoryBox.GetStyle()|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL|WB_VSCROLL|WB_CLIPCHILDREN|WB_SORT);
     aCategoryBox.GetModel()->SetSortMode(SortAscending);
-    aCategoryBox.SetHighlightRange();	// ueber volle Breite selektieren
+    aCategoryBox.SetHighlightRange();	// select over full width
     aCategoryBox.SetNodeDefaultImages( );
     aCategoryBox.SetAccessibleName(SW_RES(STR_ACCESS_SW_CATEGORY));
     aCategoryBox.SetAccessibleRelationLabeledBy(&aInsertTipCB);
@@ -304,7 +304,7 @@ SwGlossaryDlg::~SwGlossaryDlg()
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	Auswahl neue Gruppe
+ Description:	select new group
 ------------------------------------------------------------------------*/
 IMPL_LINK( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox )
 {
@@ -318,7 +318,7 @@ IMPL_LINK( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox )
     (*pGlosGroup) += GLOS_DELIM;
     (*pGlosGroup) += String::CreateFromInt32(pGroupData->nPathIdx);
     pGlossaryHdl->SetCurGroup(*pGlosGroup);
-    // Aktuellen Textbaustein setzen
+    // set current text block
     bReadOnly = pGlossaryHdl->IsReadOnly();
     EnableShortName( !bReadOnly );
     aEditBtn.Enable(!bReadOnly);
@@ -334,13 +334,13 @@ IMPL_LINK( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox )
     }
     else
         ShowAutoText(aEmptyStr, aEmptyStr);
-    //Controls aktualisieren
+    // update controls
     NameModify(&aShortNameEdit);
     if( SfxRequest::HasMacroRecorder( pSh->GetView().GetViewFrame() ) )
     {
         SfxRequest aReq( pSh->GetView().GetViewFrame(), FN_SET_ACT_GLOSSARY );
         String sTemp(*::GetCurrGlosGroup());
-        // der nullte Pfad wird nicht aufgezeichnet!
+        // the zeroth path is not being recorded!
         if('0' == sTemp.GetToken(1, GLOS_DELIM).GetChar(0))
             sTemp = sTemp.GetToken(0, GLOS_DELIM);
         aReq.AppendItem(SfxStringItem(FN_SET_ACT_GLOSSARY, sTemp));
@@ -357,7 +357,7 @@ void SwGlossaryDlg::Apply()
     {
         SfxRequest aReq( pSh->GetView().GetViewFrame(), FN_INSERT_GLOSSARY );
         String sTemp(*::GetCurrGlosGroup());
-        // der nullte Pfad wird nicht aufgezeichnet!
+        // the zeroth path is not being recorded!
         if('0' == sTemp.GetToken(1, GLOS_DELIM).GetChar(0))
             sTemp = sTemp.GetToken(0, GLOS_DELIM);
         aReq.AppendItem(SfxStringItem(FN_INSERT_GLOSSARY, sTemp));
@@ -373,12 +373,12 @@ void SwGlossaryDlg::Apply()
 }
 
 /* --------------------------------------------------
- * existiert der Titel in der ausgewaehlten Gruppe?
+ * does the title exist in the selected group?
  * --------------------------------------------------*/
 SvLBoxEntry* SwGlossaryDlg::DoesBlockExist(const String& rBlock,
                 const String& rShort)
 {
-    //evtl. vorhandenen Eintrag in der TreeListBox suchen
+    // look for possible entry in TreeListBox 
     SvLBoxEntry* pEntry = aCategoryBox.FirstSelected();
     if(pEntry)
     {
@@ -415,8 +415,7 @@ IMPL_LINK( SwGlossaryDlg, NameModify, Edit *, pEdit )
     sal_Bool bNotFound = !DoesBlockExist(aName, sShortSearch);
     if(bNameED)
     {
-            // ist der Text durch einen Klick in die Listbox in das
-            // Edit gekommem?
+            // did the text get in to the Listbbox in the Edit with a click?
         if(bNotFound)
         {
             aShortNameEdit.SetText( lcl_GetValidShortCut( aName ) );
@@ -490,7 +489,7 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn )
         break;
         case FN_GL_DEFINE_TEXT:
             bNoAttr = sal_True;
-            // Kein break!!!
+            // no break!!!
         case FN_GL_DEFINE:
         {
             const String aStr(aNameED.GetText());
@@ -512,13 +511,13 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn )
                 pChild->SetUserData(new String(aShortName));
                 aNameED.SetText(aStr);
                 aShortNameEdit.SetText(aShortName);
-                NameModify(&aNameED);		// fuer Schalten der Buttons
+                NameModify(&aNameED);		// for toggling the buttons
 
                 if( SfxRequest::HasMacroRecorder( pSh->GetView().GetViewFrame() ) )
                 {
                     SfxRequest aReq(pSh->GetView().GetViewFrame(), FN_NEW_GLOSSARY);
                     String sTemp(*::GetCurrGlosGroup());
-                    // der nullte Pfad wird nicht aufgezeichnet!
+                    // the zeroth path is not being recorded!
                     if('0' == sTemp.GetToken(1, GLOS_DELIM).GetChar(0))
                         sTemp = sTemp.GetToken(0, GLOS_DELIM);
                     aReq.AppendItem(SfxStringItem(FN_NEW_GLOSSARY, sTemp));
@@ -659,7 +658,7 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn )
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung:	Dialog Verwaltung Bereiche
+     Description:	dialog manage regions
  --------------------------------------------------------------------*/
 IMPL_LINK( SwGlossaryDlg, BibHdl, Button *, EMPTYARG )
 {
@@ -736,13 +735,13 @@ IMPL_LINK( SwGlossaryDlg, BibHdl, Button *, EMPTYARG )
 }
 
 /*------------------------------------------------------------------------
- Beschreibung:	Initialisierung; aus Ctor und nach Bearbeiten Bereiche
+ Description:	initialisation; from Ctor and after editing regions
 ------------------------------------------------------------------------*/
 void SwGlossaryDlg::Init()
 {
     aCategoryBox.SetUpdateMode( sal_False );
     aCategoryBox.Clear();
-    // Textbausteinbereiche anzeigen
+    // display text block regions
     const sal_uInt16 nCnt = pGlossaryHdl->GetGroupCnt();
     SvLBoxEntry* pSelEntry = 0;
     const String sSelStr(::GetCurrGlosGroup()->GetToken(0, GLOS_DELIM));
@@ -772,7 +771,7 @@ void SwGlossaryDlg::Init()
         if(sSelStr == pData->sGroupName && nSelPath == nPath)
             pSelEntry = pEntry;
 
-        //Eintraege fuer die Gruppen auffuellen
+        // fill entries for the groups
         {
             pGlossaryHdl->SetCurGroup(sGroupName, sal_False, sal_True);
             const sal_uInt16 nCount = pGlossaryHdl->GetGlossaryCnt();
@@ -785,7 +784,7 @@ void SwGlossaryDlg::Init()
             }
         }
     }
-        // Aktuelle Gruppe setzen und Textbausteine anzeigen
+        // set current group and display text blocks
     if(!pSelEntry)
     {
         //find a non-readonly group
@@ -834,7 +833,7 @@ void SwGlossaryDlg::Init()
 
 IMPL_LINK_INLINE_START( SwGlossaryDlg, EditHdl, Button *, EMPTYARG )
 {
-//EndDialog darf nicht im MenuHdl aufgerufen werden
+// EndDialog must not be called in MenuHdl
     if(aEditBtn.GetCurItemId() == FN_GL_EDIT )
     {
         SwTextBlocks *pGroup = ::GetGlossaries()->GetGroupDoc (  GetCurrGrpName () );
@@ -848,7 +847,7 @@ IMPL_LINK_INLINE_START( SwGlossaryDlg, EditHdl, Button *, EMPTYARG )
 IMPL_LINK_INLINE_END( SwGlossaryDlg, EditHdl, Button *, EMPTYARG )
 
 /*------------------------------------------------------------------------
- Beschreibung:	KeyInput fuer ShortName - Edits ohne Spaces
+ Description:	KeyInput for ShortName - Edits without Spaces
 ------------------------------------------------------------------------*/
 IMPL_LINK( SwNewGlosNameDlg, Modify, Edit *, pBox )
 {
@@ -895,7 +894,7 @@ IMPL_LINK( SwGlossaryDlg, CheckBoxHdl, CheckBox *, pBox )
 }
 
 /* --------------------------------------------------
- * TreeListBox fuer Gruppen und Bausteine
+ * TreeListBox for groups and blocks
  * --------------------------------------------------*/
 SwGlTreeListBox::SwGlTreeListBox(Window* pParent, const ResId& rResId) :
     SvTreeListBox(pParent, rResId),
@@ -924,7 +923,7 @@ void SwGlTreeListBox::RequestHelp( const HelpEvent& rHEvt )
 {
     Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
     SvLBoxEntry* pEntry = GetEntry( aPos );
-    // Hilfe gibt es nur fuer die Gruppennamen
+    // there's only help for groups' names
     if(pEntry)
     {
         SvLBoxTab* pTab;
@@ -1003,7 +1002,7 @@ DragDropMode SwGlTreeListBox::NotifyStartDrag(
 
 sal_Bool    SwGlTreeListBox::NotifyAcceptDrop( SvLBoxEntry* pEntry)
 {
-    // TODO: Readonly - Ueberpruefung fehlt noch!
+    // TODO: Readonly - check still missing!
     SvLBoxEntry* pSrcParent = GetParent(pEntry) ? GetParent(pEntry) : pEntry;
     SvLBoxEntry* pDestParent =
         GetParent(pDragEntry ) ? GetParent(pDragEntry ) : pDragEntry ;
@@ -1018,12 +1017,12 @@ sal_Bool  SwGlTreeListBox::NotifyMoving(   SvLBoxEntry*  pTarget,
                                 )
 {
     pDragEntry = 0;
-    if(!pTarget) //An den Anfang verschieben
+    if(!pTarget) // move to the beginning
     {
         pTarget = GetEntry(0);
     }
-    // 1. wird in verschiedene Gruppen verschoben?
-    // 2. darf in beiden Gruppen geschrieben werden?
+    // 1. move to different groups?
+    // 2. allowed to write in both groups?
     SvLBoxEntry* pSrcParent = GetParent(pEntry);
     SvLBoxEntry* pDestParent =
         GetParent(pTarget) ? GetParent(pTarget) : pTarget;
@@ -1054,7 +1053,7 @@ sal_Bool  SwGlTreeListBox::NotifyMoving(   SvLBoxEntry*  pTarget,
             GetModel()->Remove(pEntry);
         }
     }
-    return sal_False; //sonst wird der Eintrag automatisch vorgenommen
+    return sal_False; // otherwise the entry is being set automatically
 }
 
 sal_Bool  SwGlTreeListBox::NotifyCopying(   SvLBoxEntry*  pTarget,
@@ -1064,9 +1063,9 @@ sal_Bool  SwGlTreeListBox::NotifyCopying(   SvLBoxEntry*  pTarget,
                                 )
 {
     pDragEntry = 0;
-    // 1. wird in verschiedene Gruppen verschoben?
-    // 2. darf in beiden Gruppen geschrieben werden?
-    if(!pTarget) //An den Anfang verschieben
+    // 1. move in different groups?
+    // 2. allowed to write to both groups?
+    if(!pTarget) // move to the beginning
     {
         pTarget = GetEntry(0);
     }
@@ -1101,7 +1100,7 @@ sal_Bool  SwGlTreeListBox::NotifyCopying(   SvLBoxEntry*  pTarget,
             pChild->SetUserData(new String(sShortName));
         }
     }
-    return sal_False; //sonst wird der Eintrag automatisch vorgenommen
+    return sal_False; // otherwise the entry is being set automatically
 }
 
 String SwGlossaryDlg::GetCurrGrpName() const
-- 
1.7.1



More information about the LibreOffice mailing list