Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Add more descriptive text for missing translations #91

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aabounegm
Copy link
Collaborator

Closes #76

@github-actions
Copy link

github-actions bot commented May 13, 2022

Visit the preview URL for this PR (updated for commit 6910ab9):

https://andaxapp--pr91-missing-translation-4gq41a4w.web.app

(expires Sun, 22 May 2022 19:57:16 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@@ -23,7 +23,7 @@ class NodeDisplay extends StatelessWidget {
final play = context.watch<PlayScreenState>();
final audioPlayer = play.audio;
final actor = play.actors[node.actorId];
final text = play.tr.node(node, allowEmpty: true);
Copy link
Collaborator

@alkaitagi alkaitagi May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[issue] Sometimes nodes need to have no text. For example, when a node used as cell-writer or as a logical route. Or even media-only nodes that just show image \ audio. For such nodes no message card should be displayed. Without allowEmpty, we have no way to know when a node is not indented to have any text.

[suggestion, non-blocking] Alternatively, we might introduce bool display field for Node model, with corresponding toggle in the Node Editor. This will be additionally useful for the timer management, as there's no need to wait and show the typing indicator for such "logic" nodes.

Or we can take it even further, and make an array of new Content objects for Node. The Content class will have various descendants such as TextContent, AudioContent, ImageContent, etc., and editors will be able to array them in the editor, controlling the contents of a node. And so a "logic" node will be that with empty contents array.

Copy link
Collaborator

@alkaitagi alkaitagi May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An example of logic (or non-display) node from the tutorial:
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show something when a translation is missing
2 participants