Skip to content

Commit

Permalink
Merge pull request #121 from CrisisCleanup/localizations_2024_08_16
Browse files Browse the repository at this point in the history
Tutorial localizations
  • Loading branch information
hueachilles committed Aug 17, 2024
2 parents 13463ba + 277bf4e commit 1a4bebd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
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

0 comments on commit 1a4bebd

Please sign in to comment.