-
Notifications
You must be signed in to change notification settings - Fork 1.1k
How To Translate Strings In WebcamPanel
sarxos edited this page Mar 17, 2013
·
1 revision
- In your own project, create package "com.github.sarxos.webcam.i18n"
- In this package, create fiele WebcamPanel_[language]_[country].properties (e.g. WebcamPanel_pl_PL.properties) where:
- [language] - is two letter language code (e.g. en, de, pl, ru),
- [country] - is two letter country code (e.g US, CN, TR)
For complete list of supported Java locales, check this site.
Put this content in the file you have created:
INITIALIZING_DEVICE = [your translation of "device initialization"]
NO_IMAGE = [your translation of "no image"]
DEVICE_ERROR = [your translation of "device error"]
(of course you have include real translation instead of above strings)