Closed (won't fix)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Nov 2009 at 22:36 UTC
Updated:
26 Jul 2016 at 14:46 UTC
Jump to comment: Most recent
Comments
Comment #1
berdirThis is copy & paste code from views.module that I had to override to be able to customize my options form. I could remove the ucwords() but not the variable, as that is the name/lable of the column.
Comment #2
berdirComment #3
Thomas_Zahreddin commentedhm, the version 6.x-1.5
has 3 warning, see end of page
http://localize.drupal.org/translate/projects/privatemsg/releases/231119
for variables the t()-function does not work, if you want to go with variable and translation, then the module i18n is necessary. But the handling for strings is inconvenient, because they have to be written in the settings.php.
Better is the solution with i18nstrings, which updates the translation table from module locale, but adds the dependency of i18n to the project.
A way around the dependency goes massaging:
function messaging_translate($name, $string, $langcode = NULL, $textgroup = 'messaging') {
return function_exists('i18nstrings') ? i18nstrings($textgroup . ':' . $name, $string, $langcode) : $string;
}
but means all function calls have to be updated.
What do you think ?
Comment #4
oadaeh commentedThis issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-1.x branch (bug fixes only) or the 7.x-2.x branch.
Thank you.