@@ 52-60 (lines=9) @@ | ||
49 | $data['branch'] = $this->getBranch(); |
|
50 | } |
|
51 | ||
52 | foreach ($this->getTranslations() as $translation) { |
|
53 | $data['files['.$translation->getCrowdinPath().']'] = '@'.$translation->getLocalPath(); |
|
54 | if ($translation->getTitle()) { |
|
55 | $data['titles['.$translation->getCrowdinPath().']'] = $translation->getTitle(); |
|
56 | } |
|
57 | if ($translation->getExportPattern()) { |
|
58 | $data['export_patterns['.$translation->getCrowdinPath().']'] = $translation->getExportPattern(); |
|
59 | } |
|
60 | } |
|
61 | ||
62 | $request = $this->client->getHttpClient()->post($path, array(), $data); |
|
63 | $response = $request->send(); |
@@ 44-52 (lines=9) @@ | ||
41 | $data['branch'] = $this->getBranch(); |
|
42 | } |
|
43 | ||
44 | foreach ($this->getTranslations() as $translation) { |
|
45 | $data['files['.$translation->getCrowdinPath().']'] = '@'.$translation->getLocalPath(); |
|
46 | if ($translation->getTitle()) { |
|
47 | $data['titles['.$translation->getCrowdinPath().']'] = $translation->getTitle(); |
|
48 | } |
|
49 | if ($translation->getExportPattern()) { |
|
50 | $data['export_patterns['.$translation->getCrowdinPath().']'] = $translation->getExportPattern(); |
|
51 | } |
|
52 | } |
|
53 | ||
54 | $request = $this->client->getHttpClient()->post($path, array(), $data); |
|
55 | $response = $request->send(); |