\TransvisionAnalyseStrings

AnalyseStrings class

This class is for all the methods we use to analyse strings

Summary

Methods
Properties
Constants
cleanUpEntities()
differences()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

cleanUpEntities()

cleanUpEntities(string  $string) : string

Replace common and uncommon html entities by real letters

Parameters

string $string

the string to process

Returns

string —

cleaned up string with entities converted

differences()

differences(array  $tmx_source, array  $tmx_target, string  $repo, array  $ignored_strings = array()) : array

Search for strings with variables differences

Parameters

array $tmx_source

TMX file as reference

array $tmx_target

TMX file for the locale to compare

string $repo

Name of the repo to determine the right set of regexps

array $ignored_strings

Optional list of ignored strings, default empty

Returns

array —

List of entity names not matching source