%% options copyright owner = Dirk Krause copyright year = 2018-xxxx SPDX-License-Identifier: BSD-3-Clause %% header /** @file wxdrdstr.h String table for wxDraw read operations. */ #ifndef DK4APP_H_INCLUDED #include "dk4app.h" #endif #ifdef __cplusplus extern "C" { #endif /** Retrieve string table containing localized texts. @param app Application to use while retrieving the string table. @return Pointer to localized texts on success, pointer to texts in English on problems. Do not release the string table, it is either managed by the app structure or a static string table. */ const dkChar * const * wxdrdstr_texts( dk4_app_t *app ); #ifdef __cplusplus } #endif %% module #include "wxd2lat.h" $!trace-include /** Default string table to use if localized texts are not found. */ static const dkChar * const wxdrdstr_tbl[] = { $!string-table file=wxrdstr.str,macro=dkT # # 0 UNUSED # HELLO! $!end }; /** File name containing localized texts. */ static const dkChar wxrdstr_filename[] = { dkT("wxrdstr.str") }; const dkChar * const * wxdrdstr_texts( dk4_app_t *app ) { const dkChar * const *back = wxdrdstr_tbl; if (NULL != app) { back = dk4app_string_table(app, wxrdstr_filename, wxdrdstr_tbl); } return back; } /* vim: set ai sw=4 ts=4 : */