tdf#173043 Add translator comments to strings containing “outline”

The word “outline” in LibreOffice can refer to either the lines of the
shape of something or an overview of something. When the string is quite
short it’s difficult for translators to know which meaning is intended.
There seems to be quite a lot of cases where the translators have got
this wrong. In order to help them this patch adds translator comments to
a bunch of the strings to explain which meaning should be used.

Change-Id: I4b75cc829128633bc9382817fc574d55a09af8a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209037
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
This commit is contained in:
Neil Roberts
2026-08-09 12:12:44 +02:00
parent 0066e963bc
commit 9dd7345159
19 changed files with 27 additions and 0 deletions
@@ -148,6 +148,7 @@
</child>
<child>
<object class="GtkCheckButton" id="outlineCB">
<!-- To translators: Outline as in the borders of a table -->
<property name="label" translatable="yes" context="dlg_InsertDataTable|outlineCB">Show outline</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
+1
View File
@@ -62,6 +62,7 @@
</child>
<child>
<object class="GtkCheckButton" id="outlineCB">
<!-- To translators: Outline as in the borders of a table -->
<property name="label" translatable="yes" context="tp_DataTable|outlineCB">Show outline</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
+1
View File
@@ -505,6 +505,7 @@
</child>
<child>
<object class="GtkCheckButton" id="outlinecb">
<!-- To translators: Outline as in the lines of the shape of the characters -->
<property name="label" translatable="yes" context="effectspage|outlinecb">Outli_ne</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
+1
View File
@@ -27,6 +27,7 @@
<property name="vexpand">True</property>
<child internal-child="accessible">
<object class="AtkObject" id="valueset-atkobject">
<!-- To translators: Outline as in the hierarchy of a list -->
<property name="AtkObject::accessible-description" translatable="yes" context="pickoutlinepage|extended_tip|valueset">Click the outline style that you want to use.</property>
</object>
</child>
+2
View File
@@ -190,7 +190,9 @@
#define RID_SVXITEMS_NOHYPHENATION_TRUE NC_("RID_SVXITEMS_NOHYPHENATION_TRUE", "No hyphenation")
#define RID_SVXITEMS_WORDLINE_TRUE NC_("RID_SVXITEMS_WORDLINE_TRUE", "Individual words")
#define RID_SVXITEMS_WORDLINE_FALSE NC_("RID_SVXITEMS_WORDLINE_FALSE", "Not Words Only")
// To translators: Outline as in the lines of the shape of a character
#define RID_SVXITEMS_CONTOUR_TRUE NC_("RID_SVXITEMS_CONTOUR_TRUE", "Outline")
// To translators: Outline as in the lines of the shape of a character
#define RID_SVXITEMS_CONTOUR_FALSE NC_("RID_SVXITEMS_CONTOUR_FALSE", "No Outline")
#define RID_SVXITEMS_PRINT_TRUE NC_("RID_SVXITEMS_PRINT_TRUE", "Print")
#define RID_SVXITEMS_PRINT_FALSE NC_("RID_SVXITEMS_PRINT_FALSE", "Don't print")
+1
View File
@@ -40,6 +40,7 @@ const std::pair<TranslateId, sal_uInt16> RID_ATTR_NAMES[] =
{ NC_("RID_ATTR_NAMES", "Font weight") , SID_ATTR_CHAR_WEIGHT },
{ NC_("RID_ATTR_NAMES", "Shadowed") , SID_ATTR_CHAR_SHADOWED },
{ NC_("RID_ATTR_NAMES", "Individual words") , SID_ATTR_CHAR_WORDLINEMODE },
// To translators: Outline refers to the lines of the shape of a character
{ NC_("RID_ATTR_NAMES", "Outline") , SID_ATTR_CHAR_CONTOUR },
{ NC_("RID_ATTR_NAMES", "Strikethrough") , SID_ATTR_CHAR_STRIKEOUT },
{ NC_("RID_ATTR_NAMES", "Underline") , SID_ATTR_CHAR_UNDERLINE },
+1
View File
@@ -65,6 +65,7 @@ inline constexpr TabData RID_TAB_TEXTGRID{ NC_("RID_TAB_TEXTGRID", "Text Grid"),
// list
inline constexpr TabData RID_TAB_UNOORDERED{ NC_("RID_TAB_UNOORDERED", "Unordered"), u"defaultbullet.png"_ustr };
inline constexpr TabData RID_TAB_ORDERED{ NC_("RID_TAB_ORDERED", "Ordered"), u"defaultnumbering.png"_ustr };
// Translators: Outline as in an overview
inline constexpr TabData RID_TAB_OUTLINE{ NC_("RID_TAB_OUTLINE", "Outline"), u"setoutline.png"_ustr };
inline constexpr TabData RID_TAB_IMAGE{ NC_("RID_TAB_IMAGE", "Image"), u"imagebutton.png"_ustr };
inline constexpr TabData RID_TAB_CUSTOMIZE{ NC_("RID_TAB_CUSTOMIZE", "Customize"), u"developmenttoolsdockingwindow.png"_ustr };
@@ -2191,6 +2191,7 @@
</node>
<node oor:name=".uno:AutoOutline" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<!-- To translators: Outline refers to an automatic grouping of cells -->
<value xml:lang="en-US">~AutoOutline</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
@@ -2792,6 +2793,7 @@
</node>
<node oor:name=".uno:GroupOutlineMenu" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<!-- To translators: Outline refers to an automatic grouping of cells -->
<value xml:lang="en-US">~Group and Outline</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
@@ -827,6 +827,7 @@
</node>
<node oor:name=".uno:OutlineMode" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<!-- To translators: Outline refers to a mode that shows an overview of the slides -->
<value xml:lang="en-US">~Outline</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
@@ -3104,12 +3104,15 @@ bit 3 (0x8): #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8
</node>
<node oor:name=".uno:SetOutline" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<!-- To translators: Outline as in the style of list -->
<value xml:lang="en-US">Outline Format</value>
</prop>
<prop oor:name="ContextLabel" oor:type="xs:string">
<!-- To translators: Outline as in the style of list -->
<value xml:lang="en-US">~Outline Format</value>
</prop>
<prop oor:name="TooltipLabel" oor:type="xs:string">
<!-- To translators: Outline as in the style of list -->
<value xml:lang="en-US">Select Outline Format</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
@@ -4095,6 +4098,7 @@ bit 3 (0x8): #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8
</node>
<node oor:name=".uno:ClearOutline" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<!-- To translators: Outline refers to a group of cells -->
<value xml:lang="en-US">~Remove Outline</value>
</prop>
</node>
+2
View File
@@ -64,7 +64,9 @@
#define STR_UNDO_OUTLINELEVEL NC_("STR_UNDO_OUTLINELEVEL", "Select outline level")
#define STR_UNDO_DOOUTLINEBLK NC_("STR_UNDO_DOOUTLINEBLK", "View Details")
#define STR_UNDO_REDOOUTLINEBLK NC_("STR_UNDO_REDOOUTLINEBLK", "Hide details")
// To translators: Outline refers to a group of cells
#define STR_UNDO_REMOVEALLOTLNS NC_("STR_UNDO_REMOVEALLOTLNS", "Clear Outline")
// To translators: Outline refers to a group of cells
#define STR_UNDO_AUTOOUTLINE NC_("STR_UNDO_AUTOOUTLINE", "AutoOutline")
#define STR_UNDO_SUBTOTALS NC_("STR_UNDO_SUBTOTALS", "Subtotals")
#define STR_UNDO_TABLETOTALS NC_("STR_UNDO_TABLETOTALS", "Table Total Row")
+1
View File
@@ -740,6 +740,7 @@
</child>
<child>
<object class="GtkCheckButton" id="outline">
<!-- To translators: Outline refers to a grouping of cells -->
<property name="label" translatable="yes" context="tpviewpage|outline">_Outline symbols</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
+1
View File
@@ -28,6 +28,7 @@ const TranslateId STR_IMPRESS_PRINT_UI_CONTENT_CHOICES[] =
NC_("STR_IMPRESS_PRINT_UI_CONTENT_CHOICES", "Slides"),
NC_("STR_IMPRESS_PRINT_UI_CONTENT_CHOICES", "Handouts"),
NC_("STR_IMPRESS_PRINT_UI_CONTENT_CHOICES", "Notes"),
// To translators: Outline refers to an overview of the slides
NC_("STR_IMPRESS_PRINT_UI_CONTENT_CHOICES", "Outline")
};
+2
View File
@@ -35,6 +35,7 @@
#define STR_SLIDE_SORTER_MODE NC_("STR_SLIDE_SORTER_MODE", "Slide Sorter")
#define STR_NORMAL_MODE NC_("STR_NORMAL_MODE", "Normal")
#define STR_SLIDE_MASTER_MODE NC_("STR_SLIDE_MASTER_MODE", "Master Slide")
// To translators: Outline refers to the outline mode to view an overview of the slides
#define STR_OUTLINE_MODE NC_("STR_OUTLINE_MODE", "Outline")
#define STR_NOTES_MODE NC_("STR_NOTES_MODE", "Notes")
#define STR_NOTES_MASTER_MODE NC_("STR_NOTES_MASTER_MODE", "Master Notes")
@@ -340,6 +341,7 @@
#define STR_PSEUDOSHEET_TITLE NC_("STR_PSEUDOSHEET_TITLE", "Title" )
#define STR_PSEUDOSHEET_SUBTITLE NC_("STR_PSEUDOSHEET_SUBTITLE", "Subtitle")
// To translators: This is used in a style name and will be followed by a number for the outline level
#define STR_PSEUDOSHEET_OUTLINE NC_("STR_PSEUDOSHEET_OUTLINE", "Outline" )
#define STR_PSEUDOSHEET_BACKGROUNDOBJECTS NC_("STR_PSEUDOSHEET_BACKGROUNDOBJECTS", "Background objects" )
#define STR_PSEUDOSHEET_BACKGROUND NC_("STR_PSEUDOSHEET_BACKGROUND", "Background" )
+1
View File
@@ -13469,6 +13469,7 @@
<object class="GtkLabel" id="OutlineLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<!-- To translators: Outline refers to an overview of the slides -->
<property name="label" translatable="yes" context="TabbedImpress|OutlineTabLabel">~Outline</property>
<property name="use-underline">True</property>
<style>
+1
View File
@@ -610,6 +610,7 @@
</child>
<child>
<object class="GtkCheckButton" id="outlinecb">
<!-- To translators: Outline refers to an overview of the slides -->
<property name="label" translatable="yes" context="prntopts|outlinecb">Outline</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
+2
View File
@@ -693,6 +693,7 @@
#define STR_OUTLINE_LEVEL NC_("STR_OUTLINE_LEVEL", "Outline Level")
#define STR_DRAGMODE NC_("STR_DRAGMODE", "Drag Mode")
#define STR_SEND_OUTLINE_TO_CLIPBOARD_ENTRY NC_("STR_SEND_OUTLINE_TO_CLIPBOARD_ENTRY", "Send Outline to Clipboard")
// To translators: Outline refers to the overview of the headers in the document
#define STR_OUTLINE_TRACKING NC_("STR_OUTLINE_TRACKING", "Outline Tracking")
#define STR_OUTLINE_TRACKING_DEFAULT NC_("STR_OUTLINE_TRACKING_DEFAULT", "Default")
#define STR_OUTLINE_TRACKING_FOCUS NC_("STR_OUTLINE_TRACKING_FOCUS", "Focus")
@@ -1437,6 +1438,7 @@
#define STR_TEXTOPTIONS NC_("STR_TEXTOPTIONS", "Text document")
#define STR_SCAN_NOSOURCE NC_("STR_SCAN_NOSOURCE", "Source not specified.")
#define STR_NUM_LEVEL NC_("STR_NUM_LEVEL", "Level ")
// To translators: The outline will be followed by a number indicating the outline level
#define STR_NUM_OUTLINE NC_("STR_NUM_OUTLINE", "Outline ")
#define STR_EDIT_FOOTNOTE NC_("STR_EDIT_FOOTNOTE", "Edit Footnote/Endnote")
#define STR_NB_REPLACED NC_("STR_NB_REPLACED", "Search key replaced XX times.")
+1
View File
@@ -110,6 +110,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<!-- To translators: Outline refers to the header levels -->
<property name="label" translatable="yes" context="abstractdialog|label2">Included outline levels</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">outlines</property>
@@ -490,6 +490,7 @@
<object class="GtkMenuItem" id="4">
<property name="visible">True</property>
<property name="can-focus">False</property>
<!-- To translators: Outline refers to the overview of the headers in the document -->
<property name="label" translatable="yes" context="navigatorcontextmenu|STR_OUTLINE_TRACKING">Outline Tracking</property>
<property name="use-underline">True</property>
<child type="submenu">