Skip to main content

Crate bilingua_php

Crate bilingua_php 

Source
Expand description

Bilingua filter for PHP array resource files: Laravel lang/*.php (return [...]), CodeIgniter 4 and CodeIgniter 3 ($lang['key'] = '...') language files. See the README.

The file is tokenised, never executed. Every string value with a letter or digit is a unit, in source order; keys never. Code, comments, numbers and symbol strings stay in the skeleton byte for byte, and only the literal of a changed unit is rewritten, in the same quote style.

Structs§

Php
The PHP array resource filter.
Record
One translatable string as a key-based project sees it.

Constants§

SKELETON_SCHEMA
Skeleton schema number: bump only when this crate’s skeleton layout changes (see bilingua_model::check_parser).

Functions§

records
Every translatable string with its dotted key, in order (the LocOS records() view).