mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove the xslt_path now that all XSLT files are kept in a resource
Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ca8aee4701
commit
397898434e
3 changed files with 1 additions and 5 deletions
2
dive.h
2
dive.h
|
@ -637,8 +637,6 @@ extern void shift_times(const timestamp_t amount);
|
||||||
|
|
||||||
extern xsltStylesheetPtr get_stylesheet(const char *name);
|
extern xsltStylesheetPtr get_stylesheet(const char *name);
|
||||||
|
|
||||||
extern char *xslt_path;
|
|
||||||
|
|
||||||
extern timestamp_t utc_mktime(struct tm *tm);
|
extern timestamp_t utc_mktime(struct tm *tm);
|
||||||
extern void utc_mkdate(timestamp_t, struct tm *tm);
|
extern void utc_mkdate(timestamp_t, struct tm *tm);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
int verbose, quit;
|
int verbose, quit;
|
||||||
|
|
||||||
static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params, char **error);
|
static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params, char **error);
|
||||||
char *xslt_path;
|
|
||||||
|
|
||||||
/* the dive table holds the overall dive list; target table points at
|
/* the dive table holds the overall dive list; target table points at
|
||||||
* the table we are currently filling */
|
* the table we are currently filling */
|
||||||
|
@ -2012,7 +2011,7 @@ static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params, char **err
|
||||||
xmlSubstituteEntitiesDefault(1);
|
xmlSubstituteEntitiesDefault(1);
|
||||||
xslt = get_stylesheet(info->file);
|
xslt = get_stylesheet(info->file);
|
||||||
if (xslt == NULL) {
|
if (xslt == NULL) {
|
||||||
parser_error(error, translate("gettextFromC","Can't open stylesheet (%s)/%s"), xslt_path, info->file);
|
parser_error(error, translate("gettextFromC","Can't open stylesheet %s"), info->file);
|
||||||
return doc;
|
return doc;
|
||||||
}
|
}
|
||||||
transformed = xsltApplyStylesheet(xslt, doc, params);
|
transformed = xsltApplyStylesheet(xslt, doc, params);
|
||||||
|
|
|
@ -88,7 +88,6 @@ void init_ui(int *argcp, char ***argvp)
|
||||||
QCoreApplication::setApplicationName("Subsurface");
|
QCoreApplication::setApplicationName("Subsurface");
|
||||||
// find plugins installed in the application directory (without this SVGs don't work on Windows)
|
// find plugins installed in the application directory (without this SVGs don't work on Windows)
|
||||||
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
|
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
|
||||||
xslt_path = strdup(getSubsurfaceDataPath("xslt").toAscii().data());
|
|
||||||
|
|
||||||
QSettings s;
|
QSettings s;
|
||||||
s.beginGroup("Language");
|
s.beginGroup("Language");
|
||||||
|
|
Loading…
Add table
Reference in a new issue