From 63bf2a90a6d6fb0859e4c9dd9fcac85de9adc0f1 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 9 Aug 2005 23:22:36 +0000 Subject: - Russian Engine is really renamed - Translate to English is fixed - Default charset for "all" languages - Support for per-class additional and dissabled charsets - Use 'GetSomethingNumber' instead of 'GetSomethingList'. 'GetSomethingList' functions are depricated. - rccUiGetSomethingName gets id's on the input instead of names --- src/lng.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/lng.c') diff --git a/src/lng.c b/src/lng.c index 4b0676d..5605768 100644 --- a/src/lng.c +++ b/src/lng.c @@ -5,6 +5,24 @@ #include "rccconfig.h" #include "rcclocale.h" +int rccGetLanguageNumber(rcc_context ctx) { + if (!ctx) { + if (rcc_default_ctx) ctx = rcc_default_ctx; + else return 0; + } + + return ctx->n_languages; +} + +int rccGetClassNumber(rcc_context ctx) { + if (!ctx) { + if (rcc_default_ctx) ctx = rcc_default_ctx; + else return 0; + } + + return ctx->n_classes; +} + rcc_language_ptr rccGetLanguagePointer(rcc_context ctx, rcc_language_id language_id) { if (!ctx) { if (rcc_default_ctx) ctx = rcc_default_ctx; -- cgit v1.2.3