Tarrasch Chess GUI / src / Lang.h

/****************************************************************************
 * Simple language support (for notation only)
 *  Author:  Bill Forster
 *  Licence: See licencing information in ChessPosition.cpp
 *  Copyright 2010, Triple Happy Ltd.  All rights reserved.
 ****************************************************************************/
#ifndef LANG_H
#define LANG_H
#include <string>
#include "wx/wx.h"

// Convert line of text, any language to any language
void LangLine( std::string &s, const char *from, const char *to );

// Get a list of known languages, NULL terminated, 1st is a template
const char **LangGetKnownArray();

// Start a check for changed language (return ptr to current lang lookup)
const char * LangCheckDiffBegin();

// End a check for changed language (return ptr to new lang lookup or NULL if no change)
const char * LangCheckDiffEnd();

// Set new language (sets English if string is invalid)
void LangSet( wxString &txt );

// Get current language
const char *LangGet();

// Convert native move to current language
void LangOut( std::string &s );

// Convert move, current language to English
void LangToEnglish( std::string &s, const char *language_lookup=0 );

// Convert line of text, any language to any language
void LangLine( std::string &s, const char *from, const char *to );

// Check a language specification string, uppercasing it if necessary
bool LangValidateString( wxString &txt );

#endif // LANG_H
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.