12#include <simgear/nasal/cppbind/Ghost.hxx>
13#include <simgear/nasal/cppbind/NasalCallContext.hxx>
14#include <simgear/nasal/cppbind/NasalHash.hxx>
15#include <simgear/nasal/nasal.h>
26 using FGTranslateRef = std::shared_ptr<FGTranslate>;
31 return ctx.to_nasal(FGTranslateRef(
new FGTranslate()));
33 domain = ctx.requireArg<std::string>(0);
34 return ctx.to_nasal(FGTranslateRef(
new FGTranslate(std::move(domain))));
36 ctx.runtimeError(
"FGTranslate.new() or FGTranslate.new(domain)");
44 nasal::Hash globalsModule(
globals, c);
45 nasal::Hash fgTranslateModule = globalsModule.createHash(
"FGTranslate");
Class for retrieving translated strings.
Container class for related translation units.
Container class for a string and its translation.
Class for retrieving translated strings.
static void setupGhost()
Set up a Nasal type that wraps FGTranslate.
static void setupGhost()
Set up a Nasal type that wraps TranslationResource.
static void setupGhost()
Set up a Nasal type that wraps TranslationUnit.
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
void initNasalTranslations(naRef globals, naContext c)
static naRef f_new_FGTranslate(const nasal::CallContext &ctx)