cffb8fcb4dff1693ded92803c47c317f8ed02e1b max Wed Sep 27 10:07:22 2023 -0700 switching off translation bar for DNA output, refs #32275 diff --git src/inc/htmshell.h src/inc/htmshell.h index a0705d6..8aaf44d 100644 --- src/inc/htmshell.h +++ src/inc/htmshell.h @@ -211,30 +211,34 @@ * should just make paragraphs and return. * Method should be "query" or "get" or "post". param title - The HTML page title param head - The head text: can be a refresh directive or javascript param method - The function pointer to execute in the middle param method - The browser request method to use */ void htmShellWithHead( char *title, char *head, void (*doMiddle)(), char *method); /* tell htmlOut to not escape special HTML chars '<', '>' */ void htmlNoEscape(); /* tell htmlOut to escape special HTML chars '<', '>' */ void htmlDoEscape(); +/* add <html> and <head> tags to tell browsers and chrome in particular not to translate this page. +* DNA is recognized as Swedish otherwise and the translate will remove nucleotides */ +void htmlDoNotTranslate(); + /* Do not output a http header for error messages. Makes sure that very early * errors are not shown back to the user but trigger a 500 error, */ void htmlSuppressErrors(); /* Include an HTML file in a CGI. * The file path is relative to the web server document root */ void htmlIncludeWebFile(char *file); /* Include an HTML file in a CGI */ void htmlIncludeFile(char *path); /* ===== Html printf-style escaping functions ====== */ int htmlSafefAbort(boolean noAbort, int errCode, char *format, ...) /* handle noAbort stderror logging and errAbort */