[Libreoffice] [PATCH 2/2] Translate german comments
Martin Kepplinger
martinkepplinger at eml.cc
Sun Mar 6 19:13:07 PST 2011
This translates the remaining german code comments in writer/sw/source/ui/envelp
to english.
This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
sw/source/ui/envelp/envprt.hrc | 6 +++---
sw/source/ui/envelp/label.hrc | 6 +++---
sw/source/ui/envelp/label1.cxx | 4 ++--
sw/source/ui/envelp/labfmt.cxx | 36 ++++++++++++++++++------------------
sw/source/ui/envelp/labfmt.hrc | 6 +++---
sw/source/ui/envelp/labprt.cxx | 2 +-
sw/source/ui/envelp/labprt.hrc | 4 ++--
sw/source/ui/envelp/labprt.hxx | 2 +-
sw/source/ui/envelp/mailmrge.hrc | 2 +-
9 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/sw/source/ui/envelp/envprt.hrc b/sw/source/ui/envelp/envprt.hrc
index 044b0cb..3ee2c10 100644
--- a/sw/source/ui/envelp/envprt.hrc
+++ b/sw/source/ui/envelp/envprt.hrc
@@ -30,7 +30,7 @@
#include "envelp.hrc"
-// Lokale Resourcen *********************************************************
+// local resources *********************************************************
#define BOX_ALIGN 1
#define BTN_TOP 7
@@ -44,7 +44,7 @@
#define BTN_PRTSETUP 15
#define FL_PRINTER 16
-// Globale Resourcen ********************************************************
+// global resources ********************************************************
#define BMP_HOR_LEFT_LOWER (RC_ENVPRT_BEGIN )
#define BMP_HOR_LEFT_UPPER (RC_ENVPRT_BEGIN + 1)
@@ -67,7 +67,7 @@
#define ITM_VER_CNTR (RC_ENVPRT_BEGIN + 16)
#define ITM_VER_RGHT (RC_ENVPRT_BEGIN + 17)
-// Ueberlaufpruefung ********************************************************
+// overflow check ********************************************************
#define ENVPRT_ACT_END ITM_VER_RGHT
diff --git a/sw/source/ui/envelp/label.hrc b/sw/source/ui/envelp/label.hrc
index c74d9fb..02b25f3 100644
--- a/sw/source/ui/envelp/label.hrc
+++ b/sw/source/ui/envelp/label.hrc
@@ -30,7 +30,7 @@
#include "envelp.hrc"
-// Lokale Resourcen *********************************************************
+// local resources *********************************************************
#define TXT_WRITING 1
#define BOX_ADDR 2
@@ -110,11 +110,11 @@
//#define FT_MOBILE 72
#define FT_FAX 73
-// Globale Resourcen ********************************************************
+// global resources ********************************************************
#define STR_DOC_TITLE (RC_LABEL_BEGIN)
#define STR_CUSTOM (RC_LABEL_BEGIN + 1)
-// Ueberlaufpruefung ********************************************************
+// overflow check ********************************************************
#define LABEL_ACT_END STR_CUSTOM
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index bdc0ca1..c035303 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -126,7 +126,7 @@ SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet& rSet,
GetOKButton().SetText(String(SW_RES(STR_BTN_NEW_DOC)));
GetOKButton().SetHelpId(HID_LABEL_INSERT);
- GetOKButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+ GetOKButton().SetHelpText(aEmptyStr); // in order for generated help text to get used
AddTabPage(TP_LAB_LAB, m_bLabel ? sFormat : sMedium ,SwLabPage ::Create, 0, sal_False, 0);
AddTabPage(TP_VISITING_CARDS, SwVisitingCardPage::Create, 0);
@@ -197,7 +197,7 @@ void SwLabDlg::GetLabItem(SwLabItem &rItem)
if (rActItem != rOldItem)
{
- // Wurde schon mal mit (hoffentlich) korrektem Inhalt "geputtet"
+ // Was already "put" with (hopefully) correct content
rItem = rActItem;
}
else
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index acabdaf..fb3ae4d 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -128,7 +128,7 @@ void SwLabPreview::Paint(const Rectangle &)
aPaintFont.SetTransparent(FALSE);
SetFont(aPaintFont);
- // Groesse des darzustellenden Bereichs
+ // size of region to be displayed
long lDispW = ROUND(aItem.lLeft + aItem.lHDist);
long lDispH = ROUND(aItem.lUpper + aItem.lVDist);
if (aItem.nCols == 1)
@@ -140,12 +140,12 @@ void SwLabPreview::Paint(const Rectangle &)
else
lDispH += ROUND(aItem.lVDist / 10);
- // Scale factor Skalierungsfaktor
+ // Scale factor
float fx = (float) lOutWPix23 / Max(1L, lDispW),
fy = (float) lOutHPix23 / Max(1L, lDispH),
f = fx < fy ? fx : fy;
- // Nullpunkt
+ // zero point
long lOutlineW = ROUND(f * lDispW);
long lOutlineH = ROUND(f * lDispH);
@@ -158,17 +158,17 @@ void SwLabPreview::Paint(const Rectangle &)
long lX3 = ROUND(lX0 + f * (aItem.lLeft + aItem.lHDist ));
long lY3 = ROUND(lY0 + f * (aItem.lUpper + aItem.lVDist ));
- // Umriss zeichnen (Flaeche)
+ // draw outline (area)
DrawRect(Rectangle(Point(lX0, lY0), Size(lOutlineW, lOutlineH)));
- // Umriss zeichnen (Umrandung)
+ // draw outline (border)
SetLineColor(rFieldTextColor);
- DrawLine(Point(lX0, lY0), Point(lX0 + lOutlineW - 1, lY0)); // Oben
- DrawLine(Point(lX0, lY0), Point(lX0, lY0 + lOutlineH - 1)); // Links
+ DrawLine(Point(lX0, lY0), Point(lX0 + lOutlineW - 1, lY0)); // Up
+ DrawLine(Point(lX0, lY0), Point(lX0, lY0 + lOutlineH - 1)); // Left
if (aItem.nCols == 1)
- DrawLine(Point(lX0 + lOutlineW - 1, lY0), Point(lX0 + lOutlineW - 1, lY0 + lOutlineH - 1)); // Rechts
+ DrawLine(Point(lX0 + lOutlineW - 1, lY0), Point(lX0 + lOutlineW - 1, lY0 + lOutlineH - 1)); // Right
if (aItem.nRows == 1)
- DrawLine(Point(lX0, lY0 + lOutlineH - 1), Point(lX0 + lOutlineW - 1, lY0 + lOutlineH - 1)); // Unten
+ DrawLine(Point(lX0, lY0 + lOutlineH - 1), Point(lX0 + lOutlineW - 1, lY0 + lOutlineH - 1)); // Down
// Labels
SetClipRegion (Rectangle(Point(lX0, lY0), Size(lOutlineW, lOutlineH)));
@@ -182,7 +182,7 @@ void SwLabPreview::Paint(const Rectangle &)
ROUND(f * aItem.lHeight))));
SetClipRegion();
- // Beschritung: Rand links
+ // annotation: left border
if (aItem.lLeft)
{
long lX = (lX0 + lX1) / 2;
@@ -191,14 +191,14 @@ void SwLabPreview::Paint(const Rectangle &)
DrawText(Point(lX1 - lLeftWidth, lY0 - 10 - lXHeight), aLeftStr);
}
- // Beschriftung: Rand oben
+ // annotation: upper border
if (aItem.lUpper)
{
DrawArrow(Point(lX0 - 5, lY0), Point(lX0 - 5, lY1), FALSE);
DrawText(Point(lX0 - 10 - lUpperWidth, ROUND(lY0 + f * aItem.lUpper / 2 - lXHeight / 2)), aUpperStr);
}
- // Beschriftung: Breite und Hoehe
+ // annotation: width and height
{
long lX = lX2 - lXWidth / 2 - lHeightWidth / 2;
long lY = lY1 + lXHeight;
@@ -210,7 +210,7 @@ void SwLabPreview::Paint(const Rectangle &)
DrawText(Point(lX - lHeightWidth / 2, lY2 - lXHeight - lXHeight / 2), aHeightStr);
}
- // Beschriftung: Horz. Abstand
+ // annotation: horizontal gap
if (aItem.nCols > 1)
{
long lX = (lX1 + lX3) / 2;
@@ -219,21 +219,21 @@ void SwLabPreview::Paint(const Rectangle &)
DrawText(Point(lX - lHDistWidth / 2, lY0 - 10 - lXHeight), aHDistStr);
}
- // Beschriftung: Vertikaler Abstand
+ // annotation: vertical gap
if (aItem.nRows > 1)
{
DrawArrow(Point(lX0 - 5, lY1), Point(lX0 - 5, lY3), FALSE);
DrawText(Point(lX0 - 10 - lVDistWidth, ROUND(lY1 + f * aItem.lVDist / 2 - lXHeight / 2)), aVDistStr);
}
- // Beschriftung: Spalten
+ // annotation: columns
{
long lY = lY0 + lOutlineH + 4;
DrawArrow(Point(lX0, lY), Point(lX0 + lOutlineW - 1, lY), TRUE);
DrawText(Point((lX0 + lX0 + lOutlineW - 1) / 2 - lColsWidth / 2, lY + 5), aColsStr);
}
- // Beschriftung: Zeilen
+ // annotation: lines
{
long lX = lX0 + lOutlineW + 4;
DrawArrow(Point(lX, lY0), Point(lX, lY0 + lOutlineH - 1), TRUE);
@@ -404,7 +404,7 @@ void SwLabFmtPage::ChangeMinMax()
{
long lMax = 31748; // 56 cm
- // Min und Max
+ // Min and Max
long lLeft = static_cast< long >(GETFLDVAL(aLeftField )),
lUpper = static_cast< long >(GETFLDVAL(aUpperField)),
@@ -431,7 +431,7 @@ void SwLabFmtPage::ChangeMinMax()
aColsField .SetMax((lMax - lLeft ) / Max(1L, lHDist));
aRowsField .SetMax((lMax - lUpper) / Max(1L, lVDist));
- // First und Last
+ // First and Last
aHDistField .SetFirst(aHDistField .GetMin());
aVDistField .SetFirst(aVDistField .GetMin());
diff --git a/sw/source/ui/envelp/labfmt.hrc b/sw/source/ui/envelp/labfmt.hrc
index 399b906..96aafaa 100644
--- a/sw/source/ui/envelp/labfmt.hrc
+++ b/sw/source/ui/envelp/labfmt.hrc
@@ -30,7 +30,7 @@
#include "envelp.hrc"
-// Lokale Resourcen *********************************************************
+// local resources *********************************************************
#define WIN_PREVIEW 1
#define TXT_HDIST 2
@@ -64,7 +64,7 @@
#define PB_HELP 8
#define MB_QUERY 9
-// Globale Resourcen ********************************************************
+// global resources ********************************************************
#define STR_HDIST (RC_LABFMT_BEGIN + 1)
#define STR_VDIST (RC_LABFMT_BEGIN + 2)
@@ -75,7 +75,7 @@
#define STR_COLS (RC_LABFMT_BEGIN + 7)
#define STR_ROWS (RC_LABFMT_BEGIN + 8)
-// Ueberlaufpruefung ********************************************************
+// overflow check ********************************************************
#define LABFMT_ACT_END STR_ROWS
diff --git a/sw/source/ui/envelp/labprt.cxx b/sw/source/ui/envelp/labprt.cxx
index 3e7b756..55b0725 100644
--- a/sw/source/ui/envelp/labprt.cxx
+++ b/sw/source/ui/envelp/labprt.cxx
@@ -180,7 +180,7 @@ void SwLabPrtPage::Reset(const SfxItemSet& )
if (pPrinter)
{
- // Drucker anzeigen
+ // show printer
aPrinterInfo.SetText(pPrinter->GetName());
}
else
diff --git a/sw/source/ui/envelp/labprt.hrc b/sw/source/ui/envelp/labprt.hrc
index 6e3a191..3f7d879 100644
--- a/sw/source/ui/envelp/labprt.hrc
+++ b/sw/source/ui/envelp/labprt.hrc
@@ -30,7 +30,7 @@
#include "envelp.hrc"
-// Lokale Resourcen *********************************************************
+// local resources *********************************************************
#define BTN_PAGE 1
#define BTN_SINGLE 2
@@ -44,7 +44,7 @@
#define FL_DONTKNOW 10
#define CB_SYNCHRON 11
-// Ueberlaufpruefung ********************************************************
+// overflow check ********************************************************
#define LABPRT_ACT_END 0
diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx
index 1dd96b7..7e8b246 100644
--- a/sw/source/ui/envelp/labprt.hxx
+++ b/sw/source/ui/envelp/labprt.hxx
@@ -42,7 +42,7 @@ class SwLabItem;
class SwLabPrtPage : public SfxTabPage
{
- Printer* pPrinter; //Fuer die Schachteinstellug - leider.
+ Printer* pPrinter; // for the shaft setting - unfortunately
RadioButton aPageButton;
RadioButton aSingleButton;
diff --git a/sw/source/ui/envelp/mailmrge.hrc b/sw/source/ui/envelp/mailmrge.hrc
index 5f3ef37..c9a1c2d 100644
--- a/sw/source/ui/envelp/mailmrge.hrc
+++ b/sw/source/ui/envelp/mailmrge.hrc
@@ -30,7 +30,7 @@
#include "envelp.hrc"
-// Elemente -----------------------------------------------------------------
+// elements -----------------------------------------------------------------
#define FL_RECORD 1
#define RB_ALL 2
--
1.7.1
More information about the LibreOffice
mailing list