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