Skip to main content
Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
added 365 characters in body; edited title
Source Link
Pierre Buyle
  • 11.4k
  • 38
  • 63

How to set translated variables' values from settings.php (or similar)

When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all languages.

I'm looking for a solution that could be used to achieve the same goal of the $conf in the settings.php file: defining the values of variable at execution without the need store the values anywhere else. One use case is to assign different values to variables depending on the execution environment (as set in an environment variable).

How to set translated variables' values from settings.php

When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all languages.

How to set translated variables' values from settings.php (or similar)

When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all languages.

I'm looking for a solution that could be used to achieve the same goal of the $conf in the settings.php file: defining the values of variable at execution without the need store the values anywhere else. One use case is to assign different values to variables depending on the execution environment (as set in an environment variable).

added 1 characters in body
Source Link
Pierre Buyle
  • 11.4k
  • 38
  • 63

When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all languagelanguages.

When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all language.

When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all languages.

Tweeted twitter.com/#!/StackDrupal/status/444694831093526528
Notice added Draw attention by Pierre Buyle
Bounty Started worth 100 reputation by Pierre Buyle
edited title
Link
Pierre Buyle
  • 11.4k
  • 38
  • 63

How to set translated variables'svariables' values from settings.php

edited tags
Link
Pierre Buyle
  • 11.4k
  • 38
  • 63
Loading
Source Link
Pierre Buyle
  • 11.4k
  • 38
  • 63
Loading