diff --git a/README.md b/README.md index 45879bb..25db511 100644 --- a/README.md +++ b/README.md @@ -221,16 +221,21 @@ If you wanted to have the js in-line, then you can use the `-j` or `--local-js` There's an old saying that goes, "If you know more than one language you're multilingual, if you don't you're British." Not only is that a damning indictment of the British mentality towards other languages, but also goes to explain why the UI has only so far been in English - because I am, for all my sins, British. -However, it is now possible to build the interface with a different language. Currently, thanks to a contributor, French is also supported. If anyone else wants to contribute additional language packs, please submit a PR! +However, it is now possible to build the interface with a different language. Currently, thanks to contributors, French and Spanish are also supported. If anyone else wants to contribute additional language packs, please submit a PR! If the language pack is in the `build/_languages/` directory then you can use that with the `-l` or `--lang` flag. For example, if there is a `fr.json` language pack then you can use `php ./build/build.php -l fr` in order to build with that language. +There have been a few composer scripts added to help with the building. They are, `composer build`, `composer build-french`, and `composer build-spanish`. + If you want to create a language file then `build/_languages/example.json` contains all you need. It's a simple json structure with the key being the English version which matches what's in the UI, and the value is what you're converting it to - which in the example file is just blank. If a value is empty or the index doesn't exist for a translation, then it'll just use the English version. This gives you the ability to replace some or all of the interface strings as you see fit. -So to get started with a new language, copy the `example.json` to the language you want that doesn't already exist - for example, `pt-br.json`. Then fill in the translations into the values. Once done, rebuild with `php ./build/build.php -l pt-br`. +To get started with a new language, copy the `example.json` to the language you want that doesn't already exist - for example, `pt-br.json` or `pirate.json`. Then fill in the translations into the values. Once done, rebuild with `php ./build/build.php -l pt-br` or `php ./build/build.php -l pirate`. ## Releases +**Version 3.5.5**\ +Added Spanish translations thanks to @cvc90 (PR#110) + **Version 3.5.4**\ Better handling of whether JIT is enabled or disabled. Now also shows _why_ it might be disabled even if you have the setting turned on. The interface also disables the graph and memory stats correctly for JIT if it's disabled for any reason. diff --git a/build/_frontend/interface.jsx b/build/_frontend/interface.jsx index 878a361..375fb99 100644 --- a/build/_frontend/interface.jsx +++ b/build/_frontend/interface.jsx @@ -91,7 +91,10 @@ class Interface extends React.Component { txt={this.txt} /> -