From 030be1d14fb59872b31e738f858048d75ff9fd86 Mon Sep 17 00:00:00 2001
From: PanteraPolnocy <panterapolnocy@gmail.com>
Date: Tue, 3 Jan 2023 23:03:17 +0100
Subject: [PATCH] Widgets cleanup in Polish translation (up to 6.6.9), fix
 translatability for density_ctrl.xml file

---
 .../default/xui/en/widgets/density_ctrl.xml   |  5 +++++
 .../default/xui/pl/widgets/density_ctrl.xml   | 21 +++++++++++++++++++
 .../default/xui/pl/widgets/person_view.xml    |  1 -
 .../default/xui/pl/widgets/texture_picker.xml |  4 ----
 4 files changed, 26 insertions(+), 5 deletions(-)
 create mode 100644 indra/newview/skins/default/xui/pl/widgets/density_ctrl.xml
 delete mode 100644 indra/newview/skins/default/xui/pl/widgets/texture_picker.xml

diff --git a/indra/newview/skins/default/xui/en/widgets/density_ctrl.xml b/indra/newview/skins/default/xui/en/widgets/density_ctrl.xml
index 0f3f0159db4..eb665fd3cbf 100644
--- a/indra/newview/skins/default/xui/en/widgets/density_ctrl.xml
+++ b/indra/newview/skins/default/xui/en/widgets/density_ctrl.xml
@@ -13,6 +13,7 @@
      follows="left|top"
      height="11"
      layout="topleft"
+     name="exponential_term_label"
      left="15"
      top_pad="-5"
      width="120">
@@ -45,6 +46,7 @@ Exponential Term
      follows="left|top"
      height="11"
      layout="topleft"
+     name="exponential_scale_factor_label"
      left="15"
      top_pad="-5"
      width="120">
@@ -69,6 +71,7 @@ Exponential Scale Factor
      follows="left|top"
      height="11"
      layout="topleft"
+     name="linear_term_label"
      left="15"
      top_pad="-5"
      width="120">
@@ -93,6 +96,7 @@ Linear Term
      follows="left|top"
      height="11"
      layout="topleft"
+     name="constant_term_label"
      left="15"
      top_pad="-5"
      width="120">
@@ -117,6 +121,7 @@ Constant Term
      follows="left|top"
      height="11"
      layout="topleft"
+     name="max_altitude_label"
      left="15"
      top_pad="15"
      width="80">
diff --git a/indra/newview/skins/default/xui/pl/widgets/density_ctrl.xml b/indra/newview/skins/default/xui/pl/widgets/density_ctrl.xml
new file mode 100644
index 00000000000..fcd7de9eca7
--- /dev/null
+++ b/indra/newview/skins/default/xui/pl/widgets/density_ctrl.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<densityctrl label="Gęstość" name="density_ctrl">
+	<text name="exponential_term_label">
+		Okres wykładniczy
+	</text>
+	<text name="exponential_scale_factor_label">
+		Współczynnik skali wykładn.
+	</text>
+	<text name="linear_term_label">
+		Okres liniowy
+	</text>
+	<text name="constant_term_label">
+		Okres stały
+	</text>
+	<text name="max_altitude_label">
+		Maks. wysokość
+	</text>
+	<text name="aniso_factor_label">
+		Współczynnik anizotropii
+	</text>
+</densityctrl>
diff --git a/indra/newview/skins/default/xui/pl/widgets/person_view.xml b/indra/newview/skins/default/xui/pl/widgets/person_view.xml
index 2ebe5974d61..7df1663fe05 100644
--- a/indra/newview/skins/default/xui/pl/widgets/person_view.xml
+++ b/indra/newview/skins/default/xui/pl/widgets/person_view.xml
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 <person_view>
-	<facebook_icon name="facebook_icon" tool_tip="Użytkownik Facebooka" />
 	<permission_edit_theirs_icon name="permission_edit_theirs_icon" tool_tip="Możesz edytować obiekty tego Znajomego" />
 	<permission_edit_mine_icon name="permission_edit_mine_icon" tool_tip="Ten Znajomy może edytować, kasować lub wziąć Twoje obiekty" />
 	<permission_map_icon tool_tip="Ten Znajomy może zlokalizować Cię na mapie" name="permission_map_icon" />
diff --git a/indra/newview/skins/default/xui/pl/widgets/texture_picker.xml b/indra/newview/skins/default/xui/pl/widgets/texture_picker.xml
deleted file mode 100644
index fc35ac714d7..00000000000
--- a/indra/newview/skins/default/xui/pl/widgets/texture_picker.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<texture_picker name="texture picker">
-	<caption_text label="Wiele" />
-</texture_picker>
-- 
GitLab