Closed (won't fix)
Project:
Flag content
Version:
5.x-2.9
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2009 at 20:34 UTC
Updated:
3 Feb 2013 at 17:48 UTC
With 2.9 version the admins can change the text, but this creates a whole new problem for multilingual sites: the new text that we enter cannot be translated into other languages.
I think you need to put t() around that variable.
Comments
Comment #1
kbahey commentedVariables should not be translated using t().
For the long answer, read this http://api.drupal.org/api/function/t/5
This is the same case as the "mission" variable in Drupal core, which is not translatable.
Comment #2
drupalina commentedAlright, then please let us know what are we supposed to do with this new 2.9 way in case of multilingual sites, which need to display "Report this page" in different languages.
thanks
Comment #3
kbahey commentedAs I said, core has the same issue, for example, the Mission settings.
When core has a solution for this, it should apply to contrib modules as well.
Comment #4
drupalina commentedRight now I'm tempted to revert back to the old version of "Flag content" module.
But, it's better to go forward than back. So let's work on this step by step ;)
Here is an interesting solution:
http://drupal.org/node/134002 ...so if you could tell me the low level name for the "Report this page" variable , then that could be a start.
Another solution that I have up and running on my live site for many months now is precisely to put things in t() . For instance, I have site slogan in my page.tpl.php written as t($site_slogan) and I have my footer message printing as t($footer_message) .. And it has never given me any trouble -- works like a charm. And there are many modules that do this and it works very well.
Comment #5
kbahey commentedAs I said,
t($something)is not a solution. It is problematic in many ways.Read this http://groups.drupal.org/node/15177
I know that it is a problem, but even Drupal core has it, not this module. Once Drupal has a solution, I am happy to accept a patch that implements it.
Comment #6
pomliane commentedThis version of Flag content is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.