src/Akeneo/Crowdin/Api/AddFile.php 1 location
|
@@ 76-85 (lines=10) @@
|
| 73 |
|
* |
| 74 |
|
* @return $this |
| 75 |
|
*/ |
| 76 |
|
public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null) |
| 77 |
|
{ |
| 78 |
|
$translation = new Translation($localPath, $crowdinPath); |
| 79 |
|
$translation->setExportPattern($exportPattern); |
| 80 |
|
$translation->setTitle($title); |
| 81 |
|
|
| 82 |
|
$this->translations[] = $translation; |
| 83 |
|
|
| 84 |
|
return $this; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/** |
| 88 |
|
* @return Translation[] |
src/Akeneo/Crowdin/Api/UpdateFile.php 1 location
|
@@ 68-77 (lines=10) @@
|
| 65 |
|
* |
| 66 |
|
* @return $this |
| 67 |
|
*/ |
| 68 |
|
public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null) |
| 69 |
|
{ |
| 70 |
|
$translation = new Translation($localPath, $crowdinPath); |
| 71 |
|
$translation->setExportPattern($exportPattern); |
| 72 |
|
$translation->setTitle($title); |
| 73 |
|
|
| 74 |
|
$this->translations[] = $translation; |
| 75 |
|
|
| 76 |
|
return $this; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* @return Translation[] |