[vlc-devel] [PATCH] Don't translate html, especially if the strings exist already.
Christoph Miebach
christoph.miebach at web.de
Sat Apr 27 23:38:58 CEST 2013
---
modules/gui/qt4/dialogs/help.cpp | 5 +++++
modules/gui/qt4/ui/about.ui | 9 ---------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/modules/gui/qt4/dialogs/help.cpp b/modules/gui/qt4/dialogs/help.cpp
index a281afd..5d22887 100644
--- a/modules/gui/qt4/dialogs/help.cpp
+++ b/modules/gui/qt4/dialogs/help.cpp
@@ -110,8 +110,13 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
/* People who wrote the software */
ui.authorsPage->setText( qfu( psz_authors ) );
+ ui.licenseButton->setText( "<html><head/><body><p><span style=\" text-decoration: underline; color:#0057ae;\">"+qtr( "License" )+"</span></p></body></html>");
ui.licenseButton->installEventFilter( this );
+
+ ui.authorsButton->setText( "<html><head/><body><p><span style=\" text-decoration: underline; color:#0057ae;\">"+qtr( "Authors" )+"</span></p></body></html>");
ui.authorsButton->installEventFilter( this );
+
+ ui.creditsButton->setText( "<html><head/><body><p><span style=\" text-decoration: underline; color:#0057ae;\">"+qtr( "Credits" )+"</span></p></body></html>");
ui.creditsButton->installEventFilter( this );
ui.version->installEventFilter( this );
diff --git a/modules/gui/qt4/ui/about.ui b/modules/gui/qt4/ui/about.ui
index 1f3afce..6c75791 100644
--- a/modules/gui/qt4/ui/about.ui
+++ b/modules/gui/qt4/ui/about.ui
@@ -279,9 +279,6 @@ background-color: rgb(230, 230, 230);</string>
<property name="styleSheet">
<string notr="true">padding: 10px</string>
</property>
- <property name="text">
- <string><html><head/><body><p><span style=" text-decoration: underline; color:#0057ae;">Authors</span></p></body></html></string>
- </property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
@@ -295,9 +292,6 @@ background-color: rgb(230, 230, 230);</string>
<property name="styleSheet">
<string notr="true">padding: 10px</string>
</property>
- <property name="text">
- <string><html><head/><body><p><span style=" text-decoration: underline; color:#0057ae;">License</span></p></body></html></string>
- </property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
@@ -311,9 +305,6 @@ background-color: rgb(230, 230, 230);</string>
<property name="styleSheet">
<string notr="true">padding: 10px;</string>
</property>
- <property name="text">
- <string><html><head/><body><p><span style=" text-decoration: underline; color:#0057ae;">Credits</span></p></body></html></string>
- </property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
--
1.8.1.4
More information about the vlc-devel
mailing list