From 5a8530a69c85b4f6bddcca9dc0f2bcaa8afddf47 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 28 Mar 2014 10:43:16 +0000 Subject: [PATCH] Updated language support instructions. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 53ccf75d..9a08fb0e 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,10 @@ The installer and Python script both require the built LOOT.exe to be at `build\ If a translation for a new language is provided, here's what needs changing to make LOOT use that translation. -* Add constants for the language in `api.h` and `globals.h`. -* In `helpers.cpp`, update `Language::Language(const std::string& nameOrISOCode)` and `Language::Construct(const unsigned int code). -* In `helpers.h`, update `Language::Names()`. -* In `main.cpp`, update `LOOT::OnInit` to set the correct `wxLANGUAGE_`. -* In `archive.py`, add the language folder to the inline list on line 68. -* In `installer.nsi`, add entries for the language folder to the install and uninstall sections. If there's an installer translation, also add its string definitions beside all the other language string definitions, and insert its macro beside all the other language macros. +* In [helpers.h](src/backend/helpers.h), add a static constant for the language to the `Language` class, and update `Language::Names()`. +* In [helpers.cpp](src/backend/helpers.cpp), update `Language::Language(const std::string& nameOrCode)` and `Language::Construct(const unsigned int code). +* Add constants for the language in [api.h](src/api/api.h) and [api.cpp](src/api/api.cpp). +* In [main.cpp](src/gui/main.cpp, update `LOOT::OnInit` to set the correct `wxLANGUAGE_`. +* In [archive.py](src/archive.py), add the language folder to the inline list on line 68. +* In [installer.nsi](src/installer.nsi), add entries for the language folder to the install and uninstall sections. If there's an installer translation, also add its string definitions beside all the other language string definitions, and insert its macro beside all the other language macros. * The readmes should be updated with a link to the translation in the repository in the main readme, and the language's code in the metadata syntax readme.