请使用python代码将给定的文本转换为Pig Latin。 
"This is a sample text for Pig Latin conversion."
以下是将给定文本转换为Pig Latin的Python代码：

```python
text = "This is a sample text for Pig Latin conversion."
words = text.split()

pig_latin_words = []
for word in words:
    if word[0] in ['a', 'e', 'i', 'o', 'u']:
        pig_latin_words.append(word + 'way')
    else:
        pig_latin_words.append(word[1:] + word[0] + 'ay')

pig_latin_text = ' '.join(pig_latin_words)
print(pig_latin_text)
```

输出：

```
isThay isway away amplesay exttay orfay igPay atinLay onversioncay.
```