[Libreoffice] [PATCH 1/5] Translate german comments
Martin Kepplinger
martinkepplinger at eml.cc
Tue Mar 8 18:08:37 PST 2011
This translates german code comments in writer/sw/source/ui/fldui to english.
This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
sw/source/ui/fldui/DropDownFieldDialog.cxx | 2 +-
sw/source/ui/fldui/changedb.cxx | 10 ++++----
sw/source/ui/fldui/changedb.hrc | 4 +-
sw/source/ui/fldui/flddb.cxx | 18 +++++++-------
sw/source/ui/fldui/flddinf.cxx | 20 ++++++++--------
sw/source/ui/fldui/flddok.cxx | 32 ++++++++++++++--------------
6 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.cxx b/sw/source/ui/fldui/DropDownFieldDialog.cxx
index 3a98567..f83d769 100644
--- a/sw/source/ui/fldui/DropDownFieldDialog.cxx
+++ b/sw/source/ui/fldui/DropDownFieldDialog.cxx
@@ -47,7 +47,7 @@ using namespace ::com::sun::star;
/*--------------------------------------------------------------------
- Beschreibung: Feldeinfuegen bearbeiten
+ Description: edit insert-field
--------------------------------------------------------------------*/
sw::DropDownFieldDialog::DropDownFieldDialog( Window *pParent, SwWrtShell &rS,
SwField* pField, BOOL bNextButton ) :
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
index a6d2bf3..76476e0 100644
--- a/sw/source/ui/fldui/changedb.cxx
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -68,7 +68,7 @@ using namespace ::com::sun::star::lang;
/*--------------------------------------------------------------------
- Beschreibung: Feldeinfuegen bearbeiten
+ Description: edit insert-field
--------------------------------------------------------------------*/
SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) :
SvxStandardDialog(&rVw.GetViewFrame()->GetWindow(), SW_RES(DLG_CHANGE_DB)),
@@ -113,7 +113,7 @@ SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) :
}
/*--------------------------------------------------------------------
- Beschreibung: Datenbank-Listboxen initialisieren
+ Description: initialise database listboxes
--------------------------------------------------------------------*/
void SwChangeDBDlg::FillDBPopup()
{
@@ -203,7 +203,7 @@ SvLBoxEntry* SwChangeDBDlg::Insert(const String& rDBName)
}
/*--------------------------------------------------------------------
- Beschreibung: Dialog zerstoeren
+ Description: destroy dialog
--------------------------------------------------------------------*/
SwChangeDBDlg::~SwChangeDBDlg()
{
@@ -211,7 +211,7 @@ SwChangeDBDlg::~SwChangeDBDlg()
}
/*--------------------------------------------------------------------
- Beschreibung: Schliessen
+ Description: close
--------------------------------------------------------------------*/
void SwChangeDBDlg::Apply()
{
@@ -282,7 +282,7 @@ IMPL_LINK( SwChangeDBDlg, TreeSelectHdl, SvTreeListBox *, EMPTYARG )
}
/*--------------------------------------------------------------------
- Beschreibung: Datenbankname fuer Anzeige wandeln
+ Description: convert database name for display
--------------------------------------------------------------------*/
void SwChangeDBDlg::ShowDBName(const SwDBData& rDBData)
{
diff --git a/sw/source/ui/fldui/changedb.hrc b/sw/source/ui/fldui/changedb.hrc
index e121a97..c37089a 100644
--- a/sw/source/ui/fldui/changedb.hrc
+++ b/sw/source/ui/fldui/changedb.hrc
@@ -28,7 +28,7 @@
#ifndef _CHANGEDB_HRC
#define _CHANGEDB_HRC
-// Elemente -----------------------------------------------------------------
+// elements -----------------------------------------------------------------
#define FT_DESC 1
#define FT_DOCDBTEXT 2
@@ -46,7 +46,7 @@
/*--------------------------------------------------------------------
- Beschreibung: Bitmaps
+ Description: Bitmaps
--------------------------------------------------------------------*/
#define IMG_COLLAPSE 18002 /*RID_SVXIMG_COLLAPSEDNODE*/
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
index ae04256..6a044ca 100644
--- a/sw/source/ui/fldui/flddb.cxx
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -86,7 +86,7 @@ SwFldDBPage::~SwFldDBPage()
}
/*--------------------------------------------------------------------
- Beschreibung: TabPage initialisieren
+ Description: initialise TabPage
--------------------------------------------------------------------*/
void SwFldDBPage::Reset(const SfxItemSet&)
{
@@ -102,7 +102,7 @@ void SwFldDBPage::Reset(const SfxItemSet&)
if (!IsFldEdit())
{
- // TypeListBox initialisieren
+ // initialise TypeListBox
const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
for(i = rRg.nStart; i < rRg.nEnd; ++i)
@@ -119,7 +119,7 @@ void SwFldDBPage::Reset(const SfxItemSet&)
aTypeLB.SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
}
- // alte Pos selektieren
+ // select old Pos
if (GetTypeSel() != LISTBOX_ENTRY_NOTFOUND)
aTypeLB.SelectEntryPos(GetTypeSel());
@@ -206,7 +206,7 @@ BOOL SwFldDBPage::FillItemSet(SfxItemSet& )
if (!aData.sDataSource.getLength())
aData = pSh->GetDBData();
- if(aData.sDataSource.getLength()) // Ohne Datenbank kein neuer Feldbefehl
+ if(aData.sDataSource.getLength()) // without database no new field command
{
USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
String aVal(aValueED.GetText());
@@ -273,10 +273,10 @@ USHORT SwFldDBPage::GetGroup()
IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox )
{
- // Alte ListBoxPos sichern
+ // save old ListBoxPos
const USHORT nOld = GetTypeSel();
- // Aktuelle ListBoxPos
+ // current ListBoxPos
SetTypeSel(aTypeLB.GetSelectEntryPos());
if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
@@ -319,7 +319,7 @@ IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox )
aNumFormatLB.Show();
aFormatLB.Hide();
- if (pBox) // Typ wurde vom User geaendert
+ if (pBox) // type was changed by user
aDBFormatRB.Check();
if (IsFldEdit())
@@ -336,7 +336,7 @@ IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox )
case TYP_DBNUMSETFLD:
bSetNo = TRUE;
- // kein break!
+ // no break!
case TYP_DBNEXTSETFLD:
bCond = TRUE;
if (IsFldEdit())
@@ -486,7 +486,7 @@ IMPL_LINK( SwFldDBPage, AddDBHdl, PushButton *, EMPTYARG )
}
/*--------------------------------------------------------------------
- Beschreibung: Modify
+ Description: Modify
--------------------------------------------------------------------*/
IMPL_LINK( SwFldDBPage, ModifyHdl, Edit *, EMPTYARG )
{
diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx
index eb5bc6e..f3f584b 100644
--- a/sw/source/ui/fldui/flddinf.cxx
+++ b/sw/source/ui/fldui/flddinf.cxx
@@ -82,8 +82,8 @@ SwFldDokInfPage::SwFldDokInfPage(Window* pWindow, const SfxItemSet& rCoreSet ) :
aTypeTLB.SetHelpId(HID_FIELD_DINF_TYPE);
aTypeTLB.SetSelectionMode(SINGLE_SELECTION);
aTypeTLB.SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
- // Font nicht setzen, damit der Font des Controls uebernommen wird!
- // Sonst bei falschem Font Bug an OV.
+ // Don't set font, so that the control's font is adobted!
+ // Otherwise at wrong font bug to OV.
aTypeTLB.SetSpaceBetweenEntries(0);
aTypeTLB.SetNodeDefaultImages();
@@ -101,14 +101,14 @@ SwFldDokInfPage::~SwFldDokInfPage()
void SwFldDokInfPage::Reset(const SfxItemSet& )
{
- Init(); // Allgemeine initialisierung
+ Init(); // general initialisation
- // TypeListBox initialisieren
+ // initialise TypeListBox
aTypeTLB.SetUpdateMode(FALSE);
aTypeTLB.Clear();
pSelEntry = 0;
- // SubTypes in der TypeLB anzeigen
+ // display SubTypes in TypeLB
USHORT nTypeId = TYP_DOCINFOFLD;
SvLBoxEntry* pEntry = 0;
@@ -186,7 +186,7 @@ void SwFldDokInfPage::Reset(const SfxItemSet& )
}
}
- // alte Pos selektieren
+ // select old Pos
if (pSelEntry != 0)
{
aTypeTLB.Select(pSelEntry);
@@ -219,10 +219,10 @@ void SwFldDokInfPage::Reset(const SfxItemSet& )
IMPL_LINK( SwFldDokInfPage, TypeHdl, ListBox *, EMPTYARG )
{
- // Alte ListBoxPos sichern
+ // save old ListBoxPos
SvLBoxEntry* pOldEntry = pSelEntry;
- // Aktuelle ListBoxPos
+ // current ListBoxPos
pSelEntry = aTypeTLB.FirstSelected();
if(!pSelEntry)
@@ -377,7 +377,7 @@ IMPL_LINK( SwFldDokInfPage, SubTypeHdl, ListBox *, EMPTYARG )
USHORT SwFldDokInfPage::FillSelectionLB(USHORT nSubType)
{
- // Format-Listbox fuellen
+ // fill Format-Listbox
USHORT nTypeId = TYP_DOCINFOFLD;
EnableInsert(nSubType != USHRT_MAX);
@@ -399,7 +399,7 @@ USHORT SwFldDokInfPage::FillSelectionLB(USHORT nSubType)
if (nSubType < DI_CREATE || nSubType == DI_DOCNO || nSubType == DI_EDIT|| nSubType == DI_CUSTOM )
{
- // Format Box ist fuer Title und Time leer
+ // Format Box is empty for Title and Time
}
else
{
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 6e80ae7..17b67e5 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -93,9 +93,9 @@ SwFldDokPage::~SwFldDokPage()
void SwFldDokPage::Reset(const SfxItemSet& )
{
SavePos(&aTypeLB);
- Init(); // Allgemeine initialisierung
+ Init(); // general initialisation
- // TypeListBox initialisieren
+ // initialise TypeListBox
const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
aTypeLB.SetUpdateMode(FALSE);
@@ -106,7 +106,7 @@ void SwFldDokPage::Reset(const SfxItemSet& )
if (!IsFldEdit())
{
- // Typ-Listbox fuellen
+ // fill Type-Listbox
for(short i = rRg.nStart; i < rRg.nEnd; ++i)
{
nTypeId = GetFldMgr().GetTypeId(i);
@@ -153,7 +153,7 @@ void SwFldDokPage::Reset(const SfxItemSet& )
}
}
- // alte Pos selektieren
+ // select old Pos
RestorePos(&aTypeLB);
aTypeLB.SetUpdateMode(TRUE);
@@ -194,10 +194,10 @@ void SwFldDokPage::Reset(const SfxItemSet& )
IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
{
- // Alte ListBoxPos sichern
+ // save old ListBoxPos
const USHORT nOld = GetTypeSel();
- // Aktuelle ListBoxPos
+ // current ListBoxPos
SetTypeSel(aTypeLB.GetSelectEntryPos());
if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
@@ -212,7 +212,7 @@ IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
{
USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
- // Auswahl-Listbox fuellen
+ // fill Selection-Listbox
aSelectionLB.Clear();
if (nTypeId != USHRT_MAX)
@@ -304,7 +304,7 @@ IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
aSelectionLB.Enable( bEnable );
aSelectionFT.Enable( bEnable );
- // Format-Listbox fuellen
+ // fill Format-Listbox
USHORT nSize = FillFormatLB(nTypeId);
BOOL bValue = FALSE, bLevel = FALSE, bNumFmt = FALSE, bOffset = FALSE;
@@ -320,7 +320,7 @@ IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
nFmtType = NUMBERFORMAT_DATE;
aValueFT.SetText(sDateOffset);
- aDateOffsetED.SetFirst(-31); // Ein Monat
+ aDateOffsetED.SetFirst(-31); // one month
aDateOffsetED.SetLast(31);
if (IsFldEdit())
@@ -332,7 +332,7 @@ IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
nFmtType = NUMBERFORMAT_TIME;
aValueFT.SetText(sTimeOffset);
- aDateOffsetED.SetFirst(-1440); // Ein Tag
+ aDateOffsetED.SetFirst(-1440); // one day
aDateOffsetED.SetLast(1440);
if (IsFldEdit())
@@ -397,11 +397,11 @@ IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
if (aNumFormatLB.GetFormatType() == (NUMBERFORMAT_DATE|NUMBERFORMAT_TIME))
{
- // Format-Typ immer einstellen, da sonst bei kombinierten Datum/Zeitformaten
- // beide Formate gleichzeitig angezeigt werden wuerden
+ // always set Format-Type because otherwise when date/time formats are combined,
+ // both formats would be displayed at the same time
aNumFormatLB.SetFormatType(0);
aNumFormatLB.SetFormatType(nFmtType);
- // Nochmal richtiges Format einstellen
+ // set correct format once again
aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
}
}
@@ -488,7 +488,7 @@ IMPL_LINK( SwFldDokPage, SubTypeHdl, ListBox *, EMPTYARG )
USHORT SwFldDokPage::FillFormatLB(USHORT nTypeId)
{
- // Format-Listbox fuellen
+ // fill Format-Listbox
aFormatLB.Clear();
if (nTypeId == TYP_AUTHORFLD)
@@ -536,7 +536,7 @@ IMPL_LINK( SwFldDokPage, FormatHdl, ListBox *, EMPTYARG )
if (nTypeId == TYP_NEXTPAGEFLD || nTypeId == TYP_PREVPAGEFLD)
{
- // Prev/Next - PageNumFelder Sonderbehandlung:
+ // Prev/Next - PageNumFields special treatment:
USHORT nTmp = (USHORT)(ULONG)aFormatLB.GetEntryData(
aFormatLB.GetSelectEntryPos() );
String sOldTxt( aValueFT.GetText() );
@@ -588,7 +588,7 @@ BOOL SwFldDokPage::FillItemSet(SfxItemSet& )
case TYP_AUTHORFLD:
nFormat = nSubType;
nSubType = 0;
- // kein break!
+ // no break!
case TYP_EXTUSERFLD:
nFormat |= aFixedCB.IsChecked() ? AF_FIXED : 0;
break;
--
1.7.1
More information about the LibreOffice
mailing list