]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Editor/Settings/settings_translation.tscn
61fca18fd2ec409d40de474ee4afcc1370434309
[wolf-seeking-sheep.git] / addons / dialogic / Editor / Settings / settings_translation.tscn
1 [gd_scene load_steps=7 format=3 uid="uid://chpb1mj03xjxv"]
2
3 [ext_resource type="Script" path="res://addons/dialogic/Editor/Settings/settings_translation.gd" id="1_dvmyi"]
4 [ext_resource type="PackedScene" uid="uid://dbpkta2tjsqim" path="res://addons/dialogic/Editor/Common/hint_tooltip_icon.tscn" id="2_k2lou"]
5 [ext_resource type="PackedScene" uid="uid://dpwhshre1n4t6" path="res://addons/dialogic/Editor/Events/Fields/field_options_dynamic.tscn" id="3_dq4j2"]
6 [ext_resource type="PackedScene" uid="uid://7mvxuaulctcq" path="res://addons/dialogic/Editor/Events/Fields/field_file.tscn" id="4_kvsma"]
7
8 [sub_resource type="Image" id="Image_g2hic"]
9 data = {
10 "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 93, 93, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
11 "format": "RGBA8",
12 "height": 16,
13 "mipmaps": false,
14 "width": 16
15 }
16
17 [sub_resource type="ImageTexture" id="ImageTexture_xbph7"]
18 image = SubResource("Image_g2hic")
19
20 [node name="Translations" type="VBoxContainer"]
21 anchors_preset = 15
22 anchor_right = 1.0
23 anchor_bottom = 1.0
24 offset_top = -101.0
25 offset_bottom = 102.0
26 grow_horizontal = 2
27 grow_vertical = 2
28 script = ExtResource("1_dvmyi")
29
30 [node name="HBox" type="HBoxContainer" parent="."]
31 layout_mode = 2
32
33 [node name="Basics" type="VBoxContainer" parent="HBox"]
34 layout_mode = 2
35 size_flags_horizontal = 3
36
37 [node name="Title" type="Label" parent="HBox/Basics"]
38 layout_mode = 2
39 theme_type_variation = &"DialogicSettingsSection"
40 text = "Basics"
41
42 [node name="VBox4" type="HBoxContainer" parent="HBox/Basics"]
43 layout_mode = 2
44
45 [node name="Label" type="Label" parent="HBox/Basics/VBox4"]
46 layout_mode = 2
47 text = "Enable translations"
48
49 [node name="TransEnabled" type="CheckBox" parent="HBox/Basics/VBox4"]
50 unique_name_in_owner = true
51 layout_mode = 2
52
53 [node name="HSeparator5" type="VSeparator" parent="HBox"]
54 layout_mode = 2
55
56 [node name="Testing" type="VBoxContainer" parent="HBox"]
57 layout_mode = 2
58 size_flags_horizontal = 3
59
60 [node name="Title2" type="Label" parent="HBox/Testing"]
61 layout_mode = 2
62 theme_type_variation = &"DialogicSettingsSection"
63 text = "Testing"
64
65 [node name="VBox3" type="HBoxContainer" parent="HBox/Testing"]
66 layout_mode = 2
67
68 [node name="Label3" type="Label" parent="HBox/Testing/VBox3"]
69 layout_mode = 2
70 text = "Testing locale"
71
72 [node name="HintTooltip8" parent="HBox/Testing/VBox3" instance=ExtResource("2_k2lou")]
73 layout_mode = 2
74 tooltip_text = "Change this locale to test your game in a different language (only in-editor).
75 Equivalent of the testing local project setting. "
76 texture = SubResource("ImageTexture_xbph7")
77 hint_text = "Change this locale to test your game in a different language (only in-editor).
78 Equivalent of the testing local project setting. 
79
80 Update dropdown list via \"Collect Translation\"."
81
82 [node name="TestingLocale" parent="HBox/Testing/VBox3" instance=ExtResource("3_dq4j2")]
83 unique_name_in_owner = true
84 layout_mode = 2
85
86 [node name="HSeparator4" type="HSeparator" parent="."]
87 layout_mode = 2
88
89 [node name="TranslationSettings" type="HBoxContainer" parent="."]
90 unique_name_in_owner = true
91 layout_mode = 2
92
93 [node name="VBoxContainer" type="VBoxContainer" parent="TranslationSettings"]
94 layout_mode = 2
95 size_flags_horizontal = 3
96
97 [node name="SettingsTitle" type="Label" parent="TranslationSettings/VBoxContainer"]
98 layout_mode = 2
99 theme_type_variation = &"DialogicSettingsSection"
100 text = "Settings"
101
102 [node name="Grid" type="GridContainer" parent="TranslationSettings/VBoxContainer"]
103 layout_mode = 2
104 columns = 2
105
106 [node name="VBox" type="HBoxContainer" parent="TranslationSettings/VBoxContainer/Grid"]
107 layout_mode = 2
108
109 [node name="Label3" type="Label" parent="TranslationSettings/VBoxContainer/Grid/VBox"]
110 layout_mode = 2
111 text = "Default locale"
112
113 [node name="HintTooltip" parent="TranslationSettings/VBoxContainer/Grid/VBox" instance=ExtResource("2_k2lou")]
114 layout_mode = 2
115 tooltip_text = "The locale of the language your timelines are written in."
116 texture = SubResource("ImageTexture_xbph7")
117 hint_text = "The locale of the language your timelines are written in."
118
119 [node name="OrigLocale" parent="TranslationSettings/VBoxContainer/Grid" instance=ExtResource("3_dq4j2")]
120 unique_name_in_owner = true
121 layout_mode = 2
122
123 [node name="TransFile" type="HBoxContainer" parent="TranslationSettings/VBoxContainer/Grid"]
124 layout_mode = 2
125
126 [node name="Label" type="Label" parent="TranslationSettings/VBoxContainer/Grid/TransFile"]
127 layout_mode = 2
128 text = "Translation folder"
129
130 [node name="HintTooltip3" parent="TranslationSettings/VBoxContainer/Grid/TransFile" instance=ExtResource("2_k2lou")]
131 layout_mode = 2
132 tooltip_text = "Choose a folder to let Dialogic save CSV files in.
133 Also used when saving \"Inside Translation Folder\""
134 texture = SubResource("ImageTexture_xbph7")
135 hint_text = "Choose a folder to let Dialogic save CSV files in.
136 Also used when saving \"Inside Translation Folder\""
137
138 [node name="TransFolderPicker" parent="TranslationSettings/VBoxContainer/Grid" instance=ExtResource("4_kvsma")]
139 unique_name_in_owner = true
140 layout_mode = 2
141 size_flags_horizontal = 3
142 file_mode = 2
143
144 [node name="VBox2" type="HBoxContainer" parent="TranslationSettings/VBoxContainer/Grid"]
145 layout_mode = 2
146
147 [node name="OutputModeLabel" type="Label" parent="TranslationSettings/VBoxContainer/Grid/VBox2"]
148 layout_mode = 2
149 text = "Output mode"
150
151 [node name="OutputModeTooltip" parent="TranslationSettings/VBoxContainer/Grid/VBox2" instance=ExtResource("2_k2lou")]
152 layout_mode = 2
153 tooltip_text = "Decides how many CSV files will be created.
154
155 • \"Per Type\": Uses one CSV file for each type of resource: Timelines, characters, and glossaries.
156 For example, 10 timelines will be combined into 1 CSV file.
157
158 • \"Per File\": Uses one CSV file for each resource file.
159 For example, 10 timelines will result in 10 CSV files.
160
161 The \"Per File\" option utilises \"Output location\", in contrast, the \"Per Type\" will always use the Translation folder."
162 texture = SubResource("ImageTexture_xbph7")
163 hint_text = "Decides how many CSV files will be created.
164
165 • \"Per Type\": Uses one CSV file for each type of resource: Timelines, characters, and glossaries.
166 For example, 10 timelines will be combined into 1 CSV file.
167
168 • \"Per File\": Uses one CSV file for each resource file.
169 For example, 10 timelines will result in 10 CSV files.
170
171 The \"Per File\" option utilises \"Output location\", in contrast, the \"Per Type\" will always use the Translation folder."
172
173 [node name="TransMode" type="OptionButton" parent="TranslationSettings/VBoxContainer/Grid"]
174 unique_name_in_owner = true
175 layout_mode = 2
176 item_count = 2
177 selected = 0
178 popup/item_0/text = "Per Type"
179 popup/item_0/id = 0
180 popup/item_1/text = "Per File"
181 popup/item_1/id = 1
182
183 [node name="OutputLocation" type="HBoxContainer" parent="TranslationSettings/VBoxContainer/Grid"]
184 layout_mode = 2
185
186 [node name="OutputLocationLabel" type="Label" parent="TranslationSettings/VBoxContainer/Grid/OutputLocation"]
187 layout_mode = 2
188 text = "Output location"
189
190 [node name="OutputLocationTooltip" parent="TranslationSettings/VBoxContainer/Grid/OutputLocation" instance=ExtResource("2_k2lou")]
191 layout_mode = 2
192 tooltip_text = "Decides where to save the generated CSV files.
193
194 • \"Inside Translation Folder\": Uses the \"Translation folder\".
195
196 • \"Next To Timeline\": Places them in the resource type's folder.
197
198 This button requires the \"Per File\" Output mode.
199 A resource type can be: Timelines, characters, and glossaries."
200 texture = SubResource("ImageTexture_xbph7")
201 hint_text = "Decides where to save the generated CSV files.
202
203 • \"Inside Translation Folder\": Uses the \"Translation folder\".
204
205 • \"Next To Timeline\": Places them in the resource type's folder.
206
207 This button requires the \"Per File\" Output mode.
208 A resource type can be: Timelines, characters, and glossaries."
209
210 [node name="SaveLocationMode" type="OptionButton" parent="TranslationSettings/VBoxContainer/Grid"]
211 unique_name_in_owner = true
212 layout_mode = 2
213 disabled = true
214 item_count = 2
215 selected = 0
216 popup/item_0/text = "Inside Translation Folder"
217 popup/item_0/id = 0
218 popup/item_1/text = "Next to File"
219 popup/item_1/id = 1
220
221 [node name="Control" type="Control" parent="TranslationSettings/VBoxContainer/Grid"]
222 visible = false
223 layout_mode = 2
224
225 [node name="AddSeparatorHBox" type="HBoxContainer" parent="TranslationSettings/VBoxContainer/Grid"]
226 layout_mode = 2
227
228 [node name="AddSeparatorLabel" type="Label" parent="TranslationSettings/VBoxContainer/Grid/AddSeparatorHBox"]
229 layout_mode = 2
230 text = "Add Separator Lines"
231
232 [node name="HintAddSeparatorEnabled" parent="TranslationSettings/VBoxContainer/Grid/AddSeparatorHBox" instance=ExtResource("2_k2lou")]
233 layout_mode = 2
234 tooltip_text = "Adds an empty line into per-project CSVs to differentiate between sections.
235
236 For example, when a new glossary item or timeline starts, an empty line will be added."
237 texture = SubResource("ImageTexture_xbph7")
238 hint_text = "Adds an empty line into per-project CSVs to differentiate between sections.
239
240 For example, when a new glossary item or timeline starts, an empty line will be added."
241
242 [node name="AddSeparatorEnabled" type="CheckBox" parent="TranslationSettings/VBoxContainer/Grid"]
243 unique_name_in_owner = true
244 layout_mode = 2
245
246 [node name="HSeparator6" type="VSeparator" parent="TranslationSettings"]
247 layout_mode = 2
248
249 [node name="VBoxContainer2" type="VBoxContainer" parent="TranslationSettings"]
250 layout_mode = 2
251 size_flags_horizontal = 3
252
253 [node name="HBoxContainer" type="HBoxContainer" parent="TranslationSettings/VBoxContainer2"]
254 layout_mode = 2
255
256 [node name="Title3" type="Label" parent="TranslationSettings/VBoxContainer2/HBoxContainer"]
257 layout_mode = 2
258 theme_type_variation = &"DialogicSettingsSection"
259 text = "Actions"
260
261 [node name="Actions" type="GridContainer" parent="TranslationSettings/VBoxContainer2"]
262 layout_mode = 2
263 columns = 2
264
265 [node name="UpdateCsvFiles" type="Button" parent="TranslationSettings/VBoxContainer2/Actions"]
266 unique_name_in_owner = true
267 layout_mode = 2
268 disabled = true
269 text = "Update CSV files"
270 icon = SubResource("ImageTexture_xbph7")
271
272 [node name="HintTooltip5" parent="TranslationSettings/VBoxContainer2/Actions" instance=ExtResource("2_k2lou")]
273 layout_mode = 2
274 tooltip_text = "This button will scan all timelines and generate or update their CSV files.
275
276 A Dialogic CSV file will be prefixed with \"dialogic_\".
277
278 This action will be disabled if the \"Translation folder\" is missing or has an invalid path."
279 texture = SubResource("ImageTexture_xbph7")
280 hint_text = "This button will scan all timelines and generate or update their CSV files.
281
282 A Dialogic CSV file will be prefixed with \"dialogic_\".
283
284 This action will be disabled if the \"Translation folder\" is missing or has an invalid path."
285
286 [node name="CollectTranslations" type="Button" parent="TranslationSettings/VBoxContainer2/Actions"]
287 unique_name_in_owner = true
288 layout_mode = 2
289 text = "Collect translations"
290 icon = SubResource("ImageTexture_xbph7")
291
292 [node name="HintTooltip6" parent="TranslationSettings/VBoxContainer2/Actions" instance=ExtResource("2_k2lou")]
293 layout_mode = 2
294 tooltip_text = "Godot imports CSV files as \".translation\" files.
295 This buttons adds them to \"Project Settings -> Localization\".
296 "
297 texture = SubResource("ImageTexture_xbph7")
298 hint_text = "Godot imports CSV files as \".translation\" files.
299 This buttons adds them to \"Project Settings -> Localization\".
300 "
301
302 [node name="AspectRatioContainer2" type="AspectRatioContainer" parent="TranslationSettings/VBoxContainer2/Actions"]
303 custom_minimum_size = Vector2(0, 31)
304 layout_mode = 2
305
306 [node name="AspectRatioContainer" type="AspectRatioContainer" parent="TranslationSettings/VBoxContainer2/Actions"]
307 custom_minimum_size = Vector2(0, 31)
308 layout_mode = 2
309
310 [node name="TransRemove" type="Button" parent="TranslationSettings/VBoxContainer2/Actions"]
311 unique_name_in_owner = true
312 layout_mode = 2
313 text = "Remove translations"
314 icon = SubResource("ImageTexture_xbph7")
315
316 [node name="HintTooltip7" parent="TranslationSettings/VBoxContainer2/Actions" instance=ExtResource("2_k2lou")]
317 layout_mode = 2
318 tooltip_text = "Be very careful with this button!
319
320 It will try to delete any \".csv\" and \".translation\" files that are related to Dialogic.
321 CSV and translation files prefixed with \"dialogic_\" are treated as Dialogic-related.
322
323 Removes translation IDs (eg. #id:33) from timelines and characters."
324 texture = SubResource("ImageTexture_xbph7")
325 hint_text = "Be very careful with this button!
326
327 It will try to delete any \".csv\" and \".translation\" files that are related to Dialogic.
328 CSV and translation files prefixed with \"dialogic_\" are treated as Dialogic-related.
329
330 Removes translation IDs (eg. #id:33) from timelines and characters."
331
332 [node name="StatusMessage" type="Label" parent="TranslationSettings/VBoxContainer2"]
333 unique_name_in_owner = true
334 layout_mode = 2
335 text = "⛔ Requires valid translation folder to translate character names and the project CSV file."
336 autowrap_mode = 3
337
338 [node name="UpdateConfirmationDialog" type="ConfirmationDialog" parent="."]
339 unique_name_in_owner = true
340 title = "Please Decide..."
341 size = Vector2i(490, 200)
342 ok_button_text = "Delete old & Generate new"
343 dialog_text = "You have previously generated CSVs and translation files with different Translation Settings!
344
345 Please consider to delete the old CSVs and then generate new changes."
346 dialog_autowrap = true
347
348 [node name="EraseConfirmationDialog" type="ConfirmationDialog" parent="."]
349 unique_name_in_owner = true
350 position = Vector2i(0, 36)
351 size = Vector2i(500, 280)
352 min_size = Vector2i(300, 70)
353 ok_button_text = "DELETE ALL"
354 dialog_text = "You are about to:
355 -   Delete all CSVs prefixed with \"dialogic_\".
356 -   Delete the related CSV import files.
357 -   Delete the related translation files.
358 -   Remove translation IDs from timelines and characters.
359 -   Remove all \"dialogic\" prefixed translations from \"Project Settings -> Localization\".
360 -   Remove the \"_translation_keys\" and \"entries\" starting with \"Glossary/\"."
361 dialog_autowrap = true
362
363 [node name="AspectRatioContainer" type="AspectRatioContainer" parent="."]
364 custom_minimum_size = Vector2(0, 31)
365 layout_mode = 2
366
367 [connection signal="confirmed" from="UpdateConfirmationDialog" to="." method="_delete_and_update"]
368 [connection signal="confirmed" from="EraseConfirmationDialog" to="." method="erase_translations"]