35 #include <boost/test/unit_test.hpp> 44 BOOST_CHECK_EQUAL(
TE_TR(
"BR-GIS"),
"SIG-BR");
45 BOOST_CHECK_EQUAL(
TE_TR(
"Wrong cryptographer algorithm type!"),
"O tipo de algoritmo de criptografia está errado!");
46 BOOST_CHECK_EQUAL(
TE_TR(
"You must specify a logger configuration file!"),
"Você deve especificar o arquivo de configuração do logger!");
47 BOOST_CHECK_EQUAL(
TE_TR(
"It was not possible to initialize the the logger!"),
"Não foi possível inicializar o logger!");
48 BOOST_CHECK_EQUAL(
TE_TR(
"Invalid logger configuration type!"),
"Tipo de configuração inválido para o logger!");
49 BOOST_CHECK_EQUAL(
TE_TR(
"The logger name is empty!"),
"O nome do logger está vazio!");
50 BOOST_CHECK_EQUAL(
TE_TR(
"TerraLib Core Initialized!"),
"O módulo Core do TerraLib foi inicializado!");
51 BOOST_CHECK_EQUAL(
TE_TR(
"TerraLib Core Finalized!"),
"O módulo Core do TerraLib foi finalizado!");
52 BOOST_CHECK_EQUAL(
TE_TR(
"The text domain already exist."),
"Text domain já existente.");
53 BOOST_CHECK_EQUAL(
TE_TR(
"The text domain doesn't exist."),
"O text domain informado não existe.");
55 BOOST_CHECK_EQUAL(
TE_TR(
"The unprepared english text will remain the same."),
"The unprepared english text will remain the same.");
58 BOOST_CHECK_EQUAL(
TE_TR_PLURAL(
"1 layer is selected.",
"2 layers are selected.", 2),
"2 camadas estão selecionadas.");
59 BOOST_CHECK_EQUAL(
TE_TR_PLURAL(
"1 layer is selected.",
"2 layers are selected.", 1),
"1 camada está selecionada.");
63 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(translator_test_case) BOOST_AUTO_TEST_CASE(translator_test)
#define TE_TR(message)
It marks a string in order to get translated.
#define TE_TR_LANGUAGE(locale)
It sets the locale for the Translator.
#define TE_ADD_TEXT_DOMAIN(domain, dir)
It adds the given text domain and its directory to the multilingual system.
This class is designed for dealing with multi-language text translation in TerraLib.
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.
BOOST_AUTO_TEST_CASE(encoding_test_utf8_latin1)
#define TE_TR_PLURAL(message1, message2, n)
It marks a string in order to get translated according to plural form.
Base exception class for TerraLib Core Runtime Library.
Exception classes for the TerraLib Core Runtime Library.