Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

A simple utility program to store strings in files.

License

Notifications You must be signed in to change notification settings

roryclaasen/language-file-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Language file reader

This is a java project that allows the user to read language files to retrieve strings use in their program

Instalation

This project is licensed under the MIT license

  1. Click here to find the latest release.
    Download the jar or the src files and add them to youre project
    • You could also download the whole project at this current version
  2. Using git shell or a such like program cd to project directory and run the command git submodule add https://github.com/GOGO98901/language-file-reader.git languageUtils.
    Then add the src folder to your project

Usage

The examples given are using the example lang file. View the example java file here.
To load the language file use

LanguageFile enUK = new LanguageFile("en_UK.lang");
LangUtil.setLanguageFile(enUK);
LangUtil.readLanguageFile();

or

LanguageFile enUK = new LanguageFile("en_UK.lang");
LangUtil.setLanguageFileAndRead(enUK);

and then to print your strings use

String title = LangUtil.get("net.roryclaasen.title");
System.out.println(title);

You can also hard code phrases using

LangUtil.addHardcodeString(key, phrase);

Example lang file

en_UK.lang

net.roryclaasen.title=Language File Reader
test.1.example=Testing 1 2 3

About

A simple utility program to store strings in files.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages