@@ 281-292 (lines=12) @@ | ||
278 | * Upload all the translations from the symfony project into Loco. This will override |
|
279 | * every changed strings in loco |
|
280 | */ |
|
281 | public function uploadAllTranslations() |
|
282 | { |
|
283 | foreach ($this->projects as $name => $config) { |
|
284 | if (empty($config['domains'])) { |
|
285 | $this->doUploadDomains($config, $name, false); |
|
286 | } else { |
|
287 | foreach ($config['domains'] as $domain) { |
|
288 | $this->doUploadDomains($config, $domain, true); |
|
289 | } |
|
290 | } |
|
291 | } |
|
292 | } |
|
293 | ||
294 | /** |
|
295 | * @param array $config |
|
@@ 332-343 (lines=12) @@ | ||
329 | * Synchronize all the translations with Loco. This will keep placeholders. This function is slower |
|
330 | * than just to download the translations. |
|
331 | */ |
|
332 | public function synchronizeAllTranslations() |
|
333 | { |
|
334 | foreach ($this->projects as $name => $config) { |
|
335 | if (empty($config['domains'])) { |
|
336 | $this->doSynchronizeDomain($config, $name, false); |
|
337 | } else { |
|
338 | foreach ($config['domains'] as $domain) { |
|
339 | $this->doSynchronizeDomain($config, $domain, true); |
|
340 | } |
|
341 | } |
|
342 | } |
|
343 | } |
|
344 | ||
345 | /** |
|
346 | * @param array $config |