diff options
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llfolderviewitem.cpp | 21 | ||||
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llpanellandmarks.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llpanellandmarks.h | 4 | ||||
| -rw-r--r-- | indra/newview/llvoavatarself.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/textures/icons/SL_Logo.png | bin | 973 -> 3999 bytes | |||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_preferences.xml | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_tools.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_avatar_list_item.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_preferences_alerts.xml | 8 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_preferences_general.xml | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/strings.xml | 2 | 
12 files changed, 47 insertions, 18 deletions
diff --git a/indra/newview/llfolderviewitem.cpp b/indra/newview/llfolderviewitem.cpp index 8b3ba6c72b..bb4c75d3ac 100644 --- a/indra/newview/llfolderviewitem.cpp +++ b/indra/newview/llfolderviewitem.cpp @@ -255,10 +255,27 @@ void LLFolderViewItem::refreshFromListener()  		// temporary attempt to display the inventory folder in the user locale.  		// mantipov: *NOTE: be sure this code is synchronized with LLFriendCardsManager::findChildFolderUUID  		//		it uses the same way to find localized string -		if (LLFolderType::lookupIsProtectedType(preferred_type)) + +		// HACK: EXT - 6028 ([HARD CODED]? Inventory > Library > "Accessories" folder) +		// Translation of Accessories folder in Library inventory folder +		bool accessories = false; +		if(mLabel == std::string("Accessories")) +		{ +			//To ensure that Accessories folder is in Library we have to check its parent folder. +			//Due to parent LLFolderViewFloder is not set to this item yet we have to check its parent via Inventory Model +			LLInventoryCategory* cat = gInventory.getCategory(mListener->getUUID()); +			if(cat) +			{ +				const LLUUID& parent_folder_id = cat->getParentUUID(); +				accessories = (parent_folder_id == gInventory.getLibraryRootFolderID()); +			} +		} + +		//"Accessories" inventory category has folder type FT_NONE. So, this folder +		//can not be detected as protected with LLFolderType::lookupIsProtectedType +		if (accessories || LLFolderType::lookupIsProtectedType(preferred_type))  		{  			LLTrans::findString(mLabel, "InvFolder " + mLabel); -			setToolTip(mLabel);  		};  		setToolTip(mLabel); diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index ceeffea1c9..1f918c72ea 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -3808,7 +3808,9 @@ std::string LLGestureBridge::getLabelSuffix() const  {  	if( LLGestureManager::instance().isGestureActive(mUUID) )  	{ -		return LLItemBridge::getLabelSuffix() + " (active)"; +		LLStringUtil::format_map_t args; +		args["[GESLABEL]"] =  LLItemBridge::getLabelSuffix(); +		return  LLTrans::getString("ActiveGesture", args);  	}  	else  	{ @@ -4157,7 +4159,7 @@ std::string LLObjectBridge::getLabelSuffix() const  		// e.g. "(worn on ...)" / "(attached to ...)"  		LLStringUtil::format_map_t args; -		args["[ATTACHMENT_POINT]"] =  attachment_point_name.c_str(); +		args["[ATTACHMENT_POINT]"] =  LLTrans::getString(attachment_point_name);  		return LLItemBridge::getLabelSuffix() + LLTrans::getString("WornOnAttachmentPoint", args);  	}  	else diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp index 879fbba9cd..4842fcac38 100644 --- a/indra/newview/llpanellandmarks.cpp +++ b/indra/newview/llpanellandmarks.cpp @@ -534,7 +534,7 @@ void LLLandmarksPanel::initLandmarksInventoryPanel()  	// subscribe to have auto-rename functionality while creating New Folder  	mLandmarksInventoryPanel->setSelectCallback(boost::bind(&LLInventoryPanel::onSelectionChange, mLandmarksInventoryPanel, _1, _2)); -	initAccordion("tab_landmarks", mLandmarksInventoryPanel, true); +	mMyLandmarksAccordionTab = initAccordion("tab_landmarks", mLandmarksInventoryPanel, true);  }  void LLLandmarksPanel::initMyInventoryPanel() @@ -588,7 +588,7 @@ void LLLandmarksPanel::initLandmarksPanel(LLPlacesInventoryPanel* inventory_list  	inventory_list->saveFolderState();  } -void LLLandmarksPanel::initAccordion(const std::string& accordion_tab_name, LLPlacesInventoryPanel* inventory_list,	bool expand_tab) +LLAccordionCtrlTab* LLLandmarksPanel::initAccordion(const std::string& accordion_tab_name, LLPlacesInventoryPanel* inventory_list,	bool expand_tab)  {  	LLAccordionCtrlTab* accordion_tab = getChild<LLAccordionCtrlTab>(accordion_tab_name); @@ -596,6 +596,7 @@ void LLLandmarksPanel::initAccordion(const std::string& accordion_tab_name, LLPl  	accordion_tab->setDropDownStateChangedCallback(  		boost::bind(&LLLandmarksPanel::onAccordionExpandedCollapsed, this, _2, inventory_list));  	accordion_tab->setDisplayChildren(expand_tab); +	return accordion_tab;  }  void LLLandmarksPanel::onAccordionExpandedCollapsed(const LLSD& param, LLPlacesInventoryPanel* inventory_list) @@ -776,6 +777,11 @@ void LLLandmarksPanel::onAddAction(const LLSD& userdata) const  			//in case My Landmarks tab is completely empty (thus cannot be determined as being selected)  			menu_create_inventory_item(mLandmarksInventoryPanel->getRootFolder(), NULL, LLSD("category"),   				gInventory.findCategoryUUIDForType(LLFolderType::FT_LANDMARK)); + +			if (mMyLandmarksAccordionTab) +			{ +				mMyLandmarksAccordionTab->changeOpenClose(false); +			}  		}  	}  } diff --git a/indra/newview/llpanellandmarks.h b/indra/newview/llpanellandmarks.h index 2b46ba9933..c9217a4b2f 100644 --- a/indra/newview/llpanellandmarks.h +++ b/indra/newview/llpanellandmarks.h @@ -112,7 +112,7 @@ private:  	void initMyInventoryPanel();  	void initLibraryInventoryPanel();  	void initLandmarksPanel(LLPlacesInventoryPanel* inventory_list); -	void initAccordion(const std::string& accordion_tab_name, LLPlacesInventoryPanel* inventory_list, bool expand_tab); +	LLAccordionCtrlTab* initAccordion(const std::string& accordion_tab_name, LLPlacesInventoryPanel* inventory_list, bool expand_tab);  	void onAccordionExpandedCollapsed(const LLSD& param, LLPlacesInventoryPanel* inventory_list);  	void deselectOtherThan(const LLPlacesInventoryPanel* inventory_list); @@ -169,6 +169,8 @@ private:  	typedef	std::vector<LLAccordionCtrlTab*> accordion_tabs_t;  	accordion_tabs_t			mAccordionTabs; + +	LLAccordionCtrlTab*			mMyLandmarksAccordionTab;  };  #endif //LL_LLPANELLANDMARKS_H diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 32c24b3ebd..98ca76ed01 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -489,7 +489,7 @@ BOOL LLVOAvatarSelf::buildMenus()  			{  				LLMenuItemCallGL::Params item_params;  				item_params.name = attachment->getName(); -				item_params.label = attachment->getName(); +				item_params.label = LLTrans::getString(attachment->getName());  				item_params.on_click.function_name = "Object.AttachToAvatar";  				item_params.on_click.parameter = attach_index;  				item_params.on_enable.function_name = "Object.EnableWear"; diff --git a/indra/newview/skins/default/textures/icons/SL_Logo.png b/indra/newview/skins/default/textures/icons/SL_Logo.png Binary files differindex c9fbde987a..8342d7cfee 100644 --- a/indra/newview/skins/default/textures/icons/SL_Logo.png +++ b/indra/newview/skins/default/textures/icons/SL_Logo.png diff --git a/indra/newview/skins/default/xui/en/floater_preferences.xml b/indra/newview/skins/default/xui/en/floater_preferences.xml index d7a7daf30c..b5a3764e73 100644 --- a/indra/newview/skins/default/xui/en/floater_preferences.xml +++ b/indra/newview/skins/default/xui/en/floater_preferences.xml @@ -10,7 +10,7 @@   help_topic="preferences"   single_instance="true"   title="PREFERENCES" - width="620"> + width="658">      <button       follows="right|bottom"       height="23" @@ -48,7 +48,7 @@       tab_width="115"       tab_padding_right="5"       top="21" -     width="620"> +     width="658">          <panel  	 class="panel_preference"           filename="panel_preferences_general.xml" diff --git a/indra/newview/skins/default/xui/en/floater_tools.xml b/indra/newview/skins/default/xui/en/floater_tools.xml index 12d169b70a..2235b84869 100644 --- a/indra/newview/skins/default/xui/en/floater_tools.xml +++ b/indra/newview/skins/default/xui/en/floater_tools.xml @@ -741,7 +741,7 @@       halign="center"       left="0"       name="Object Info Tabs" -     tab_max_width="54" +     tab_max_width="100"       tab_min_width="40"       tab_position="top"       tab_height="25" diff --git a/indra/newview/skins/default/xui/en/panel_avatar_list_item.xml b/indra/newview/skins/default/xui/en/panel_avatar_list_item.xml index 1e2e74f882..876ff9961b 100644 --- a/indra/newview/skins/default/xui/en/panel_avatar_list_item.xml +++ b/indra/newview/skins/default/xui/en/panel_avatar_list_item.xml @@ -69,7 +69,7 @@       name="last_interaction"       text_color="LtGray_50"       value="0s" -     width="24" /> +     width="35" />      <button       follows="right"       height="16" diff --git a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml index 188fd3b7bc..516457dd93 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml @@ -51,13 +51,13 @@          Always show:      </text>      <scroll_list -     follows="top|left" +     follows="top|left|right"       height="140"       layout="topleft"       left="10"       multi_select="true"       name="enabled_popups" -     width="475" /> +     width="495" />  	 <button  	 enabled_control="FirstSelectedDisabledPopups"       follows="top|left" @@ -99,11 +99,11 @@          Never show:      </text>      <scroll_list -     follows="top|left" +     follows="top|left|right"       height="140"       layout="topleft"       left="10"       multi_select="true"       name="disabled_popups" -     width="475" /> +     width="495" />  </panel> diff --git a/indra/newview/skins/default/xui/en/panel_preferences_general.xml b/indra/newview/skins/default/xui/en/panel_preferences_general.xml index d11aebe943..e667fa9a2b 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_general.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_general.xml @@ -365,12 +365,12 @@        use_ellipses="false"        hover="false"       commit_on_focus_lost = "true" -     follows="left|top" +     follows="left|top|right"       height="60"       layout="topleft"       left="50"       name="busy_response" -     width="440" +     width="450"       word_wrap="true">         log_in_to_change      </text_editor> diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 75eb1792ee..3a766bb798 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -1852,6 +1852,7 @@ Clears (deletes) the media and all params from the given face.  	<string name="LoadingContents">Loading contents...</string>  	<string name="NoContents">No contents</string>  	<string name="WornOnAttachmentPoint" value=" (worn on [ATTACHMENT_POINT])" /> +	<string name="ActiveGesture" value="[GESLABEL] (active)"/>  	<!-- Inventory permissions -->  	<string name="PermYes">Yes</string>  	<string name="PermNo">No</string> @@ -1908,6 +1909,7 @@ Clears (deletes) the media and all params from the given face.  	<string name="InvFolder favorite">Favorites</string>  	<string name="InvFolder Current Outfit">Current Outfit</string>  	<string name="InvFolder My Outfits">My Outfits</string> +	<string name="InvFolder Accessories">Accessories</string>    <!-- are used for Friends and Friends/All folders in Inventory "Calling cards" folder. See EXT-694-->  	<string name="InvFolder Friends">Friends</string>  | 
