src/Akeneo/Crowdin/Api/AddFile.php 1 location
|
@@ 101-110 (lines=10) @@
|
| 98 |
|
* |
| 99 |
|
* @return $this |
| 100 |
|
*/ |
| 101 |
|
public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null) |
| 102 |
|
{ |
| 103 |
|
$translation = new Translation($localPath, $crowdinPath); |
| 104 |
|
$translation->setExportPattern($exportPattern); |
| 105 |
|
$translation->setTitle($title); |
| 106 |
|
|
| 107 |
|
$this->translations[] = $translation; |
| 108 |
|
|
| 109 |
|
return $this; |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
/** |
| 113 |
|
* @return Translation[] |
src/Akeneo/Crowdin/Api/UpdateFile.php 1 location
|
@@ 92-101 (lines=10) @@
|
| 89 |
|
* |
| 90 |
|
* @return $this |
| 91 |
|
*/ |
| 92 |
|
public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null) |
| 93 |
|
{ |
| 94 |
|
$translation = new Translation($localPath, $crowdinPath); |
| 95 |
|
$translation->setExportPattern($exportPattern); |
| 96 |
|
$translation->setTitle($title); |
| 97 |
|
|
| 98 |
|
$this->translations[] = $translation; |
| 99 |
|
|
| 100 |
|
return $this; |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/** |
| 104 |
|
* @return Translation[] |
src/Akeneo/Crowdin/Api/UploadTranslation.php 1 location
|
@@ 113-122 (lines=10) @@
|
| 110 |
|
* |
| 111 |
|
* @return $this |
| 112 |
|
*/ |
| 113 |
|
public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null) |
| 114 |
|
{ |
| 115 |
|
$translation = new Translation($localPath, $crowdinPath); |
| 116 |
|
$translation->setExportPattern($exportPattern); |
| 117 |
|
$translation->setTitle($title); |
| 118 |
|
|
| 119 |
|
$this->translations[] = $translation; |
| 120 |
|
|
| 121 |
|
return $this; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
/** |
| 125 |
|
* @return Translation[] |