Skip to content

Commit 6fbf4cc

Browse files
committed
On the "Stories" module, in its sub-class "Copy_Story_Titles", I made the following changes:
I have greatly improved the documentation and variable names of the sub-class, making them clearer and easier to understand. I also created a root dictionary containing all the data the sub-class will utilize. Similar to other sub-classes that do not utilize any other sub-class of the same module. I renamed the method "Make_Story_Titles_List" to "Create_Titles_Lists". Now in the two-story join mode, when the first title is selected, it is replaced with a filler text in the title list.
1 parent 2e0448c commit 6fbf4cc

File tree

12 files changed

+376
-217
lines changed

12 files changed

+376
-217
lines changed

Module Files/Food_Time/Times.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"Will be hungry": 3
1111
},
1212
"Ate": {
13-
"Object": "2024-04-18 12:36:01-03:00",
13+
"Object": "2024-04-22 20:45:31-03:00",
1414
"Time": 0,
15-
"Time text": "12:36",
15+
"Time text": "20:45",
1616
"Unit": {
1717
"en": "hours",
1818
"pt": "horas"
@@ -23,9 +23,9 @@
2323
}
2424
},
2525
"Can drink water": {
26-
"Object": "2024-04-18 13:16:01-03:00",
26+
"Object": "2024-04-22 21:25:31-03:00",
2727
"Time": 40,
28-
"Time text": "13:16",
28+
"Time text": "21:25",
2929
"Unit": {
3030
"en": "minutes",
3131
"pt": "minutos"
@@ -36,9 +36,9 @@
3636
}
3737
},
3838
"Will be hungry": {
39-
"Object": "2024-04-18 15:36:01-03:00",
39+
"Object": "2024-04-22 23:45:31-03:00",
4040
"Time": 3,
41-
"Time text": "15:36",
41+
"Time text": "23:45",
4242
"Unit": {
4343
"en": "hours",
4444
"pt": "horas"

Module Files/Stories/Texts.json

+10-18
Original file line numberDiff line numberDiff line change
@@ -275,31 +275,23 @@
275275
"en": "With quotes",
276276
"pt": "Com aspas"
277277
},
278-
"story_acronym": {
279-
"en": "Story acronym",
280-
"pt": "Acrônimo de história"
281-
},
282-
"story_acronyms": {
283-
"en": "Story acronyms",
284-
"pt": "Acrônimos de história"
285-
},
286278
"copy_actions, type: list": {
287279
"en": [
288-
"Change mode",
280+
"Change copy mode",
289281
"Join {}",
290282
"Disable junction mode",
291283
"Quit"
292284
],
293285
"pt": [
294-
"Mudar modo",
286+
"Mudar modo de cópia",
295287
"Juntar {}",
296288
"Desabilitar o modo de junção",
297289
"Sair"
298290
]
299291
},
300-
"change_mode": {
301-
"en": "Change mode",
302-
"pt": "Mudar modo"
292+
"change_copy_mode": {
293+
"en": "Change copy mode",
294+
"pt": "Mudar modo de cópia"
303295
},
304296
"disable_junction_mode": {
305297
"en": "Disable junction mode",
@@ -310,12 +302,12 @@
310302
"pt": "[ ] (Preenchedor)"
311303
},
312304
"you_selected_a_filler_text, type: explanation": {
313-
"en": "You selected a Filler.\nIt does perform any action, it is only utilized to make the lengths of the lists the same, the length of the current list is {}.",
314-
"pt": "Você selecionou um Preenchedor.\nEle não executa nenhuma ação, só é utilizado para tornar os comprimentos das listas iguais, o comprimento da lista atual é {}."
305+
"en": "You selected a Filler.\nIt does perform any action, it is only utilized to make the lengths of the lists the same, the length of the current list is \"{}\".",
306+
"pt": "Você selecionou um Preenchedor.\nEle não executa nenhuma ação, só é utilizado para tornar os comprimentos das listas iguais, o comprimento da lista atual é \"{}\"."
315307
},
316-
"finished_copying_the_{}": {
317-
"en": "Finished copying the {}",
318-
"pt": "Terminou de copiar os {}"
308+
"you_finished_copying_the_{}": {
309+
"en": "You finished copying the {}",
310+
"pt": "Você terminou de copiar os {}"
319311
},
320312
"manage_the_story": {
321313
"en": "Manage the story",
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"testing": false,
3-
"verbose": false,
2+
"testing": true,
3+
"verbose": true,
44
"user_information": false,
55
"Has active switches": false
66
}

Module Files/Utility/Language/Texts.json

+12
Original file line numberDiff line numberDiff line change
@@ -1751,10 +1751,22 @@
17511751
"en": "Story title",
17521752
"pt": "Título da história"
17531753
},
1754+
"story_title, type: generic": {
1755+
"en": "Story title",
1756+
"pt": "Título de história"
1757+
},
17541758
"story_titles": {
17551759
"en": "Story titles",
17561760
"pt": "Títulos de história"
17571761
},
1762+
"story_acronym": {
1763+
"en": "Story acronym",
1764+
"pt": "Acrônimo de história"
1765+
},
1766+
"story_acronyms": {
1767+
"en": "Story acronyms",
1768+
"pt": "Acrônimos de história"
1769+
},
17581770
"stories_list": {
17591771
"en": "Stories list",
17601772
"pt": "Lista de Histórias"

Modules/Diary/Write_On_Diary/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def Type(self, presenter):
3333
self.presenter_text = None
3434

3535
while self.presenter_text not in self.finish_texts:
36-
self.presenter_text = self.Input.Lines(self.presenter + ": " + self.format_text_item, line_options_parameter = {"capitalize": True, "dots": True, "next_line": False})["string"]
36+
self.presenter_text = self.Input.Lines(self.presenter + ": " + self.format_text_item, line_options_parameter = {"capitalize": True, "next_line": False})["string"]
3737

3838
if self.presenter_text not in self.presenter_numbers:
3939
format_text = self.format_text

0 commit comments

Comments
 (0)