include/alp/i18n.h

Go to the documentation of this file.
00001 /***************************************************************************************  
00002  * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved.
00003  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00004  ***************************************************************************************/
00013 #ifndef __ALP_I18N_H_
00014 #define __ALP_I18N_H_
00015 
00016 #include "bundlemgr.h"
00017 #include <glib/gstrfuncs.h>
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 //
00024 // gettext support macros
00025 //
00026 #define _(String) alp_bundle_gettext(String)    // Translated string
00027 #define N_(String) String               // Marks a string for translation, gets replaced with the untranslated string at runtime
00028                                         // Definition does not have guard parentheses, so that string concatenation can occur: "abc" N_("def")
00029 #define Q_(String) g_strip_context((String), alp_bundle_gettext(String))        // Marks a string for translation with context
00030 
00031 // ALP specific macro
00032 #define U_(String) (String)             // Untranslated string
00033 
00034 #ifdef __cplusplus
00035 }       // extern "C"
00036 #endif
00037 
00038 #endif // __ALP_I18N_H_
00039 

Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.