You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

locale

The locale keyword returns the locale. It is determined like this in descending priority:

  1. URL parameter “locale”
  2. User locale
  3. Browser locale
  4. Default locale (java.util.Locale.getDefault();)

Search results for "locale"

locale

The locale keyword returns the current locale. It is determined like this in descending priority:

  1. Request parameter locale
  2. User locale
  3. Cookie locale
  4. Browser locale
  5. Default locale which was used to start the java process (evaluated via java.util.Locale.getDefault();)

is_locale()

Returns a boolean value that indicates whether the locale of the current context is one of the given locale values.

is_locale(locales, ...)

set_locale()

Sets the locale for the current scripting context. This setting directly influences the result of date parsing and formatting functions.

set_locale(locale)

Localization

application.localization.logmissing If enabled, missing requested localizations are logged.
application.localization.usefallbacklocale Turns on usage of fallback locale if for the current locale no localization is found
application.localization.fallbacklocale The default locale used, if no localization is found and using a fallback is active.

Localizations

The Localizations flyout allows you to load all localizations for the given locale on the current page (including the UUID of the details object which is also used for the preview).

A localization is an expression that is included in the content of a page or any other textual element in the following form:

Here, key is a term describing the concept that should be rendered depending on the locale which is currently active for the accessing user, and domain describes the context for this term. The combination of key and domain has to be unique.

The retrieval process works just as rendering the page. If you request the locale en_US you might get localizations for en as a fallback if no exact match is found. If no localization could be found, an empty input field is rendered where you can quickly create the missing localization.

Geocoding

geocoding.provider Fully qualified class name of the geocoding provider.
geocoding.language Locale for the geocoding functionality.
geocoding.apikey API key for the geocoding provider.

Deployment Format

folder / filedescription
componentsContains the shared components of the pages editor of Structr.
filesContains all files out of Sturctr’s virtual filesystem. Folders and files in the virtual filesystem are not being exported by default. If you want to include a folder or file into the export you have to set the flag includeInFrontendExport on each file or folder. Each file or folder will inherit this flag from its parent folder.
mail-templatesContains the mail-templates.
modulesContains the application configuration and definition of additional modules of Structr e.g. the flow engine.
pagesContains the created pages in the pages editor of Structr.
schemaContains the schema definition and code entered in the schema and code section of the Structr UI.
securityContains the resource access grants defined in the security section of the Structr UI.
templatesContains all template elements of the pages editor of Structr.
application-configuration-data.jsonContains the configured schema layouts of Structr’s schema editor.
components.jsonContains the settings e.g. visiblity flags, contentType or uuid for each file in the components folder of the export.
deploy.confContains information about the Structr system that created the export of the application.
files.jsonContains the settings e.g. visiblity flags, contentType or uuid for each file in the files folder of the export.
localizations.jsonContains the localizations that where created in the localizations section of the Structr UI and that can be used in server side scripting with the localize() function of Structr.
mail-templates.jsonContains the settings e.g. visiblity flags, locale or uuid for each file in the mail-templates folder of the export.
pages.jsonContains the settings e.g. visiblity flags, contentType or uuid for each file in the pages folder of the export.
pre-deploy.confScript that is run before deployment import. Use this to create users who are granted access to nodes in the export files.
post-deploy.confScript that is run after deployment import. Can be used to start any tasks which are necessary after import.
sites.jsonContains sites that are configured in the pages section of the Structr UI.
templates.jsonContains the settings e.g. visiblity flags, contentType or uuid for each file in the templates folder of the export.
widget.jsonContains the widgets that were created in the pages section of the Structr UI.

REST Request Keywords

page, pageSize, sort, order, loose, locale, latlon, location, state, house, country, postalCode, city, street, distance, outputNestingDepth, debugLoggingEnabled, forceResultCount, disableSoftLimit, parallelizeJsonOutput, batchSize

_page, _pageSize, _sort, _order, _loose, _locale, _latlon, _location, _state, _house, _country, _postalCode, _city, _street, _distance, _outputNestingDepth, _debugLoggingEnabled,_forceResultCount, _disableSoftLimit, _parallelizeJsonOutput, _batchSize