# Wrong language/culture using mediaservice to get file references

**URL:** <https://forum.litium.com/t/wrong-language-culture-using-mediaservice-to-get-file-references/3092>\
**Category:** Questions\
**Created:** [October 10, 2023, 3:52pm UTC](https://forum.litium.com/t/wrong-language-culture-using-mediaservice-to-get-file-references/3092 "2023-10-10T15:52:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [October 10, 2023, 3:52pm UTC](https://forum.litium.com/t/wrong-language-culture-using-mediaservice-to-get-file-references/3092/1 "2023-10-10T15:52:40Z")

</div>

I am trying to create a webservice that receive a file id and return on what pages this file is used on and i want to return the url to the page in all channels the page is used.

my problem is the the media service returns page name in english even if the page is only published in the channel with swedish.

How do i get the media service to return the swedish name? or do i need to fetch the page and get the url from that?

`{ "group": "WebsiteArea", "name": "Published page: My site [en-US]/Startpage [en-US]/Translation missing/Translation missing/Translation missing", "link": "/!39caa972-7d40-42ec-b6fa-d17a5be2a1ee!0!00000000-0000-0000-0000-000000000000!0!0/8916e0bf-2ef7-42d8-9e04-883ae80d722c", "id": "5b53e718-6bb7-40d4-a618-bb1bf39bdbe0", "target": "_blank", "ownerId": "8916e0bf-2ef7-42d8-9e04-883ae80d722c", "type": null }`

Litium version: 8.8

---

<div class="post-metadata">

**Author:** ![anusha.ganegoda](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/anusha.ganegoda/32/58_2.png) [@anusha.ganegoda](https://forum.litium.com/u/anusha.ganegoda)\
**Post date:** [October 19, 2023, 9:15am UTC](https://forum.litium.com/t/wrong-language-culture-using-mediaservice-to-get-file-references/3092/2 "2023-10-19T09:15:56Z")

</div>

It uses the CultureInfo.CurrentCulture to get the name, so check the current thread culture and change it to Swedish to get the swedish name.

---

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [October 20, 2023, 7:25am UTC](https://forum.litium.com/t/wrong-language-culture-using-mediaservice-to-get-file-references/3092/3 "2023-10-20T07:25:21Z")

</div>

Thanks! that solved it

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [November 17, 2023, 7:26am UTC](https://forum.litium.com/t/wrong-language-culture-using-mediaservice-to-get-file-references/3092/4 "2023-11-17T07:26:16Z")

</div>

Closed on November 17, 2023, 7:26am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
