PHP INI files are commonly used for configuration settings in PHP applications. These files consist of key-value pairs, making them suitable for managing localization strings as well.
Technical information
Overview
Format name:
PHP INI
File extensions:
.ini
Common use cases:
Managing configuration settings and localization strings in PHP applications.
Technical details:
Structure: INI files consist of key-value pairs separated by an equal sign (
=
). Sections can be used to group related settings, denoted by square brackets ([]
).Encoding: UTF-8
Example:
Here's an example of a typical PHP INI file used for localization:
[common]
russian = Русский
english = Английский
currency = руб.
search = Искать
title = Название
edit = Редактировать
In this example, the INI file includes a [common]
section with multiple key-value pairs representing localized strings.
Using with Lokalise
Lokalise supports PHP INI files, allowing you to manage and translate your configuration settings and localization strings efficiently.
Supported project types
Please note that INI files can be uploaded only to Web and mobile projects.
Known limitations
Reserved key names: INI files do not support keys named
false
.Reserved key names: INI files do not support keys named
null
.