ximol/translation.hpp File Reference


Detailed Description

gettext wrapper for the library.

Warning:
This file must be include only in cpp file.
Author:
Tournois Florent
Version:
1.0
Id
translation.hpp,v 1.14 2004/03/03 22:05:30 tournois Exp
Log
translation.hpp,v
Revision 1.14 2004/03/03 22:05:30 tournois Add a short roadmap. Add BOOST_NO_STD_WSTRING for gcc.

Revision 1.13 2004/02/25 15:57:06 tournois no message

Revision 1.12 2004/02/22 10:27:33 tournois Add some doc.

Revision 1.11 2004/02/22 09:54:19 tournois Change years on the copyright.

Revision 1.10 2004/02/19 18:59:27 tournois attribute doc

Revision 1.9 2003/12/03 12:59:34 hfp include dependencies and type forwarding

Revision 1.8 2003/11/18 18:54:51 tournois Add str_cast and drop the transformation.hpp file.

Revision 1.7 2003/11/17 22:06:01 tournois Add traits for relation stream--object. Change cast.

Revision 1.6 2003/11/16 18:15:54 tournois Write operator>> et operator<< for (wostream and char,string) and (ostream and wchar_t, wstring).

Revision 1.5 2003/11/16 13:25:25 tournois Change the error to use wide string. Change the translation to use wide string.

Revision 1.4 2003/11/16 11:03:23 tournois no message

Revision 1.3 2003/11/02 19:23:01 tournois Go to the boost coding standard. Change all name to lower case.

Revision 1.2 2003/09/24 08:28:17 tournois Create the namespace Encoders, Parser, Xml Change the library organization. add VC7.1 project for this organization.

Definition in file translation.hpp.

#include <ximol/namespace_defs.hpp>
#include <ximol/export_defs.hpp>
#include <ximol/str_cast.hpp>
#include <string>
#include <list>

Include dependency graph for translation.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

XIMOL_BEGIN_NAMESPACE XIMOL_EXPORT
const wchar_t * 
translate (const wchar_t *x)
 base function for the translation.

XIMOL_EXPORT std::wstring translate (const std::wstring &x, const std::list< std::wstring > &args)
 Translate the base string and place arguments.

XIMOL_EXPORT std::wstring _ (const std::wstring &x)
 Function for the translation with 0 argument.

template<typename T1> std::wstring _ (const std::wstring &x_start, const T1 &t1)
 Function for the translation with 1 argument.

template<typename T1, typename T2> std::wstring _ (const std::wstring &x_start, const T1 &t1, const T2 &t2)
 Function for the translation with 2 arguments.

template<typename T1, typename T2, typename T3> std::wstring _ (const std::wstring &x_start, const T1 &t1, const T2 &t2, const T3 &t3)
 Function for the translation with 3 arguments.

template<typename T1, typename T2, typename T3, typename T4> std::wstring _ (const std::wstring &x_start, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4)
 Function for the translation with 4 arguments.


Function Documentation

template<typename T1, typename T2, typename T3, typename T4>
std::wstring _ const std::wstring &  x_start,
const T1 &  t1,
const T2 &  t2,
const T3 &  t3,
const T4 &  t4
 

Function for the translation with 4 arguments.

o to print an object. % to print

Definition at line 167 of file translation.hpp.

References translate().

Referenced by change_ximol_facet_encoding(), char_data_content(), codecvt::create_encoding(), drop_next_element(), context::get_level_ns_tag(), context::get_level_short_ns_tag(), context::get_level_tag(), attributes::insert(), attributes::insert_namespace(), assignment_test_equality_policy::error_policy_throw::object_are_different(), read_att_list_decl(), read_att_value(), read_bom(), read_cd_end(), read_cd_start(), read_char_ref(), read_comment(), read_doctype_decl(), read_doctype_element(), read_element_decl(), read_enc_name(), read_encoding_decl(), read_entity_decl(), read_entity_ref(), read_entity_value(), read_eq(), read_etag(), read_external_id(), read_ge_decl(), read_misc(), read_name(), read_ncname(), read_ndata_decl(), read_nm_token(), read_notation_decl(), read_ns_att_name(), read_open_stag(), read_pe_decl(), read_pe_reference(), read_pi(), read_pi_target(), read_prolog_exclamation(), read_prolog_question(), read_pubid_literal(), read_public_id(), read_reference(), read_sd_decl(), read_space(), read_system_literal(), read_version_info(), read_version_num(), read_xchar(), read_xml_decl(), read_xstring(), xml_declaration< VersionInfo, EncodingDecl, SDDecl >::set_encoding_decl(), qualified_name< Prefix, Local >::set_prefix(), xml_declaration< VersionInfo, EncodingDecl, SDDecl >::set_sddecl(), write_att_value(), write_cdata(), write_char_data(), write_char_ref(), write_comment(), write_enc_name(), write_name(), write_ncname(), write_nm_token(), write_ns_att_name(), write_pi(), write_pi_target(), write_pubid_literal(), write_string_with_forbidden_serie(), write_system_literal(), and write_version_num().

template<typename T1, typename T2, typename T3>
std::wstring _ const std::wstring &  x_start,
const T1 &  t1,
const T2 &  t2,
const T3 &  t3
 

Function for the translation with 3 arguments.

o to print an object. % to print

Definition at line 151 of file translation.hpp.

References translate().

template<typename T1, typename T2>
std::wstring _ const std::wstring &  x_start,
const T1 &  t1,
const T2 &  t2
 

Function for the translation with 2 arguments.

o to print an object. % to print

Definition at line 136 of file translation.hpp.

References translate().

template<typename T1>
std::wstring _ const std::wstring &  x_start,
const T1 &  t1
 

Function for the translation with 1 argument.

o to print an object. % to print

Definition at line 122 of file translation.hpp.

References translate().

XIMOL_EXPORT std::wstring _ const std::wstring &  x  ) 
 

Function for the translation with 0 argument.

Definition at line 93 of file translation.cpp.

References translate().

XIMOL_EXPORT std::wstring translate const std::wstring &  x,
const std::list< std::wstring > &  args
 

Translate the base string and place arguments.

Parameters:
x: the input string in english.
args: arguments serialized in wstring.
Returns:
the output string in other langage.

Definition at line 101 of file translation.cpp.

Referenced by _().

XIMOL_BEGIN_NAMESPACE XIMOL_EXPORT const wchar_t* translate const wchar_t *  x  ) 
 

base function for the translation.

Parameters:
x: the input string in english.
Returns:
the output string in other langage.

Definition at line 78 of file translation.cpp.

References start_translation().



Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.