Skip to content

Commit

Permalink
Translate comments in ContentBasedDirectiveItem.java #393
Browse files Browse the repository at this point in the history
  • Loading branch information
smehrbrodt committed Sep 22, 2022
1 parent 95c977d commit 82696a6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ private void formatNumberInTextRange(XTextRange numberRange)
UnoProperty.CHAR_STYLE_NAME,
ContentBasedDirectiveModel.CHAR_STYLE_NAME_NUMBER);

// Zeichen danach auf Standardformatierung setzen, damit der Text, der
// danach geschrieben wird nicht auch obiges Zeichenformat besitzt:
// ("Standard" gilt laut DevGuide auch in englischen Versionen)
// Set character afterwards to standard formatting, so that the text written
// afterwards does not also have the above character format:
// ("Standard" is also valid in English versions according to DevGuide)
Utils.setProperty(numberRange.getEnd(), UnoProperty.CHAR_STYLE_NAME, "Standard");
}
}
Expand Down Expand Up @@ -282,7 +282,7 @@ public void adoptNumber(int count)
{
if (isCopy())
{
// Behandlung von Paragraphen mit einem "Abdruck"-String
// Handling paragraphs with an "Abdruck" string
String abdruckStr = copyString(count) + getCopySuffix();
if (!textRange.getString().equals(abdruckStr))
{
Expand All @@ -291,15 +291,15 @@ public void adoptNumber(int count)
}
} else
{
// Behandlung von normalen Verfügungspunkten:
// Handling normal "Verfügungspunkte" (TODO: What is the correct english term here?)
String numberStr = ContentBasedDirectiveConfig.getNumber(count) + "\t";
XTextRange zifferOnly = getZifferOnly();
if (zifferOnly != null)
{
zifferOnly.setString(numberStr);
} else
{
// Nummer neu anlegen, wenn sie noch gar nicht existierte
// Create new number if it did not exist yet
zifferOnly = textRange.getText().createTextCursorByRange(textRange.getStart());
zifferOnly.setString(numberStr);
formatNumberInTextRange(zifferOnly);
Expand Down

0 comments on commit 82696a6

Please sign in to comment.