-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LT: add README and github release action
- Loading branch information
Showing
2 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: "Localization Tool Release" | ||
|
||
permissions: | ||
contents: write | ||
packages: read | ||
|
||
on: | ||
push: | ||
tags: | ||
- "LT/v*" | ||
|
||
env: | ||
CSPROJ: LocalizationTool/LocalizationTool.csproj | ||
PUBLISH_DIR: LocalizationTool/bin/Release/net7.0-windows/publish/win-x64/ | ||
|
||
jobs: | ||
publish: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Publish the project | ||
run: dotnet publish ${{ env.CSPROJ }} -p:PublishProfile=FolderProfile | ||
|
||
- name: Add LICENSE.txt | ||
run: cp LICENSE.txt ${{ env.PUBLISH_DIR }} | ||
|
||
- name: Add README.txt | ||
run: cp LocalizationTool/README.txt ${{ env.PUBLISH_DIR }} | ||
|
||
- name: Generate names by tag | ||
id: names | ||
shell: bash | ||
run: | | ||
{ | ||
ref="${{ github.ref }}" | ||
ref=${ref//refs\/tags\//} | ||
release_name=${ref/LT\/v/Localization Tool (v. } | ||
echo "release_name=${release_name})" >> $GITHUB_OUTPUT | ||
archive_name=${ref/LT\/v/LocalizationTool_v} | ||
archive_name=${archive_name// /_} | ||
echo "archive_name=${archive_name}.zip" >> $GITHUB_OUTPUT | ||
} | ||
- name: Zip the files | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
filename: ${{ steps.names.outputs.archive_name }} | ||
directory: ${{ env.PUBLISH_DIR }} | ||
exclusions: "*.pdb" | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: ${{ steps.names.outputs.release_name }} | ||
omitBody: true | ||
artifacts: "${{ env.PUBLISH_DIR }}${{ steps.names.outputs.archive_name }}" | ||
makeLatest: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Localization Tool allows you to open, modify and save .localization files. | ||
|
||
# About | ||
|
||
Supported games: | ||
- Marvel's Spider-Man Remastered | ||
- Marvel's Spider-Man: Miles Morales | ||
- Ratchet & Clank: Rift Apart | ||
|
||
Created by DemonRed. | ||
Nexus Mods page: | ||
https://www.nexusmods.com/ratchetandclankriftapart/mods/37 | ||
|
||
Shares part of the codebase with Overstrike. | ||
Source code is available in its Github repository: | ||
https://github.com/Tkachov/Overstrike | ||
|
||
# Installation | ||
|
||
Like Overstrike, it is made for 64-bit version of Windows. | ||
On Linux, you can try using Proton to run it, but it's not guaranteed to work. | ||
|
||
To run, it needs x64 version of .NET 7.0 Desktop Runtime installed: | ||
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-7.0.10-windows-x64-installer?cid=getdotnetcore | ||
|
||
# Usage | ||
|
||
Use File menu to load an existing .localization file, create a new one | ||
and save changes in the currently open one. | ||
|
||
You can use Undo/Redo to revert your changes or apply them back. | ||
|
||
If you want to edit flags column, enable it with View > Show flags. | ||
|
||
You can search by localization key names, localized strings, or both. | ||
Click on column header to sort, and click again to change the order to reverse. | ||
|
||
Double click into key, value or flags of an entry to edit. | ||
Press Delete key to delete a selected entry. | ||
Write key name, value (and flags, if enabled), then press Add to add a new entry. |