Yokan / rebuild
Course 1 8624561

SignedCatalogText.kt

composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/browse/SignedCatalogText.kt

implementation48 lines
1package eu.friedcutlet.yokan.ui.screens.browse23internal fun signedCatalogText(text: SignedCatalogText): String = when (text) {4    SignedCatalogText.Title -> "Add signed catalog"5    SignedCatalogText.Close -> "Close"6    SignedCatalogText.PasteExplanation -> "Paste a catalog share code from a trusted publisher."7    SignedCatalogText.ShareCode -> "Share code"8    SignedCatalogText.ReviewCatalog -> "Review catalog"9    SignedCatalogText.ReviewExplanation -> "Compare this fingerprint with the publisher before trusting the signing key."10    SignedCatalogText.CatalogId -> "Catalog ID"11    SignedCatalogText.CatalogUrl -> "Catalog URL"12    SignedCatalogText.KeyId -> "Key ID"13    SignedCatalogText.Fingerprint -> "Fingerprint"14    SignedCatalogText.TrustConfirmation -> "I trust this signing key for this catalog"15    SignedCatalogText.EnrollCatalog -> "Enroll catalog"16    SignedCatalogText.EditCode -> "Edit code"17    SignedCatalogText.Enrolling -> "Enrolling catalog"18    SignedCatalogText.Enrolled -> "Catalog enrolled"19    SignedCatalogText.AlreadyEnrolled -> "Catalog already enrolled"20    SignedCatalogText.RefreshCatalog -> "Refresh catalog"21    SignedCatalogText.Refreshing -> "Refreshing catalog"22    SignedCatalogText.VerifiedExplanation -> "Catalog signature verified with your trusted key."23    SignedCatalogText.Revision -> "Revision"24    SignedCatalogText.Expires -> "Expires"25    SignedCatalogText.EmptyRecipes -> "No recipes are available."26    SignedCatalogText.Version -> "Version"27    SignedCatalogText.Size -> "Size"28    SignedCatalogText.Install -> "Install"29    SignedCatalogText.Installing -> "Installing"30    SignedCatalogText.Installed -> "Installed"31    SignedCatalogText.AlreadyInstalled -> "Already installed"32}3334internal fun signedCatalogErrorText(error: SignedCatalogError): String = when (error) {35    SignedCatalogError.InvalidCode -> "Enter a valid catalog share code."36    SignedCatalogError.TrustConfirmationRequired -> "Confirm that you trust the signing key before enrolling."37    SignedCatalogError.NotEnrolled -> "Enroll the catalog before refreshing it."38    SignedCatalogError.TrustMismatch -> "The catalog signing key does not match the enrolled trust policy."39    SignedCatalogError.StorageFailure -> "Catalog storage is unavailable."40    SignedCatalogError.StorageRejected -> "The catalog could not be enrolled."41    SignedCatalogError.Timeout -> "The catalog request timed out."42    SignedCatalogError.DownloadFailed -> "The catalog could not be downloaded."43    SignedCatalogError.CatalogRejected -> "The catalog was rejected."44    SignedCatalogError.ArtifactPolicyRejected -> "A catalog artifact violates the installation policy."45    SignedCatalogError.ArtifactUnavailable -> "The selected artifact is unavailable."46    SignedCatalogError.ArtifactRejected -> "The selected artifact was rejected."47    SignedCatalogError.Conflict -> "Catalog data changed. Refresh before installing."48}49

Search chapters, reference and source filenames.