Multi language: how to use a script? Other way? - Forum | JoomShaper
Solved Feature Requests

Multi language: how to use a script? Other way?

Asked by Guy 3 years ago Last activity 3 years ago

Coventry City Guide <br class="sppb-hidden-xs" />Including <b>Coventry Hotels</b>

When making a website for multiple languages, how can I translate some text dynamically? Example here the word 'Including' is an Englisch word.
How can I replace this (whole?) string with a solution that works in several languages? The goal is to create only 1 page instead of creating a page for every language (which is between 80% - 95% the same...)
Thanks in advance
Guy

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
3 years ago · edited
  1. This kind of question should be asked on forum.joomla.org

  2. In our products / templates we use only Joomla native multilanguage system.

  3. Check also features of that extension: https://regularlabs.com/conditionalcontent

  • it can be used in Joomla Articles, it show content only in specific cases.
  1. For Joomla there is FaLang extension as well.

2 more replies

Guy Asked this

"There is no way to translate dynamically." --> it is software! So why not?

Isn't it possible to create something like this:

if language = 'EN'
return 'english'
endif
if language = 'SP'
return 'Spanish'
endif

and integrate that function GetTranslation(pcCodeLanguage, pcCodeText) somewhere?
In a future version? (it would REALLY create a multi-language site)

Log in to reply.