I made this as a proof of concept for translating the game. Currently it’s very basic but eventually it will hook into the account options to allow people to select a translation. Right now everything is hard coded and it just shortens some stuff. I only speak English, so there’s that problem also.
What it does
(not much)
Installation
To install just get Greasemonkey (Firefox extension) then go here. Tapermonkey (Chrome extension) might work, I’ve not tested it.
How to modify
Open the file in Greasemonkey or a source code editor. Familiarity with coding is useful. The lines which deal with template translation are 164 to 2083. Most of these are commented out and do nothing.
There are 4 sets of templates. A set each for Triton, Proteus, the main menu and a default one which applies everywhere.
For example you might want to change the leaderboard where it says:
Empires that have been kicked for inactivity:
Search the file for that string returns:
// "afk_player_list":"Empires that have been kicked for inactivity:<br>[[names]]",
Uncomment (remove “//”) and translate:
“afk_player_list”:“လှုပ်ရှားမှုအဘို့အကန်ခဲ့ကြကြောင်းအင်ပါယာ:<br>[[names]]”,
When done save the file in greasemonkey and reload the game.
I will probably move to pure JSON files but right now it’s easy to just share the full source.
Licensing: This file is technically illegal since it includes copy-paste template text from NP. Even when translated and not including the original text this would be a derivative and also subject to copyright protection. Everything which is not copyrighted by Jay I will eventually release under MIT licence.