ui: remove markup from GtkBuilder XML

Use the <attributes> tag of GtkLabel instead. This will help
translators, as they won't need to replicate the markup in the
translated versions of those strings.

https://bugzilla.gnome.org/show_bug.cgi?id=100252
This commit is contained in:
Claude Paroz 2012-05-30 12:49:40 -04:00 committed by Cosimo Cecchi
parent 734f021244
commit d5de86224c
2 changed files with 64 additions and 32 deletions

View file

@ -112,10 +112,12 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;_Bookmarks&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">_Bookmarks</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">bookmark_tree_view</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -201,9 +203,11 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;_Name&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">_Name</property>
<property name="use_underline">True</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -268,9 +272,11 @@
<property name="xalign">0</property>
<property name="xpad">2</property>
<property name="ypad">2</property>
<property name="label" translatable="yes">&lt;b&gt;_Location&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">_Location</property>
<property name="use_underline">True</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>

View file

@ -81,8 +81,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Default View&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Default View</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -250,8 +252,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Icon View Defaults&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Icon View Defaults</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -359,8 +363,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;List View Defaults&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">List View Defaults</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -451,8 +457,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Tree View Defaults&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Tree View Defaults</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -533,8 +541,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Behavior&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Behavior</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -629,8 +639,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Executable Text Files&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Executable Text Files</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -726,8 +738,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Trash&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Trash</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -828,8 +842,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Icon Captions&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Icon Captions</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -992,8 +1008,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Date&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Date</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -1087,8 +1105,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;List Columns&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">List Columns</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -1174,8 +1194,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Text Files&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Text Files</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -1266,8 +1288,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Other Previewable Files&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Other Previewable Files</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
@ -1403,8 +1427,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Folders&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="label" translatable="yes">Folders</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>