Symfony\Component\Translation\Catalogue
Classes
Merge operation between two catalogues as follows:
all = source ∪ target = {x: x ∈ source ∨ x ∈ target}
new = all ∖ source = {x: x ∈ target ∧ x ∉ source}
obsolete = source ∖ all = {x: x ∈ source ∧ x ∉ source ∧ x ∉ target} = ∅
Basically, the result contains messages from both catalogues.
Target operation between two catalogues:
intersection = source ∩ target = {x: x ∈ source ∧ x ∈ target}
all = intersection ∪ (target ∖ intersection) = target
new = all ∖ source = {x: x ∈ target ∧ x ∉ source}
obsolete = source ∖ all = source ∖ target = {x: x ∈ source ∧ x ∉ target}
Basically, the result contains messages from the target catalogue.
Interfaces
Represents an operation on catalogue(s).