1. your permalinks settings
Post name: http://example.com/sample-post/
2. if you are using a static front page
NO
3. your Polylang settings
URL modifications: first option
Media: Activate languages and translations for the media.
Problem is that I want to have two different pdf's files which are linked on page A and page B.
What I have done:
1. Changed a little bit of template page:
<?php
$idToTranslate = pll_get_post(170);
$linkPageTranslated = get_page_link($idToTranslate);
?>
<a href="<?php echo $linkPageTranslated?>"><?pll_e("Download PDF", "sitex"); ?></a>
2. Translated pdf file in media which makes two identical files.
So I failed because I have the same pdf files which are linked on page A and page B. I want to have pdf A for page A and pdf B for page B. What i should do?:)