Tabnine Logo
WebServer.readTranslations
Code IndexAdd Tabnine to your IDE (free)

How to use
readTranslations
method
in
org.h2.server.web.WebServer

Best Java code snippets using org.h2.server.web.WebServer.readTranslations (Showing top 12 results out of 315)

origin: com.h2database/h2

session.locale = locale;
session.put("language", headerLanguage);
server.readTranslations(session, headerLanguage);
origin: com.h2database/h2

/**
 * Create a new web session id and object.
 *
 * @param hostAddr the host address
 * @return the web session object
 */
WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while (sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.lastAccess = System.currentTimeMillis();
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  session.put("frame-border", "0");
  session.put("frameset-border", "4");
  sessions.put(newId, session);
  // always read the english translation,
  // so that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: com.h2database/h2

  locale.getLanguage()).equals(language)) {
locale = new Locale(language, "");
server.readTranslations(session, locale.getLanguage());
session.put("language", language);
session.locale = locale;
origin: com.h2database/com.springsource.org.h2

String language = locale.getLanguage();
session.put("language", language);
server.readTranslations(session, language);
break;
origin: com.h2database/com.springsource.org.h2

WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while(sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  sessions.put(newId, session);
  // always read the english translation, 
  // to that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: org.wowtools/h2

session.locale = locale;
session.put("language", headerLanguage);
server.readTranslations(session, headerLanguage);
origin: com.eventsourcing/h2

session.locale = locale;
session.put("language", headerLanguage);
server.readTranslations(session, headerLanguage);
origin: com.eventsourcing/h2

/**
 * Create a new web session id and object.
 *
 * @param hostAddr the host address
 * @return the web session object
 */
WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while (sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.lastAccess = System.currentTimeMillis();
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  session.put("frame-border", "0");
  session.put("frameset-border", "4");
  sessions.put(newId, session);
  // always read the english translation,
  // so that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: org.wowtools/h2

/**
 * Create a new web session id and object.
 *
 * @param hostAddr the host address
 * @return the web session object
 */
WebSession createNewSession(String hostAddr) {
  String newId;
  do {
    newId = generateSessionId();
  } while (sessions.get(newId) != null);
  WebSession session = new WebSession(this);
  session.lastAccess = System.currentTimeMillis();
  session.put("sessionId", newId);
  session.put("ip", hostAddr);
  session.put("language", DEFAULT_LANGUAGE);
  session.put("frame-border", "0");
  session.put("frameset-border", "4");
  sessions.put(newId, session);
  // always read the english translation,
  // so that untranslated text appears at least in english
  readTranslations(session, DEFAULT_LANGUAGE);
  return getSession(newId);
}
origin: com.eventsourcing/h2

  locale.getLanguage()).equals(language)) {
locale = new Locale(language, "");
server.readTranslations(session, locale.getLanguage());
session.put("language", language);
session.locale = locale;
origin: com.h2database/com.springsource.org.h2

if (locale == null || !StringUtils.toLowerEnglish(locale.getLanguage()).equals(language)) {
  locale = new Locale(language, "");
  server.readTranslations(session, locale.getLanguage());
  session.put("language", language);
  session.locale = locale;
origin: org.wowtools/h2

  locale.getLanguage()).equals(language)) {
locale = new Locale(language, "");
server.readTranslations(session, locale.getLanguage());
session.put("language", language);
session.locale = locale;
org.h2.server.webWebServerreadTranslations

Javadoc

Read the translation for this language and save them in the 'text' property of this session.

Popular methods of WebServer

  • <init>
  • getSession
    Get the web session object for the given session id.
  • init
  • addSession
    Create a session with a given connection.
  • getAllowOthers
  • getFile
    Read the given file from the file system or from the resources.
  • getStartDateTime
  • setAllowChunked
  • setAllowOthers
  • createNewSession
    Create a new web session id and object.
  • generateSessionId
  • getConnection
  • generateSessionId,
  • getConnection,
  • getPort,
  • getSSL,
  • getSessions,
  • getSetting,
  • getSettingNames,
  • getSettings,
  • loadProperties

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now