[PATCH] fdo#39468 translate German comments in vcl

Christian Heller christian.heller63 at gmail.com
Sun Mar 3 15:47:29 PST 2013


-            // Alle Eintraege entfernen, zu denen es einen Entry gibt, der
aber nicht selektiert ist.
+            // remove all entries to which there is an selected entry

sorry, this should have been

+            // remove all entries to which there is an entry, but which is
not selected


On Sun, Mar 3, 2013 at 6:08 PM, Christian M. Heller (via Code Review) <
gerrit at gerrit.libreoffice.org> wrote:

> Hi,
>
> I have submitted a patch for review:
>
>     https://gerrit.libreoffice.org/2534
>
> To pull it, you can do:
>
>     git pull ssh://gerrit.libreoffice.org:29418/corerefs/changes/34/2534/1
>
> fdo#39468 translate German comments in vcl
>
>         modified:   vcl/inc/vcl/fltcall.hxx
>         modified:   vcl/inc/vcl/textdata.hxx
>         modified:   vcl/inc/vcl/texteng.hxx
>         modified:   vcl/source/control/combobox.cxx
>         modified:   vcl/source/control/fixed.cxx
>
> Change-Id: I8af3fe962ba77d7047eac8d7570c5bc572585363
> ---
> M vcl/inc/vcl/fltcall.hxx
> M vcl/inc/vcl/textdata.hxx
> M vcl/inc/vcl/texteng.hxx
> M vcl/source/control/combobox.cxx
> M vcl/source/control/fixed.cxx
> 5 files changed, 31 insertions(+), 30 deletions(-)
>
>
>
> diff --git a/vcl/inc/vcl/fltcall.hxx b/vcl/inc/vcl/fltcall.hxx
> index 91e4d28..03a6340 100644
> --- a/vcl/inc/vcl/fltcall.hxx
> +++ b/vcl/inc/vcl/fltcall.hxx
> @@ -49,19 +49,19 @@
>
>  typedef sal_Bool (*PFilterCall)(SvStream & rStream, Graphic & rGraphic,
>                                  FilterConfigItem* pConfigItem, sal_Bool
> bPrefDialog);
> -    // Von diesem Typ sind sowohl Export-Filter-Funktionen als auch
> Import-Filter-Funktionen.
> -    // rFileName ist der komplette Pfadname der zu importierenden bzw. zu
> exportierenden Datei.
> -    // pCallBack darf auch NULL sein. pCallerData wird der
> Callback-Funktion uebergeben.
> -    // pOptionsConfig darf NULL sein. Anderenfalls ist die Gruppe des
> Config schon gesetzt
> -    // und darf von dem Filter nicht geaendert werden!
> -    // Wenn bPrefDialog==sal_True gilt, wird ggf. ein Preferences-Dialog
> durchgefuehrt.
> +    // Of this type are both export-filter and import-filter functions
> +    // rFileName is the complete path to the file to be imported or
> exported
> +    // pCallBack can be NULL. pCallerData is handed to the callback
> function
> +    // pOptionsConfig can be NULL; if not, the group of the config is
> already set
> +    // and may not be changed by this filter!
> +    // If bPrefDialog==sal_True, a Preferences-Dialog might be called
>
>  typedef sal_Bool ( *PFilterDlgCall )( FltCallDialogParameter& );
> -    // Von diesem Typ sind sowohl Export-Filter-Funktionen als auch
> Import-Filter-Funktionen.
> -    // Uebergeben wird ein Pointer auf ein Parent-Fenster und auf die
> Options-Config.
> -    // pOptions und pWindow duerfen NULL sein, in diesem Fall wird
> sal_False zurueckgeliefert.
> -    // Anderenfalls ist die Gruppe der Config schon gesetzt
> -    // und darf von dem Filter nicht geaendert werden!
> +    // Of this type are both export-filter and import-filter functions
> +    // hands a pointer to the parent window and to the options config
> +    // pOptions and pWindow can be NULL; in this case sal_False is
> returned,
> +    // otherwise the group of the config is already set
> +    // and may not be changed by this filter!
>
>  #endif
>
> diff --git a/vcl/inc/vcl/textdata.hxx b/vcl/inc/vcl/textdata.hxx
> index 4ee0e2f..476ba00 100644
> --- a/vcl/inc/vcl/textdata.hxx
> +++ b/vcl/inc/vcl/textdata.hxx
> @@ -25,7 +25,7 @@
>  #include <svl/smplhint.hxx>
>  #include <tools/string.hxx>
>
> -// Fuer Notify, wenn alle Absaetze geloescht wurden...
> +// for Notify, if all paragraphs were deleted
>  #define TEXT_PARA_ALL               0xFFFFFFFF
>
>  class TextPaM
> diff --git a/vcl/inc/vcl/texteng.hxx b/vcl/inc/vcl/texteng.hxx
> index e5f4582..2fc0314 100644
> --- a/vcl/inc/vcl/texteng.hxx
> +++ b/vcl/inc/vcl/texteng.hxx
> @@ -122,7 +122,7 @@
>
>      TxtAlign            meAlign;
>
> -    sal_Bool                mbIsFormatting      : 1;    // Semaphore
> wegen der Hook's
> +    sal_Bool                mbIsFormatting      : 1;    // semaphore for
> the Hook's
>      sal_Bool                mbFormatted         : 1;
>      sal_Bool                mbUpdate            : 1;
>      sal_Bool                mbModified          : 1;
> @@ -161,7 +161,7 @@
>      SAL_DLLPRIVATE ::com::sun::star::uno::Reference <
> ::com::sun::star::i18n::XExtendedInputSequenceChecker >
> GetInputSequenceChecker() const;
>      SAL_DLLPRIVATE sal_Bool IsInputSequenceCheckingRequired( sal_Unicode
> c, const TextSelection& rCurSel ) const;
>
> -    // Broadcasten bzw. Selektionen anpassen:
> +    // broadcast or adjust selections
>      void                ImpParagraphInserted( sal_uLong nPara );
>      void                ImpParagraphRemoved( sal_uLong nPara );
>      void                ImpCharsRemoved( sal_uLong nPara, sal_uInt16
> nPos, sal_uInt16 nChars );
> @@ -210,12 +210,12 @@
>      sal_uLong               CalcTextWidth( sal_uLong nPara, sal_uInt16
> nPortionStart, sal_uInt16 nPortionLen, const Font* pFont = 0 );
>      Range               GetInvalidYOffsets( sal_uLong nPortion );
>
> -    // Fuer Undo/Redo
> +    // for Undo/Redo
>      void                InsertContent( TextNode* pNode, sal_uLong nPara );
>      TextPaM             SplitContent( sal_uLong nNode, sal_uInt16 nSepPos
> );
>      TextPaM             ConnectContents( sal_uLong nLeftNode );
>
> -    // Ans API uebergebene PaM's und Selektionen auf einen gueltigen
> Bereich einstellen
> +    // adjust PaM's and selections that were transfered to the API to a
> valid range
>      void                ValidateSelection( TextSelection& rSel ) const;
>      void                ValidatePaM( TextPaM& rPaM ) const;
>
> diff --git a/vcl/source/control/combobox.cxx
> b/vcl/source/control/combobox.cxx
> index 8356a52..fd09ccb 100644
> --- a/vcl/source/control/combobox.cxx
> +++ b/vcl/source/control/combobox.cxx
> @@ -381,7 +381,7 @@
>          {
>              aText = mpSubEdit->GetText();
>
> -            // Alle Eintraege entfernen, zu denen es einen Entry gibt,
> der aber nicht selektiert ist.
> +            // remove all entries to which there is an selected entry
>              xub_StrLen nIndex = 0;
>              while ( nIndex != STRING_NOTFOUND )
>              {
> @@ -403,7 +403,7 @@
>                  aText = comphelper::string::strip(aText, ' ');
>              }
>
> -            // Fehlende Eintraege anhaengen...
> +            // attach missing entries
>              ::std::set< sal_uInt16 > aSelInText;
>              lcl_GetSelectedEntries( aSelInText, aText, mcMultiSep,
> mpImplLB->GetEntryList() );
>              sal_uInt16 nSelectedEntries =
> mpImplLB->GetEntryList()->GetSelectEntryCount();
> @@ -415,7 +415,7 @@
>                      if ( aText.Len() && (aText.GetChar( aText.Len()-1 )
> != mcMultiSep) )
>                          aText += mcMultiSep;
>                      if ( aText.Len() )
> -                        aText += ' ';   // etwas auflockern
> +                        aText += ' ';   // slightly loosen
>                      aText += mpImplLB->GetEntryList()->GetEntryText( nP );
>                      aText += mcMultiSep;
>                  }
> @@ -611,8 +611,8 @@
>              ImplUpdateFloatSelection();
>      }
>
> -    // FloatingWindow-Groesse auch im unsichtbare Zustand auf Stand
> halten,
> -    // weil KEY_PGUP/DOWN ausgewertet wird...
> +    // adjust the size of the FloatingWindow even when invisible
> +    // as KEY_PGUP/DOWN is being processed...
>      if ( mpFloatWin )
>          mpFloatWin->SetSizePixel( mpFloatWin->CalcFloatSize() );
>  }
> @@ -724,7 +724,8 @@
>              ImplInitDropDownButton( mpBtn );
>          }
>          Resize();
> -        mpImplLB->Resize(); // Wird nicht durch ComboBox::Resize()
> gerufen, wenn sich die ImplLB nicht aendert.
> +        mpImplLB->Resize(); // not called by ComboBox::Resize() if ImplLB
> is unchanged
> +
>          SetBackground();    // due to a hack in Window::UpdateSettings
> the background must be reset
>                              // otherwise it will overpaint NWF drawn
> comboboxes
>      }
> @@ -857,7 +858,7 @@
>
>  void ComboBox::ImplUpdateFloatSelection()
>  {
> -    // Text in der ListBox in den sichtbaren Bereich bringen
> +    // move text in the ListBox into the visible region
>      mpImplLB->SetCallSelectionChangedHdl( sal_False );
>      if ( !IsMultiSelectionEnabled() )
>      {
> @@ -1112,11 +1113,11 @@
>
>  Size ComboBox::CalcSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const
>  {
> -    // ggf. werden ScrollBars eingeblendet
> +    // show ScrollBars where appropriate
>      Size aMinSz = CalcMinimumSize();
>      Size aSz;
>
> -    // Hoehe
> +    // height
>      if ( nLines )
>      {
>          if ( !IsDropDownBox() )
> @@ -1127,7 +1128,7 @@
>      else
>          aSz.Height() = aMinSz.Height();
>
> -    // Breite
> +    // width
>      if ( nColumns )
>          aSz.Width() = nColumns *
> GetTextWidth(rtl::OUString(static_cast<sal_Unicode>('X')));
>      else
> @@ -1203,7 +1204,7 @@
>          }
>      }
>
> -    // Inhalt
> +    // contents
>      if ( !IsDropDownBox() )
>      {
>          long        nOnePixel = GetDrawPixel( pDev, 1 );
> diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
> index efa5985..f1d1957 100644
> --- a/vcl/source/control/fixed.cxx
> +++ b/vcl/source/control/fixed.cxx
> @@ -405,7 +405,7 @@
>      if ( pControl->GetStyle() & WB_EXTRAOFFSET )
>          aSize.Width() += 2;
>
> -    // GetTextRect verkraftet keinen leeren String:
> +    // GetTextRect cannot take and empty string
>      if ( aSize.Width() < 0 )
>          aSize.Width() = 0;
>      if ( aSize.Height() <= 0 )
> @@ -892,7 +892,7 @@
>      }
>      else
>      {
> -        // Haben wir ueberhaupt eine Bitmap
> +        // do we have a Bitmap?
>          if ( !(!(*pBitmap)) )
>          {
>              if ( GetStyle() & WB_SCALE )
> @@ -1095,7 +1095,7 @@
>
>      Image *pImage = &maImage;
>
> -    // Haben wir ueberhaupt ein Image
> +    // do we have an image?
>      if ( !(!(*pImage)) )
>      {
>          if ( GetStyle() & WB_SCALE )
>
> --
> To view, visit https://gerrit.libreoffice.org/2534
> To unsubscribe, visit https://gerrit.libreoffice.org/settings
>
> Gerrit-MessageType: newchange
> Gerrit-Change-Id: I8af3fe962ba77d7047eac8d7570c5bc572585363
> Gerrit-PatchSet: 1
> Gerrit-Project: core
> Gerrit-Branch: master
> Gerrit-Owner: Christian M. Heller <christian.heller63 at gmail.com>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130303/ed44b267/attachment-0001.html>


More information about the LibreOffice mailing list