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[] |