summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlbas.cxx
diff options
context:
space:
mode:
authorLukas Röllin <lsroellin@gmail.com>2017-02-15 18:22:28 +0100
committerMichael Stahl <mstahl@redhat.com>2017-02-16 21:59:24 +0000
commit92387df38cca02de404b08a495d94cf3fe2181d3 (patch)
tree13da1f3e2533017455cb745d7892c7abfccf13ff /sw/source/filter/html/htmlbas.cxx
parentd4620d535bd5a8e73bdb9d556933b9ae22800a7d (diff)
German comment translations
Change-Id: Ib6023348c9148671762229066e1dc5c2a9b7dcd8 Reviewed-on: https://gerrit.libreoffice.org/34317 Reviewed-by: Johnny_M <klasse@partyheld.de> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/filter/html/htmlbas.cxx')
-rw-r--r--sw/source/filter/html/htmlbas.cxx23
1 files changed, 11 insertions, 12 deletions
diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx
index c12203d18c49..4259e91233bc 100644
--- a/sw/source/filter/html/htmlbas.cxx
+++ b/sw/source/filter/html/htmlbas.cxx
@@ -65,7 +65,7 @@ void SwHTMLParser::NewScript()
if( !m_aScriptURL.isEmpty() )
{
- // Den Inhalt des Script-Tags ignorieren
+ // Ignore the script tag
m_bIgnoreRawData = true;
}
}
@@ -88,8 +88,7 @@ void SwHTMLParser::EndScript()
m_bIgnoreRawData = false;
m_aScriptSource = convertLineEnd(m_aScriptSource, GetSystemLineEnd());
- // Ausser StarBasic und unbenutzem JavaScript jedes Script oder den
- // Modulnamen in einem Feld merken merken
+ // Except for StarBasic and unused JavaScript, save each script or module name in a field
if( bInsSrcIntoField && !m_bIgnoreHTMLComments )
{
SwScriptFieldType *pType =
@@ -105,8 +104,9 @@ void SwHTMLParser::EndScript()
if( !m_aScriptSource.isEmpty() && pDocSh &&
bInsIntoBasic && IsNewDoc() )
{
- // Fuer JavaScript und StarBasic noch ein Basic-Modul anlegen
- // Das Basic entfernt natuerlich weiterhin keine SGML-Kommentare
+ // Create a Basic module for javascript and StarBasic.
+
+ // The Basic does still not remove SGML comments
RemoveSGMLComment( m_aScriptSource, true );
// get library name
@@ -182,7 +182,7 @@ void SwHTMLParser::EndScript()
void SwHTMLParser::AddScriptSource()
{
- // Hier merken wir und nur ein par Strings
+ // We'll just remember a few strings here
if( aToken.getLength() > 2 &&
(HTML_SL_STARBASIC==m_eScriptLang && aToken[ 0 ] == '\'') )
{
@@ -218,14 +218,14 @@ void SwHTMLParser::AddScriptSource()
}
else if( !m_aScriptSource.isEmpty() || !aToken.isEmpty() )
{
- // Leerzeilen am Anfang werden ignoriert
+ // Empty lines are ignored on the beginning
if( !m_aScriptSource.isEmpty() )
{
m_aScriptSource += "\n";
}
else
{
- // Wir stehen hinter dem CR/LF der Zeile davor
+ // We're behind the CR/LF of the line before
m_nScriptStartLineNr = GetLineNr() - 1;
}
m_aScriptSource += aToken;
@@ -262,15 +262,14 @@ void SwHTMLWriter::OutBasic()
BasicManager *pBasicMan = pDoc->GetDocShell()->GetBasicManager();
OSL_ENSURE( pBasicMan, "Wo ist der Basic-Manager?" );
- // nur das DocumentBasic schreiben
+ // Only write DocumentBasic
if( !pBasicMan || pBasicMan == SfxApplication::GetBasicManager() )
{
return;
}
bool bFirst=true;
- // und jetzt alle StarBasic-Module und alle unbenutzen JavaSrript-Module
- // ausgeben
+ // Now write all StarBasic and unused Javascript modules
for( sal_uInt16 i=0; i<pBasicMan->GetLibCount(); i++ )
{
StarBASIC *pBasic = pBasicMan->GetLib( i );
@@ -298,7 +297,7 @@ void SwHTMLWriter::OutBasic()
}
const OUString& rModName = pModule->GetName();
- Strm().WriteCharPtr( SAL_NEWLINE_STRING ); // nicht einruecken!
+ Strm().WriteCharPtr( SAL_NEWLINE_STRING ); // don't indent!
HTMLOutFuncs::OutScript( Strm(), GetBaseURL(), pModule->GetSource(),
sLang, eType, aEmptyOUStr,
&rLibName, &rModName,