We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57fabc5 commit e9badc4Copy full SHA for e9badc4
1 file changed
RoboFilePlugin.php
@@ -130,7 +130,16 @@ public function localesPull($percent = 70) {
130
* @return void
131
*/
132
public function localesMo() {
133
- $this->_exec('./tools/release --compile-mo');
+ $po_files = preg_grep('/\.po$/', scandir('./locales'));
134
+ foreach ($po_files as $po_file) {
135
+ $mo_file = preg_replace('/\.po$/', '.mo', $po_file);
136
+ echo("Processing {$po_file}\n");
137
+ passthru("cd ./locales && msgfmt -f -o {$mo_file} {$po_file}", $exit_code);
138
+ if ($exit_code > 0) {
139
+ exit($exit_code);
140
+ }
141
142
+
143
return $this;
144
}
145
0 commit comments