[nautilus] ui: remove markup from GtkBuilder XML
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] ui: remove markup from GtkBuilder XML
- Date: Wed, 30 May 2012 16:51:10 +0000 (UTC)
commit d5de86224c3cc5406a7301e115fb0dcab0fc9176
Author: Claude Paroz <claude 2xlibre net>
Date: Wed May 30 12:49:40 2012 -0400
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
src/nautilus-bookmarks-window.ui | 18 ++++--
src/nautilus-file-management-properties.ui | 78 ++++++++++++++++++---------
2 files changed, 64 insertions(+), 32 deletions(-)
---
diff --git a/src/nautilus-bookmarks-window.ui b/src/nautilus-bookmarks-window.ui
index 217ece0..4d0ed8e 100644
--- a/src/nautilus-bookmarks-window.ui
+++ b/src/nautilus-bookmarks-window.ui
@@ -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"><b>_Bookmarks</b></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"><b>_Name</b></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"><b>_Location</b></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>
diff --git a/src/nautilus-file-management-properties.ui b/src/nautilus-file-management-properties.ui
index 782e241..e1ea152 100644
--- a/src/nautilus-file-management-properties.ui
+++ b/src/nautilus-file-management-properties.ui
@@ -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"><b>Default View</b></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"><b>Icon View Defaults</b></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"><b>List View Defaults</b></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"><b>Tree View Defaults</b></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"><b>Behavior</b></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"><b>Executable Text Files</b></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"><b>Trash</b></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"><b>Icon Captions</b></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"><b>Date</b></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"><b>List Columns</b></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"><b>Text Files</b></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"><b>Other Previewable Files</b></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"><b>Folders</b></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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]