Jump to content
TNG Community
^maikl11

Automatic translation of the media menu

Recommended Posts

^maikl11

I want to create new media categories in the Media drop-down list.
Now I have noticed that some categories are automatically translated, but unfortunately not all!
I also don't know why only part of it is translated!

In which file (s) is this dropdown menu entered ???

Or how do I create the new media category so that it is translated automatically?

Thanks in advance...

PS: I use TNG13.0.3, template 12

media.jpg

Share this post


Link to post
Share on other sites
Michel KIRSCH
2 hours ago, ^maikl11 said:

Or how do I create the new media category so that it is translated automatically

Hi Michael,

Read this article : https://tng.lythgoes.net/wiki/index.php/Media_-_Collections

If the ID of your own collection "Wappen/Flagen" is (example) "tralala", you must add, for each language, a variable

$text['tralala'] = "Coat of Arms"; (for english) in the cust_text.php files of the considered languages (included German)

$text['tralala'] = "Armoiries"; (for french) etc...

Respect the syntax and don't forget the semi-colon ( ; ) after each line (take example on what exists yet in your cust_text.php files.

Michel

Share this post


Link to post
Share on other sites
^maikl11

Hi Michel
Many thanks. Worked wonderfully!

Share this post


Link to post
Share on other sites
Michel KIRSCH

😀 Just worked normally !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×