GithubHelp home page GithubHelp logo

rmraya / javapm Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 19.66 MB

Project management for localizing Java .properties files

Home Page: https://maxprograms.com/products/javapm.html

License: Eclipse Public License 1.0

Java 56.81% Batchfile 0.74% Shell 0.85% AMPL 35.67% Clean 5.93%
java localization properties xliff

javapm's Introduction

JavaPM

JavaPM icon

Java Properties Manager

JavaPM is a set of scripts for localizing Java projects using XLIFF as an intermediate format.

JavaPM scans a source folder for all Java resource bundles and converts all source .properties files into a single XLIFF file.

After translating an XLIFF file created by JavaPM, import it to generate the .properties files corresponding to the target language.

Binary downloads

You can download compressed binary packages for Windows, macOS and Linux from https://maxprograms.com/products/javapm.html.

Convert .properties to XLIFF

Running .\createxliff.bat or ./createxliff.sh without parameters displays help for XLIFF generation.

Usage:

    createxliff.bat [-help] -src sourceFolder -xliff xliffFile -srcLang sourceLanguage [-tgtLang targetLanguage] [-reuse] [-2.0]

Where:

   -help:      (optional) display this help information and exit
   -src:       source code folder
   -xliff:     XLIFF file to generate
   -srcLang:   source language code
   -enc:       (optional) character set code for .properties files; default: ISO-8859-1
   -tgtLang:   (optional) target language code
   -reuse:     (optional) reuse existing translations
   -2.0:       (optional) generate XLIFF 2.0

Import translated XLIFF

Running .\mergexliff.bat or ./mergexliff.sh without parameters displays help for importing translated XLIFF files.

Usage:

    mergexliff.sh [-help] -src sourceFolder -xliff xliffFile

Where:

    -help:       (optional) display this help information and exit
    -src:        source code folder
    -xliff:      XLIFF file to merge
    -unapproved: (optional) accept translations from unapproved segments
    -export:     (optional) generate TMX file from approved segments

Build Requirements

  • JDK 17 or newer is required for compiling and building.
  • Apache Ant 1.10.12 or newer.

Pre-built binaries already include everything you need to run all options.

Building

  • Checkout this repository.
  • Point your JAVA_HOME variable to JDK 17
  • Run ant to generate a binary distribution in ./dist

Steps for building

  git clone https://github.com/rmraya/JavaPM.git
  cd JavaPM
  ant

A binary distribution will be created in /dist folder.

javapm's People

Contributors

rmraya avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.