Skip to content

Commit

Permalink
Improve steamworks-related strings
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jul 26, 2024
1 parent 3e0f285 commit d183ff6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
29 changes: 22 additions & 7 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,26 +557,41 @@
"maxTextureDimension": {
"string": "Increase max vector costume resolution to make large costumes look better. May increase memory use and cause crashes."
},
"steamworksExtension": {
"string": "Steamworks Extension",
"developer_comment": "Title of section that appears when using the Steamworks extension"
},
"steamworksDocumentation": {
"string": "See the extension's documentation for more details.",
"developer_comment": "Link to more documentation about the Steamworks extension"
},
"steamworksUnavailable": {
"string": "To enable the Steamworks extension, you must use one of these environments:"
"string": "To enable the Steamworks extension, you must use one of these environments:",
"developer_comment": "Followed by a list of environments"
},
"steamworksAvailable": {
"string": "This project is using the Steamworks extension. You can find your game's app ID in Steamworks. 480 is the ID of the Steamworks demo game (Spacewar)."
"string": "This project is using the Steamworks extension. You can find your game's App ID in Steamworks, or use {n} for testing with the Steamworks demo game.",
"developer_comment": "{n} is 480."
},
"steamworksAppId": {
"string": "App ID"
"string": "App ID",
"developer_comment": "Steamworks App ID"
},
"steamworksOnError": {
"string": "If there is an error initializing Steamworks"
"string": "If there is an error initializing Steamworks",
"developer_comment": "Followed by a drop down: 'do nothing', 'show a warning ...', 'show an error ...'"
},
"steamworksIgnore": {
"string": "Do nothing"
"string": "Do nothing",
"developer_comment": "Part of dropdown for what to do if Steamworks has an error"
},
"steamworksWarning": {
"string": "Show a warning but continue"
"string": "Show a warning but continue",
"developer_comment": "Part of dropdown for what to do if Steamworks has an error"
},
"steamworksError": {
"string": "Show an error and exit"
"string": "Show an error and exit",
"developer_comment": "Part of dropdown for what to do if Steamworks has an error"
},
"package": {
"string": "Package",
Expand Down
8 changes: 6 additions & 2 deletions src/p4/PackagerOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1020,9 +1020,9 @@
]);
}}
>
<h2>Steamworks</h2>
<h2>{$_('options.steamworksExtension')}</h2>
{#if ['electron-win64', 'electron-linux64', 'electron-mac'].includes($options.target)}
<p>{$_('options.steamworksAvailable')}</p>
<p>{$_('options.steamworksAvailable').replace('{n}', '480')}</p>
<label class="option">
{$_('options.steamworksAppId')}
<input pattern="\d+" minlength="1" bind:value={$options.steamworks.appId}>
Expand All @@ -1043,6 +1043,10 @@
<li>{$_('options.application-linux64').replace('{type}', 'Electron')}</li>
</ul>
{/if}

<p>
<a href="https://extensions.turbowarp.org/steamworks">{$_('options.steamworksDocumentation')}</a>
</p>
</Section>
{/if}

Expand Down

0 comments on commit d183ff6

Please sign in to comment.