![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
Oyjl API provides a platformindependent C interface for i18n handling. More...
#include <stdlib.h>#include <stdio.h>#include <string.h>Macros | |
| #define | OYJL_GETTEXT 0x400000 |
| use gettext More... | |
| #define | OYJL_NO_OPTIMISE 0x800000 |
| skip binary search More... | |
Typedefs | |
| typedef char *(* | oyjlTranslate_f) (oyjlTranslation_s *context, const char *string) |
| custom translator, for switching the translation engine More... | |
Functions | |
| char * | oyjlLanguage (const char *loc) |
| obtain language part of i18n locale code More... | |
| char * | oyjlCountry (const char *loc) |
| obtain country part of i18n locale code More... | |
| const char * | oyjlLang (const char *loc) |
| change language More... | |
| char * | oyjlTranslate (oyjlTranslation_s *context, const char *text) |
| translate string More... | |
| oyjlTranslation_s * | oyjlTranslation_New (const char *loc, const char *domain, oyjl_val *catalog, oyjlTranslate_f translator, void *user_data, void(*deAlloc)(void *), int flags) |
| create i18n context More... | |
| oyjlTranslate_f | oyjlTranslation_GetTranslator (oyjlTranslation_s *context) |
| get function More... | |
| const char * | oyjlTranslation_GetLang (oyjlTranslation_s *context) |
| get catalog lang More... | |
| const char * | oyjlTranslation_GetDomain (oyjlTranslation_s *context) |
| get domain More... | |
| oyjl_val | oyjlTranslation_GetCatalog (oyjlTranslation_s *context) |
| get catalog More... | |
| void * | oyjlTranslation_GetUserData (oyjlTranslation_s *context) |
| get UserData More... | |
| int | oyjlTranslation_GetFlags (oyjlTranslation_s *context) |
| get flags More... | |
| void | oyjlTranslation_SetFlags (oyjlTranslation_s *context, int flags) |
| change flags More... | |
| void | oyjlTranslation_SetLocale (oyjlTranslation_s *context, const char *loc) |
| change language More... | |
| void | oyjlTranslation_Release (oyjlTranslation_s **context_) |
| get flags More... | |
| oyjlTranslation_s * | oyjlTranslation_Get (const char *domain) |
| get message translation context More... | |
| int | oyjlTranslation_Set (oyjlTranslation_s **context) |
| set message translation context More... | |
| int | oyjlTranslation_Unset (const char *domain) |
| unregister message translation context More... | |
| void | oyjlTranslateJson (oyjl_val root, oyjlTranslation_s *context, const char *key_list) |
| translate JSON More... | |
Oyjl API provides a platformindependent C interface for i18n handling.
oyjl - Basic helper C API's
1.8.13