// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Localisation; namespace osu.Game.Localisation { public static class DialogStrings { private const string prefix = @"osu.Game.Resources.Localisation.Dialog"; /// /// "Caution" /// public static LocalisableString CautionHeaderText => new TranslatableString(getKey(@"header_text"), @"Caution"); /// /// "Are you sure you want to delete the following:" /// public static LocalisableString DeletionHeaderText => new TranslatableString(getKey(@"deletion_header_text"), @"Are you sure you want to delete the following:"); /// /// "Yes. Go for it." /// public static LocalisableString Confirm => new TranslatableString(getKey(@"confirm"), @"Yes. Go for it."); /// /// "No! Abort mission" /// public static LocalisableString Cancel => new TranslatableString(getKey(@"cancel"), @"No! Abort mission"); /// /// "Failed to automatically locate an osu!stable installation." /// public static LocalisableString StableDirectoryLocationHeaderText => new TranslatableString(getKey(@"stable_directory_location_header_text"), @"Failed to automatically locate an osu!stable installation."); /// /// "An existing install could not be located. If you know where it is, you can help locate it." /// public static LocalisableString StableDirectoryLocationBodyText => new TranslatableString(getKey(@"stable_directory_location_body_text"), @"An existing install could not be located. If you know where it is, you can help locate it."); /// /// "Sure! I know where it is located!" /// public static LocalisableString StableDirectoryLocationOkButton => new TranslatableString(getKey(@"stable_directory_location_ok_button"), @"Sure! I know where it is located!"); /// /// "Actually I don't have osu!stable installed." /// public static LocalisableString StableDirectoryLocationCancelButton => new TranslatableString(getKey(@"stable_directory_location_cancel_button"), @"Actually I don't have osu!stable installed."); /// /// "All local scores on {0}" /// public static LocalisableString BeatmapClearScoresBodyText(string difficulty) => new TranslatableString(getKey(@"beatmap_clear_scores_body_text"), @"All local scores on {0}", difficulty); /// /// "Are you sure you want to close the following playlist:" /// public static LocalisableString ClosePlaylistHeaderText => new TranslatableString(getKey(@"close_playlist_header_text"), @"Are you sure you want to close the following playlist:"); /// /// "Are you sure you want to abort the match?" /// public static LocalisableString ConfirmAbortMatchHeaderText => new TranslatableString(getKey(@"confirm_abort_match_header_text"), @"Are you sure you want to abort the match?"); /// /// "Are you sure you want to exit osu!?" /// public static LocalisableString ConfirmExitHeaderText => new TranslatableString(getKey(@"confirm_exit_header_text"), @"Are you sure you want to exit osu!?"); /// /// "Last chance to turn back" /// public static LocalisableString ConfirmDialogBodyText => new TranslatableString(getKey(@"confirm_exit_body_text"), @"Last chance to turn back"); /// /// "There are currently some background operations which will be aborted if you continue: /// /// {0}" /// public static LocalisableString ConfirmExitBodyTextOngoingOperations(string ongoingOperationsText) => new TranslatableString(getKey(@"confirm_exit_body_text_ongoing_operations"), @"There are currently some background operations which will be aborted if you continue: {0}", ongoingOperationsText); /// /// "There are currently some background operations which will be aborted if you continue: /// /// {0} /// /// and {1} other operation(s)." /// public static LocalisableString ConfirmExitBodyTextOtherOngoingOperations(string ongoingOperationsText, int count) => new TranslatableString(getKey(@"confirm_exit_body_text_other_ongoing_operations"), @"There are currently some background operations which will be aborted if you continue: {0} and {1} other operation(s).", ongoingOperationsText, count); /// /// "Let me out!" /// public static LocalisableString ConfirmExitOkButton => new TranslatableString(getKey(@"confirm_exit_ok_button"), @"Let me out!"); /// /// "Just a little more..." /// public static LocalisableString ConfirmExitCancelButton => new TranslatableString(getKey(@"confirm_exit_cancel_button"), @"Just a little more..."); /// /// "Are you sure you want to go back?" /// public static LocalisableString ConfirmDiscardChangesHeaderText => new TranslatableString(getKey(@"confirm_discard_changes_header_text"), @"Are you sure you want to go back?"); /// /// "This will discard any unsaved changes" /// public static LocalisableString ConfirmDiscardChangesBodyText => new TranslatableString(getKey(@"confirm_discard_changes_body_text"), @"This will discard any unsaved changes"); /// /// "No I didn't mean to" /// public static LocalisableString ConfirmDiscardChangesCancelButton => new TranslatableString(getKey(@"confirm_discard_changes_cancel_button"), @"No I didn't mean to"); /// /// "Are you sure you want to open the following link in a web browser? /// /// {0}" /// public static LocalisableString ExternalLinkBodyText(string url) => new TranslatableString(getKey(@"external_link_body_text"), @"Are you sure you want to open the following link in a web browser? {0}", url); /// /// "Open in browser" /// public static LocalisableString ExternalLinkOkButton => new TranslatableString(getKey(@"external_link_ok_button"), @"Open in browser"); /// /// "Do you really want to delete your comment?" /// public static LocalisableString DeleteCommentBodyText => new TranslatableString(getKey(@"delete_comment_body_text"), @"Do you really want to delete your comment?"); /// /// "Are you sure you want to leave this multiplayer match?" /// public static LocalisableString ConfirmExitMultiplayerMatchBodyText => new TranslatableString(getKey(@"confirm_exit_multiplayer_match_body_text"), @"Are you sure you want to leave this multiplayer match?"); private static string getKey(string key) => $@"{prefix}:{key}"; } }