This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Localization guide
futpib edited this page Feb 4, 2015
·
4 revisions
- Download and extract latest zipped Policeman sources
- Find out your language code (here is a language codes table)
- Copy
/src/chrome/locale/en-US/
to/src/chrome/locale/<Your language code>
- Edit and Translate
/src/chrome/locale/<Your language code>/policeman.properties
(it's a plain text file)- leave left-hand
key =
parts intact - note that special
%1$S
(%2$S
etc.) parts will be replaced depending on context (it may be a number, domain name or something like that), so when original string contains N of these, your translation must have N of them as well - take comments into account (comments start with
#
) - the file has to be
utf-8
-encoded (any modern text editor will take care of that for you, I believenotepad.exe
will not)
- leave left-hand
- Rulesets are located at
/src/defaults/rulesets/
, they are pretty straightforward to translate too, just copy an existing localization block and change the language code and strings - Send your work to [email protected] or comment on this issue (github account required)