# Label translation when is used white-space style

**URL:** <https://forum.inductiveautomation.com/t/label-translation-when-is-used-white-space-style/92731>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 3, 2024, 8:05am UTC](https://forum.inductiveautomation.com/t/label-translation-when-is-used-white-space-style/92731 "2024-07-03T08:05:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 3, 2024, 8:05am UTC](https://forum.inductiveautomation.com/t/label-translation-when-is-used-white-space-style/92731/1 "2024-07-03T08:05:08Z")

</div>

Good morning,  
I'm trying to figure out how to translate a label.. I write a kind of multiline using

```python
white-space: pre

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/9/6925b8482c6f5c86d741d92f404f87fb9e099132.png)

how can I manage the translation? I make some test changing the key in this way:

```python
Label Test

```

and adding `Label` and `Test` separately but it's not working.

Any suggestion? Thank you

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 3, 2024, 8:50am UTC](https://forum.inductiveautomation.com/t/label-translation-when-is-used-white-space-style/92731/2 "2024-07-03T08:50:21Z")

</div>

I can just paste the text in the key  
(remember to close and reopen view to see changes to transaltions)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/0/b0a524a4517e2cff5c2f8dca411d04f10f5ff8a1.png)

In your screenshot you are ending with an extra newline though, becareful with that

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 3, 2024, 9:11am UTC](https://forum.inductiveautomation.com/t/label-translation-when-is-used-white-space-style/92731/3 "2024-07-03T09:11:16Z")

</div>

That's the solution, I just paste as I write in the label and it works.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 4, 2024, 6:23am UTC](https://forum.inductiveautomation.com/t/label-translation-when-is-used-white-space-style/92731/4 "2024-07-04T06:23:43Z")

</div>

One more question please, is it possible to translate the tooltip in a XY chart?

I try to copy and paste the exactly text for example

```python
Allarmi: [bold]{valueY}[/] 
Estrusore: [bold]{categoryX}[/]

```

but nothing happen when I change the language
