Skip to content

Commit

Permalink
LT: add README and github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkachov committed Feb 19, 2024
1 parent bac835f commit f85ba95
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/Localization Tool Release.yml
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
40 changes: 40 additions & 0 deletions LocalizationTool/README.txt
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.

0 comments on commit f85ba95

Please sign in to comment.