Bootstrap Languages is simple module which integrate bootstrap languages library https://github.com/usrz/bootstrap-languages with drupal.

The module provide a block to configure the language switcher.

Project page

https://www.drupal.org/project/bootstrap_languages

Git instructions

git clone --branch 7.x-1.x https://git.drupal.org/project/bootstrap_languages.git

Thanks

Comments

Majdi created an issue. See original summary.

majdi’s picture

Status: Active » Needs review
PA robot’s picture

Issue summary: View changes
Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxPascalAnimateur24936...

Fixed the git clone URL in the issue summary for non-maintainer users.

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.

majdi’s picture

Status: Needs work » Needs review
majdi’s picture

Issue summary: View changes
tatarbj’s picture

Assigned: Unassigned » tatarbj

I'm starting to review the module.

tatarbj’s picture

Issue summary: View changes

The previously posted details about the project led me to a non-existing git repo, so i'm updating the description of this issue and do the review on the right project.

tatarbj’s picture

Assigned: tatarbj » Unassigned
Status: Needs review » Needs work

Hi @Majdi,
i've reviewed the module and have to say it's a well written one, also has inline documentation that helps to understand why things happen as do :)
I found two things that should be taken into account before it gets validated by Security Team:

The first should be fixed, the second as a follow-up manifestated in the module's issue queue, if you want i can contribute on it, just let me know.
PHPCS gives back issues on the css file that should be fixed:

FILE: bootstrap_languages/bootstrap_languages.css
----------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------
 10 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found
    |       |     1
 10 | ERROR | [x] Expected 1 space before opening brace of class
    |       |     definition; 0 found
 15 | ERROR | [x] Expected 1 space before opening brace of class
    |       |     definition; 0 found
 18 | ERROR | [x] Expected 1 space before opening brace of class
    |       |     definition; 0 found
 20 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 125ms; Memory: 5.5Mb

Bests,
Balazs.

majdi’s picture

Status: Needs work » Needs review

Hello tatarbj,
Thanks for reviewing the module also thanks for great review.

for point 1 replace it with current_path()
for point 2 I take off check_plain, for the 2nd part I there is no need use the l function because bootstrap languages library is setting the language name via CSS. so basically there is no link text only span with class controlled by the library.
I'm thinking in another way to let user customize the language which store in drupal, but they still can override the name of the language using css.

Also i have some other ideas, I think this module should be available for all themes not only bootstrap, and it might make sense to allow user to create language switcher blocks as much he wants, and also providing different widgets.

Finally I fix all PHPCS issues.

Thanks again Balazs :)

tatarbj’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @Majdi for the fixes, i have checked them and it seems we are ready for a nice RTBC here, so let me change the status :)

For the mentioned ideas if you want me to give help, please just open an issue under the module's issue queue that you think could be discussed and as i have nowadays quite a lot of free time to contribute just send me a mail with the issue link and i'm gonna be there ;)

Bests,
Balazs.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

avpaderno’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.