From 9137fd8e4303e424986822a1598341bfb99f8e26 Mon Sep 17 00:00:00 2001 From: Vadim Savchuk Date: Fri, 16 Jul 2010 19:12:46 +0300 Subject: EXT-8365 FIXED Untranslated "More" link in the Residents Profiles. The default link label specified in widgets/expandable_text.xml didn't seem to be taken into account for translation. So I moved the label to strings.xml to make sure it's localized. Also I removed overridden textbox.label attribute values because VLT can't handle them. Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/770/ --HG-- branch : product-engine --- indra/newview/llexpandabletextbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview/llexpandabletextbox.cpp') diff --git a/indra/newview/llexpandabletextbox.cpp b/indra/newview/llexpandabletextbox.cpp index 92fda31cc2..8ccc5fb248 100644 --- a/indra/newview/llexpandabletextbox.cpp +++ b/indra/newview/llexpandabletextbox.cpp @@ -34,6 +34,7 @@ #include "llexpandabletextbox.h" #include "llscrollcontainer.h" +#include "lltrans.h" #include "llwindow.h" #include "llviewerwindow.h" @@ -117,7 +118,7 @@ LLExpandableTextBox::LLTextBoxEx::Params::Params() LLExpandableTextBox::LLTextBoxEx::LLTextBoxEx(const Params& p) : LLTextEditor(p), - mExpanderLabel(p.label), + mExpanderLabel(p.label.isProvided() ? p.label : LLTrans::getString("More")), mExpanderVisible(false) { setIsChrome(TRUE); -- cgit v1.2.3