diff options
author | McCabe Maxsted | 2009-10-14 02:38:26 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-14 02:38:26 -0700 |
commit | 7e75c13e0ea967de1fd1f5531b30d2eab7917ae8 (patch) | |
tree | 3ce9f123b9c2d242673dfe55597f8a981ccc0e96 | |
parent | Combine the two mini-map mute buttons into one (diff) | |
download | meta-impy-7e75c13e0ea967de1fd1f5531b30d2eab7917ae8.zip meta-impy-7e75c13e0ea967de1fd1f5531b30d2eab7917ae8.tar.gz meta-impy-7e75c13e0ea967de1fd1f5531b30d2eab7917ae8.tar.bz2 meta-impy-7e75c13e0ea967de1fd1f5531b30d2eab7917ae8.tar.xz |
Applied patch for VWR-6787 by Alissa Sabre - 'none' text in group window not translatable
10 files changed, 46 insertions, 6 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 2c5dffe..2dbb5ca 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,18 @@ | |||
1 | 2009-10-13 McCabe Maxsted <hakushakukun@gmail.com> | 1 | 2009-10-13 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 2 | ||
3 | * Applied patch for VWR-6787 by Alissa Sabre - 'none' text in group window not translatable. | ||
4 | |||
5 | modified: indra/newview/llfloatergroups.cpp | ||
6 | modified: indra/newview/skins/default/xui/de/floater_choose_group.xml | ||
7 | modified: indra/newview/skins/default/xui/de/panel_groups.xml | ||
8 | modified: indra/newview/skins/default/xui/en-us/floater_choose_group.xml | ||
9 | modified: indra/newview/skins/default/xui/en-us/panel_groups.xml | ||
10 | modified: indra/newview/skins/default/xui/ja/floater_choose_group.xml | ||
11 | modified: indra/newview/skins/default/xui/ja/panel_groups.xml | ||
12 | modified: indra/newview/skins/default/xui/ko/floater_choose_group.xml | ||
13 | modified: indra/newview/skins/default/xui/ko/panel_groups.xml | ||
14 | |||
15 | |||
3 | * Combine the two mini-map mute buttons into one. | 16 | * Combine the two mini-map mute buttons into one. |
4 | 17 | ||
5 | modified: linden/indra/newview/llfloatermap.cpp | 18 | modified: linden/indra/newview/llfloatermap.cpp |
diff --git a/linden/indra/newview/llfloatergroups.cpp b/linden/indra/newview/llfloatergroups.cpp index 23e2f4d..9599089 100644 --- a/linden/indra/newview/llfloatergroups.cpp +++ b/linden/indra/newview/llfloatergroups.cpp | |||
@@ -61,7 +61,7 @@ | |||
61 | std::map<const LLUUID, LLFloaterGroupPicker*> LLFloaterGroupPicker::sInstances; | 61 | std::map<const LLUUID, LLFloaterGroupPicker*> LLFloaterGroupPicker::sInstances; |
62 | 62 | ||
63 | // helper functions | 63 | // helper functions |
64 | void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, U64 powers_mask = GP_ALL_POWERS); | 64 | void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, const std::string& none_text, U64 powers_mask = GP_ALL_POWERS); |
65 | 65 | ||
66 | ///---------------------------------------------------------------------------- | 66 | ///---------------------------------------------------------------------------- |
67 | /// Class LLFloaterGroupPicker | 67 | /// Class LLFloaterGroupPicker |
@@ -116,7 +116,8 @@ void LLFloaterGroupPicker::setPowersMask(U64 powers_mask) | |||
116 | 116 | ||
117 | BOOL LLFloaterGroupPicker::postBuild() | 117 | BOOL LLFloaterGroupPicker::postBuild() |
118 | { | 118 | { |
119 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID(), mPowersMask); | 119 | const std::string none_text = getString("none"); |
120 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID(), none_text, mPowersMask); | ||
120 | 121 | ||
121 | childSetAction("OK", onBtnOK, this); | 122 | childSetAction("OK", onBtnOK, this); |
122 | 123 | ||
@@ -200,7 +201,8 @@ void LLPanelGroups::reset() | |||
200 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); | 201 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); |
201 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); | 202 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); |
202 | 203 | ||
203 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID()); | 204 | const std::string none_text = getString("none"); |
205 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID(), none_text); | ||
204 | enableButtons(); | 206 | enableButtons(); |
205 | } | 207 | } |
206 | 208 | ||
@@ -211,7 +213,8 @@ BOOL LLPanelGroups::postBuild() | |||
211 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); | 213 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); |
212 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); | 214 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); |
213 | 215 | ||
214 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID()); | 216 | const std::string none_text = getString("none"); |
217 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID(), none_text); | ||
215 | 218 | ||
216 | childSetAction("Activate", onBtnActivate, this); | 219 | childSetAction("Activate", onBtnActivate, this); |
217 | 220 | ||
@@ -457,7 +460,7 @@ void LLPanelGroups::onGroupList(LLUICtrl* ctrl, void* userdata) | |||
457 | if(self) self->enableButtons(); | 460 | if(self) self->enableButtons(); |
458 | } | 461 | } |
459 | 462 | ||
460 | void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, U64 powers_mask) | 463 | void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, const std::string& none_text, U64 powers_mask) |
461 | { | 464 | { |
462 | S32 count = gAgent.mGroups.count(); | 465 | S32 count = gAgent.mGroups.count(); |
463 | LLUUID id; | 466 | LLUUID id; |
@@ -499,7 +502,7 @@ void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, U64 pow | |||
499 | LLSD element; | 502 | LLSD element; |
500 | element["id"] = LLUUID::null; | 503 | element["id"] = LLUUID::null; |
501 | element["columns"][0]["column"] = "name"; | 504 | element["columns"][0]["column"] = "name"; |
502 | element["columns"][0]["value"] = "none"; // *TODO: Translate | 505 | element["columns"][0]["value"] = none_text; |
503 | element["columns"][0]["font"] = "SANSSERIF"; | 506 | element["columns"][0]["font"] = "SANSSERIF"; |
504 | element["columns"][0]["font-style"] = style; | 507 | element["columns"][0]["font-style"] = style; |
505 | 508 | ||
diff --git a/linden/indra/newview/skins/default/xui/de/floater_choose_group.xml b/linden/indra/newview/skins/default/xui/de/floater_choose_group.xml index dd29aa7..327cb02 100644 --- a/linden/indra/newview/skins/default/xui/de/floater_choose_group.xml +++ b/linden/indra/newview/skins/default/xui/de/floater_choose_group.xml | |||
@@ -5,4 +5,7 @@ | |||
5 | </text> | 5 | </text> |
6 | <button label="OK" label_selected="OK" name="OK" /> | 6 | <button label="OK" label_selected="OK" name="OK" /> |
7 | <button label="Abbrechen" label_selected="Abbrechen" name="Cancel" /> | 7 | <button label="Abbrechen" label_selected="Abbrechen" name="Cancel" /> |
8 | <string name="none"> | ||
9 | keine | ||
10 | </string> | ||
8 | </floater> | 11 | </floater> |
diff --git a/linden/indra/newview/skins/default/xui/de/panel_groups.xml b/linden/indra/newview/skins/default/xui/de/panel_groups.xml index 95a2ef1..a7d6f98 100644 --- a/linden/indra/newview/skins/default/xui/de/panel_groups.xml +++ b/linden/indra/newview/skins/default/xui/de/panel_groups.xml | |||
@@ -12,4 +12,7 @@ | |||
12 | <button label="Verlassen" name="Leave" /> | 12 | <button label="Verlassen" name="Leave" /> |
13 | <button label="Erstellen..." name="Create" /> | 13 | <button label="Erstellen..." name="Create" /> |
14 | <button label="Suchen..." name="Search..." /> | 14 | <button label="Suchen..." name="Search..." /> |
15 | <string name="none"> | ||
16 | keine | ||
17 | </string> | ||
15 | </panel> | 18 | </panel> |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_choose_group.xml b/linden/indra/newview/skins/default/xui/en-us/floater_choose_group.xml index 02001e9..f438262 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_choose_group.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_choose_group.xml | |||
@@ -18,4 +18,7 @@ | |||
18 | <button bottom="-236" font="SansSerif" halign="center" height="20" label="Cancel" | 18 | <button bottom="-236" font="SansSerif" halign="center" height="20" label="Cancel" |
19 | label_selected="Cancel" left_delta="88" mouse_opaque="true" name="Cancel" | 19 | label_selected="Cancel" left_delta="88" mouse_opaque="true" name="Cancel" |
20 | width="80" /> | 20 | width="80" /> |
21 | <string name="none"> | ||
22 | none | ||
23 | </string> | ||
21 | </floater> | 24 | </floater> |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_groups.xml b/linden/indra/newview/skins/default/xui/en-us/panel_groups.xml index c47985b..0bc7866 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_groups.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_groups.xml | |||
@@ -36,4 +36,7 @@ | |||
36 | label="Search..." name="Search..." width="80" /> | 36 | label="Search..." name="Search..." width="80" /> |
37 | <button bottom_delta="-25" follows="top|right" font="SansSerif" height="22" | 37 | <button bottom_delta="-25" follows="top|right" font="SansSerif" height="22" |
38 | label="Leave" name="Leave" width="80" /> | 38 | label="Leave" name="Leave" width="80" /> |
39 | <string name="none"> | ||
40 | none | ||
41 | </string> | ||
39 | </panel> | 42 | </panel> |
diff --git a/linden/indra/newview/skins/default/xui/ja/floater_choose_group.xml b/linden/indra/newview/skins/default/xui/ja/floater_choose_group.xml index 08c91f1..0e3153c 100644 --- a/linden/indra/newview/skins/default/xui/ja/floater_choose_group.xml +++ b/linden/indra/newview/skins/default/xui/ja/floater_choose_group.xml | |||
@@ -5,4 +5,7 @@ | |||
5 | </text> | 5 | </text> |
6 | <button label="OK" label_selected="OK" name="OK" /> | 6 | <button label="OK" label_selected="OK" name="OK" /> |
7 | <button label="取り消し" label_selected="取り消し" name="Cancel" /> | 7 | <button label="取り消し" label_selected="取り消し" name="Cancel" /> |
8 | <string name="none"> | ||
9 | グループなし | ||
10 | </string> | ||
8 | </floater> | 11 | </floater> |
diff --git a/linden/indra/newview/skins/default/xui/ja/panel_groups.xml b/linden/indra/newview/skins/default/xui/ja/panel_groups.xml index 785fd86..adfdcd4 100644 --- a/linden/indra/newview/skins/default/xui/ja/panel_groups.xml +++ b/linden/indra/newview/skins/default/xui/ja/panel_groups.xml | |||
@@ -13,4 +13,7 @@ | |||
13 | <button label="抜ける" name="Leave" /> | 13 | <button label="抜ける" name="Leave" /> |
14 | <button label="作成..." name="Create" /> | 14 | <button label="作成..." name="Create" /> |
15 | <button label="検索..." name="Search..." /> | 15 | <button label="検索..." name="Search..." /> |
16 | <string name="none"> | ||
17 | グループなし | ||
18 | </string> | ||
16 | </panel> | 19 | </panel> |
diff --git a/linden/indra/newview/skins/default/xui/ko/floater_choose_group.xml b/linden/indra/newview/skins/default/xui/ko/floater_choose_group.xml index 2cb821a..53bb889 100644 --- a/linden/indra/newview/skins/default/xui/ko/floater_choose_group.xml +++ b/linden/indra/newview/skins/default/xui/ko/floater_choose_group.xml | |||
@@ -5,4 +5,7 @@ | |||
5 | </text> | 5 | </text> |
6 | <button label="확인" label_selected="확인" name="OK" /> | 6 | <button label="확인" label_selected="확인" name="OK" /> |
7 | <button label="취소" label_selected="취소" name="Cancel" /> | 7 | <button label="취소" label_selected="취소" name="Cancel" /> |
8 | <string name="none"> | ||
9 | 그룹 없음 | ||
10 | </string> | ||
8 | </floater> | 11 | </floater> |
diff --git a/linden/indra/newview/skins/default/xui/ko/panel_groups.xml b/linden/indra/newview/skins/default/xui/ko/panel_groups.xml index cdd28a6..8e66006 100644 --- a/linden/indra/newview/skins/default/xui/ko/panel_groups.xml +++ b/linden/indra/newview/skins/default/xui/ko/panel_groups.xml | |||
@@ -13,4 +13,7 @@ | |||
13 | <button label="탈퇴" name="Leave" width="90"/> | 13 | <button label="탈퇴" name="Leave" width="90"/> |
14 | <button label="만들기" name="Create" width="90"/> | 14 | <button label="만들기" name="Create" width="90"/> |
15 | <button label="검색" name="Search..." width="90"/> | 15 | <button label="검색" name="Search..." width="90"/> |
16 | <string name="none"> | ||
17 | 그룹 없음 | ||
18 | </string> | ||
16 | </panel> | 19 | </panel> |