My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
JavaProperties  
Java properties localization file example
Updated Mar 21, 2011 by phong.le...@gtempaccount.com

Introduction

Java properties file is usually used in storing the properties in Java application. But it can be also used in localization. The format of the file can be referenced from http://en.wikipedia.org/wiki/.properties

Example

# You are reading the ".properties" entry.
! The exclamation mark can also mark text as comments.
website = http://en.wikipedia.org/
language = English
# The backslash below tells the application to continue reading
# the value onto the next line.
message = Welcome to \
          Wikipedia!
# Add spaces to the key
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
# Unicode
tab : \u0009
Powered by Google Project Hosting