Hanne B. Stegemüller Posted March 21, 2021 Report Share Posted March 21, 2021 Hi there I would like to translate https://tng.stegemueller.dk/data_protection_policy.php into Danish and make a few changes in the English version. The file 'data_protection_policy.php' is found in '/tng.stegemueller.dk/languages/English-UTF8' and contains the following: <?php $nologin = 1; include("tng_begin.php"); $dataprotect_url = getURL( "data_protection_policy", 0 ); $logstring = "<a href=\"$dataprotect_url\">" . xmlcharacters($text['dataprotect']) . "</a>"; writelog($logstring); preparebookmark($logstring); tng_header( $text['dataprotect'], $flags ); $langfolder = findlangfolder("data_protection_policy.php"); include($cms['tngpath'] . "$langfolder/data_protection_policy.php"); tng_footer( "" ); ?> Where can I find the file, where I can make changes in the English version? To me the php script above looks like the file is ready to fetch translations (but I know nothing about php). Where do I place my Danish version? And can template 209 find out, that there is also a Danish version? Kind regards, Hanne Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted March 21, 2021 Report Share Posted March 21, 2021 Hi Hanne, In the English language folder (data_protection_policy.php). The actual text can be found and altered there. Correct. Found in the actual languages folders. Looks like the Danish UTF8 language folder doesn't contain the file data_protection_policy.php. Just copy it from Danish. When you switch language from English to Danish or vice versa TNG automaticly uses the right language file. So no need to change anything for template 209. Rob Quote Link to comment Share on other sites More sharing options...
Hanne B. Stegemüller Posted March 21, 2021 Author Report Share Posted March 21, 2021 Hi Rob 26 minutes ago, Rob Severijns said: Hi Hanne, In the English language folder (data_protection_policy.php). The actual text can be found and altered there. Correct. Found in the actual languages folders. Looks like the Danish UTF8 language folder doesn't contain the file data_protection_policy.php. Just copy it from Danish. When you switch language from English to Danish or vice versa TNG automaticly uses the right language file. So no need to change anything for template 209. Rob Hi Rob So great! I don't know, why I haven't seen it before. Super! Even more super! Thank you very much for your reply. Now I can work on. ../Hanne Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.