Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Feb 2014 at 14:35 UTC
Updated:
5 Oct 2015 at 18:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxrang5012184179git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
rang501 commentedIssues are resolved:
http://pareview.sh/pareview/httpgitdrupalorgsandboxrang5012184179git
Comment #3
rang501 commentedComment #4
mike.roberts commentedAutomated Review:
There are some typos in front_translations_remove.txt
Manual Review
export_frontend_strings.module
Comment #5
mike.roberts commentedComment #6
rang501 commentedIssues are resolved.
About that private function: I'm unable to find such wrapper function for _locale_import_one_string_db().
Comment #7
rang501 commentedComment #8
heddnStoring string in the public file system will allow access bypass. Not all front-end strings are viewable by all people. The current implementation would extract those string and place them in a public file system.
Hacking core is not good. Please figure out a different way to implement this module's functionality. Perhaps hook into:
hook_menu -- Use this format: See https://drupal.org/node/300997
It's best not to call pseudo private functions from other modules i.e. _locale_import_one_string_db(). Perhaps duplicate the code locally.
Comment #9
rang501 commentedI have made some improvements.
Core hacking is not required anymore and strings are not available on files system (moved this part to the variables table).
Comment #10
heddnRather than concatenating the link, insert it into the translated string as a variable replacement.
export_frontend_strings_import_formThere's no validation handler to confirm the file uploaded is a csv file. That would be a good thing.
No need to set the values in hook_install, rather use default values from the variable_get.
export_frontend_strings_preprocess_htmlI'm not able to understand what is going on with the js logic in here. Could you provide some comments?
The array should wrap the values onto a new line.
Starred items (*) are fairly big issues and warrant going back to Needs Review. The rest of the comments in the code walkthrough are recommendations.
There are no release blockers. Moving to RTBC.
Comment #11
kscheirerBlocking issues (performance):
Non-blocking issues:
Potentially blocking (duplication):
Comment #12
rang501 commentedHi!
I found some time to fix the issues.
1. I made improvements on the blocking issues, so my code is only running on non-admin paths, which was the main idea in the first place. You are right about the performance problem, and I was aware of that, but I was able to improve it, by not touching it and introducing a new static variable to preserve the state and later on, find the difference between the arrays.
-----
Non-blocking:
-----
Potentially blocking:
It is a bit similar, but my module tries to be more specific and collects only those strings the user is interested in (by navigating manually the pages). This might be a rare use case, but it might find more uses over time.
Comment #13
rang501 commentedComment #14
luigisaAutomated Review
Found errors in automated review: http://pareview.sh/pareview/httpgitdrupalorgsandboxrang5012184179git
Manual Review
Coding style & Drupal API usage
Found 2 warnings and 1 fatal error, with this can not be review more
Comment #15
heddnre #14: Can you be more specific in your review on the fatal error? It isn't clear what action you wish from @rang501.
Comment #16
luigisare #15: for example this:
in this function "export_frontend_strings_preprocess_html"
$merge = array_keys($diff);
+if(!is_array($merge)) {
+ $merge = array($merge);
+}
_export_frontend_strings_merge($merge);
Comment #17
rang501 commentedMade the required changes.
Comment #18
rang501 commented