]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/locale.hxx
Reset: clear the osg object cache
[flightgear.git] / src / Main / locale.hxx
index 984a4c8028e7a3d2feae5da7a9f6e5fba007b2fd..7119e9ee6701599d6c8c169f3a77cd85b71614e2 100644 (file)
@@ -22,6 +22,7 @@
 #define __FGLOCALE_HXX
 
 #include <string>
+#include <cstdarg> // for va_start/_end
 
 #include <simgear/props/props.hxx>
 
@@ -67,6 +68,14 @@ public:
      */
     const char* getDefaultFont      (const char* fallbackFont);
 
+    /**
+     * Obtain a message string, from a localized resource ID, and use it as
+     * a printf format string.
+     */
+    std::string localizedPrintf(const char* id, const char* resource, ... );
+    
+    std::string vlocalizedPrintf(const char* id, const char* resource, va_list args);
+    
     /**
      * Simple UTF8 to Latin1 encoder.
      */
@@ -105,4 +114,10 @@ protected:
     SGPropertyNode_ptr _defaultLocale;
 };
 
+// global translation wrappers
+
+const char* fgTrMsg(const char* key);
+std::string fgTrPrintfMsg(const char* key, ...);
+
+
 #endif // __FGLOCALE_HXX