|
26 | 26 | "prompt": "Please enter your choice (1-2): " |
27 | 27 | }, |
28 | 28 | "script_execution": { |
29 | | - "failed_read_info": "Failed to read info.json: {}", |
30 | | - "invalid_json": "Invalid JSON in info.json: {}", |
| 29 | + "failed_read_info": "Failed to read info.json: {0}", |
| 30 | + "invalid_json": "Invalid JSON in info.json: {0}", |
31 | 31 | "no_scripts": "No available scripts.", |
32 | 32 | "available_scripts": "Available scripts:", |
33 | | - "run_prompt": "Enter the number of the script to run (1-{}), or type 'exit' to return: ", |
| 33 | + "run_prompt": "Enter the number of the script to run (1-{0}), or type 'exit' to return: ", |
34 | 34 | "returning": "Returning to main menu.", |
35 | | - "running_script": "Running script `{}`...", |
36 | | - "invalid_choice": "Invalid choice, please enter a number between 1 and {}." |
| 35 | + "running_script": "Running script `{0}`...", |
| 36 | + "invalid_choice": "Invalid choice, please enter a number between 1 and {0}." |
37 | 37 | }, |
38 | 38 | "url_script": { |
39 | 39 | "enter_url": "Enter the URL of the script (or type 'exit' to return): ", |
40 | | - "script_content": "Script content from {}: \n{}", |
| 40 | + "script_content": "Script content from {0}: \n{1}", |
41 | 41 | "executing": "Executing script...", |
42 | | - "failed_create_temp": "Failed to create temporary file: {}", |
43 | | - "failed_write": "Failed to write script to file: {}", |
44 | | - "failed_executable": "Failed to make script executable: {}", |
| 42 | + "failed_create_temp": "Failed to create temporary file: {0}", |
| 43 | + "failed_write": "Failed to write script to file: {0}", |
| 44 | + "failed_executable": "Failed to make script executable: {0}", |
45 | 45 | "success": "Script executed successfully!", |
46 | | - "failed_status": "Script execution failed with status: {}", |
47 | | - "failed_execute": "Failed to execute script: {}", |
48 | | - "failed_remove_temp": "Warning: Failed to remove temporary file: {}", |
49 | | - "failed_read_content": "Failed to read script content: {}", |
50 | | - "failed_fetch": "Failed to fetch script from URL: {}" |
| 46 | + "failed_status": "Script execution failed with status: {0}", |
| 47 | + "failed_execute": "Failed to execute script: {0}", |
| 48 | + "failed_remove_temp": "Warning: Failed to remove temporary file: {0}", |
| 49 | + "failed_read_content": "Failed to read script content: {0}", |
| 50 | + "failed_fetch": "Failed to fetch script from URL: {0}" |
51 | 51 | }, |
52 | 52 | "link_script": { |
53 | | - "failed_read": "Failed to read .link file: {}", |
54 | | - "downloading": "Downloading script from URL: {}" |
| 53 | + "failed_read": "Failed to read .link file: {0}", |
| 54 | + "downloading": "Downloading script from URL: {0}" |
55 | 55 | }, |
56 | 56 | "update_menu": { |
57 | 57 | "title": "=== Version Switch ===", |
58 | 58 | "latest": "Latest release", |
59 | 59 | "latest_dev": "Latest dev build", |
60 | 60 | "other": "Other versions(and dev version)", |
61 | 61 | "prompt": "Please enter your choice (1-3): ", |
62 | | - "select_prompt": "Select a version (1-{}), or type 'exit' to return: ", |
63 | | - "downloading": "Downloading version {}...", |
| 62 | + "select_prompt": "Select a version (1-{0}), or type 'exit' to return: ", |
| 63 | + "downloading": "Downloading version {0}...", |
64 | 64 | "not_found": "No binary available for this platform.", |
65 | 65 | "no_release": "No release found.", |
66 | | - "download_failed": "Failed to download file: {}", |
67 | | - "replace_failed": "Failed to replace executable: {}", |
| 66 | + "download_failed": "Failed to download file: {0}", |
| 67 | + "replace_failed": "Failed to replace executable: {0}", |
68 | 68 | "success": "Update complete. Please restart the program." |
69 | 69 | }, |
70 | 70 | "main": { |
|
0 commit comments