GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - YAFNET/YAF.LanguageManager: Tool for synchronization, packing and automatic translation of YAF.NET language files

BranchesTags
Open more actions menu

Latest commit

 

History

185 Commits
185 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
YAFNET.LanguageManager.Tests
YAFNET.LanguageManager.Tests
 
 
YAFNET.LanguageManager
YAFNET.LanguageManager
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
YAFNET.LanguageManager.slnx
YAFNET.LanguageManager.slnx
 
 

Repository files navigation

YAFNET.LanguageManager

build status NuGet

A .NET global tool for synchronizing, minifying, and automatically translating YetAnotherForum.NET JSON language files.

It keeps every *.json language file in a folder in sync with english.json — adding missing pages/resources, removing resources that no longer exist in the source, and optionally auto-translating new or untouched strings via Google Translate.

Prerequisites

  • .NET 11 SDK or later (runtime is enough to run the tool once installed)

Installation

Install as a global .NET tool:

dotnet tool install -g YAFNET.LanguageManager

Update to the latest version:

dotnet tool update -g YAFNET.LanguageManager

Uninstall:

dotnet tool uninstall -g YAFNET.LanguageManager

The tool is installed as yaf-langmgr.

Usage

yaf-langmgr <pathToLanguageFiles> [options]

The target folder must contain english.json (the source of truth) alongside the other <language>.json files to keep in sync.

Arguments

Argument Description
pathToLanguageFiles Path to the folder containing english.json and the other language files. Relative paths are resolved against the current directory.

Options

Option Description
-sync Synchronize all language files against english.json: adds missing pages/resources (auto-translating new strings) and removes resources that no longer exist in the source.
-translateGoogle Auto-translate resources whose text still matches the English source, using the free Google Translate endpoint.
-minify Minify all language files (compact JSON, no indentation).
-uglify Un-minify all language files (pretty-printed, indented JSON).
-help, -? Show usage help.

Examples

Synchronize all language files in a folder with english.json, translating any new strings:

yaf-langmgr C:\YAF\Languages -sync

Synchronize and machine-translate any strings still left in English:

yaf-langmgr C:\YAF\Languages -sync -translateGoogle

Minify all language files before shipping a release:

yaf-langmgr C:\YAF\Languages -minify

Pretty-print previously minified language files for editing:

yaf-langmgr C:\YAF\Languages -uglify

License

YAFNET.LanguageManager is licensed under the Apache 2.0 license.

Yet Another Forum Community Support

If you have any questions, please visit the YAF Community Support forum: https://forum.yetanotherforum.net, or visit the Wiki for More Informations.

About

Tool for synchronization, packing and automatic translation of YAF.NET language files

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.