I thought of this while filing #2384...
I was thinking something like project_get_info($project_name, $property = NULL)
that would auto-detect project type (from the .info file or the system table?). If $property
is omitted, then an array of all the project info would be returned (keyed by property), else the specific property defined in $property
. This would allow us to get a specific project property like this:
$human_readable_name = project_get_info('devel', 'name');
...instead of this:
$module_info = system_get_info('module', 'devel');
$human_readable_name = $module_info['name'];
...while still being able to do things like this:
$module_info = project_get_info('devel');
$human_readable_name = $module_info['name'];
Recent comments
Very interesting - seems useful. But it gives me an error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.langcode' in 'where clause': SELECT t.translation FROM {...
Ubercart in Danish?
You can always use Translation template extractor to extract the untranslated strings from a specific module (like Ubercart). Very easy to use.
Ubercart in Danish?
Thank you Olaf, I am in the process of getting every string on my experimental site with Ubercart translated by ChatGPT - so far with very acceptable result (better than I could do...
Ubercart in Danish?