Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
MessagesCatalog.php
Go to the documentation of this file.
1<?php
2
4
6
22 protected $loader;
23 protected $locale;
24
26 $this->locale = $locale;
27 $this->loader = $loader;
28 $this->messagesDomains = [ ];
29 }
30
31 public function load() {
32 $this->messagesDomains = [ ];
33 $domains = $this->getDomains ();
34 foreach ( $domains as $domain ) {
35 $do = new MessagesDomain ( $this->locale, $this->loader, $domain );
36 $do->load ();
37 $this->messagesDomains [] = $do;
38 }
39 }
40
41 public function getDomains() {
42 return $this->loader->getDomains ( $this->locale );
43 }
44
49 public function getMessagesDomains() {
51 }
52}
53
Catalog of translation messages associated to a locale.
__construct($locale, LoaderInterface $loader)
Represents a list of messages in a domain for a locale.