From f85ba9531b57ba1799d1d8ce7ddaa5dfc4d5c92b Mon Sep 17 00:00:00 2001 From: Alexander Tkachov Date: Mon, 19 Feb 2024 23:22:40 +0100 Subject: [PATCH] LT: add README and github release action --- .../workflows/Localization Tool Release.yml | 67 +++++++++++++++++++ LocalizationTool/README.txt | 40 +++++++++++ 2 files changed, 107 insertions(+) create mode 100644 .github/workflows/Localization Tool Release.yml create mode 100644 LocalizationTool/README.txt diff --git a/.github/workflows/Localization Tool Release.yml b/.github/workflows/Localization Tool Release.yml new file mode 100644 index 0000000..4712161 --- /dev/null +++ b/.github/workflows/Localization Tool Release.yml @@ -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/zip-release@0.7.5 + 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 diff --git a/LocalizationTool/README.txt b/LocalizationTool/README.txt new file mode 100644 index 0000000..85c538c --- /dev/null +++ b/LocalizationTool/README.txt @@ -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.