Set value for a translation string based on menu item?

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
kgriffin
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Sun Jul 27, 2008 1:15 pm

Set value for a translation string based on menu item?

Post by kgriffin » Mon Apr 01, 2019 5:30 pm

I have searched to see if this has been asked and could not find anything. If it has and has been answered, please feel free to direct me to the correct topic url and this topic can be closed out.

I need different values of a single translation string in my English language file depending on where it is being used. Is there a way to set the value of a translation string based on a menu item?

Thanks.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25779
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Set value for a translation string based on menu item?

Post by Per Yngve Berg » Mon Apr 01, 2019 7:13 pm

You can have variables inside the string (%s)

https://docs.joomla.org/Formatted_field ... on_strings


Post Reply

Return to “Language - Joomla! 3.x”