Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

site.ini [UnitSettings]

The settings of [UnitSettings] in site.ini: BinaryUnits, UseSIUnits

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/site/UnitSettings.md

On this page

site.ini [UnitSettings]

The block [UnitSettings] of settings/site.ini, with 2 setting(s).

Example mapping between translation siteaccesses and the name to use for the
language switcher link, e.g. the name which will be used when making links to
these siteaccesses.
Example: TranslationSA[<name of siteaccess>]=<name of language switcher link, pointing to this siteaccess>
TranslationSA[]
TranslationSA[eng]=English
TranslationSA[nor]=Norwegian
TranslationSA[fre]=French
Example mapping between languages and siteaccess, mapping is done by convention if not defined
like eg: eng-GB => eng
In both cases sa name needs to be present in [SiteAccessSettings]\RelatedSiteAccessList[]
Example: LanguageSA[<language>]=<name of siteaccess>
LanguageSA[]
LanguageSA[eng-GB]=site1_eng
LanguageSA[nor-NB]=site1_nor
LanguageSA[fre-FR]=site1_fre

Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/site.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php for one siteaccess,
  • extension/<extension>/settings/site.ini.append.php in an extension (read when the extension is active).

BinaryUnits

List of units which acts as binary measures

Default: byte;bit.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[UnitSettings]
BinaryUnits=byte;bit
*/ ?>

UseSIUnits

True means use Ki, Mi etc. for binary measures instead of K, M etc.
This is good if you want to follow proper naming standards.

Default: false.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[UnitSettings]
UseSIUnits=false
*/ ?>

Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x