Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial localizations #121

Merged
merged 2 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/src/main/java/com/crisiscleanup/ui/TutorialGraphics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal fun TutorialOverlay(
val t = LocalAppTranslator.current
val textMeasurer = rememberTextMeasurer()

val stepForwardText = t("~~(Press anywhere on screen to continue tutorial)")
val stepForwardText = t("tutorial.press_anywhere_continue")

val navBarSizePosition = tutorialViewLookup[TutorialViewId.AppNavBar] ?: LayoutSizePosition()

Expand Down Expand Up @@ -80,9 +80,9 @@ internal fun TutorialOverlay(

val viewSizeOffset = getDynamicSpotlightSizeOffset(viewSizePosition)
val instructionKey = if (viewId == TutorialViewId.ProvideFeedback) {
"~~Let us know of any issues with this app"
t("tutorial.report_issues")
} else {
"~~Invite teammates to Crisis Cleanup"
t("tutorial.invite_teammates")
}
val stepInstruction = t(instructionKey)
menuTutorialDynamicContent(
Expand Down Expand Up @@ -116,7 +116,7 @@ internal fun TutorialOverlay(
stepForwardOffset,
)

val stepInstruction = t("~~Use the navigation tabs to start Working")
val stepInstruction = t("tutorial.use_nav_to_work")
menuTutorialAppNav(
textMeasurer,
isHorizontalBar,
Expand All @@ -136,7 +136,7 @@ internal fun TutorialOverlay(
)

val viewSizeOffset = getAppBarSpotlightSizeOffset(viewSizePosition)
val stepInstruction = t("~~Open account information")
val stepInstruction = t("tutorial.open_profile")
menuTutorialAccountToggle(
textMeasurer,
isHorizontalBar,
Expand All @@ -156,7 +156,7 @@ internal fun TutorialOverlay(
)

val viewSizeOffset = getAppBarSpotlightSizeOffset(viewSizePosition, 1.2f)
val stepInstruction = t("~~Select and change Incidents")
val stepInstruction = t("tutorial.select_change_incidents")
menuTutorialSelectIncident(
textMeasurer,
viewSizeOffset,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private fun MenuTutorial(
verticalAlignment = Alignment.CenterVertically,
) {
Text(
text = t("~~Open tutorial"),
text = t("tutorial.open_tutorial"),
modifier = Modifier
.clickable(
onClick = onStartTutorial,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fun RequestRedeployRoute(
val incidents = readyState.incidents
if (incidents.isEmpty()) {
Text(
t("~~There are no Incidents left for deploying."),
t("requestRedeploy.system_thinks_access_all_incidents"),
listItemModifier,
)
} else {
Expand Down Expand Up @@ -219,14 +219,14 @@ private fun IncidentOptions(
if (isApproved) {
Icon(
CrisisCleanupIcons.Check,
contentDescription = t("~~{incident_name} is already approved")
contentDescription = t("requestRedeploy.you_already_have_access_to_incident_name")
.replace("{incident_name}", incident.shortName),
tint = green600,
)
} else if (isRequested) {
Icon(
CrisisCleanupIcons.PendingRequestRedeploy,
contentDescription = t("~~{incident_name} is already awaiting redeploy")
contentDescription = t("requestRedeploy.existing_request_pending_name")
.replace("{incident_name}", incident.shortName),
)
}
Expand Down
Loading