Language selection #280
No reviewers
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha!280
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "language-selection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Looks good to me. I left some minor inline remarks, of course :-)
@ -109,6 +107,10 @@* @deprecated Use O_O insteadWhy not use
__()here? The only caveat I can think of is that it would return_localeif not found, but that seems easy to check?@ -30,0 +20,4 @@/*** @return array Associative array containing connecting iso639 language codes with their native name (and english translation)*/public static function getIsoList() {This is probably a good moment to add html escaping, and remove this pointless addslashes (probably in a subsequent commit, though).
@ -107,0 +96,4 @@<?php$popup = <<<EOF<table class="section"><tr>Should this maybe preselect the default or current language? Now, nothing is marked as selected, so it just defaults to the first element in the list.
I think this should validate the language code, since AFAICS
hypha_addPagejust uses it as-is.@laurensmartina I see you pushed to this PR, but it seems my comments are still unfixed. Did you just rebase on top of master maybe?
@ -30,0 +20,4 @@/*** @return array Associative array containing connecting iso639 language codes with their native name (and english translation)*/public static function getIsoList() {Tested it, and removing the
addslashesresults in errors.@ -107,0 +96,4 @@<?php$popup = <<<EOF<table class="section"><tr>fixed
@ -109,6 +107,10 @@* @deprecated Use O_O insteadfixed
fixed at
hypha_addPage@ -30,0 +20,4 @@/*** @return array Associative array containing connecting iso639 language codes with their native name (and english translation)*/public static function getIsoList() {I've removed the addSlashes and added htmlspecialchars, just force pushed this.
I just rebased this on master and added a few more commits (one at the end, and a handful at the beginning). @laurensmartina, could you review my new commits? If they're ok, I think this is ready to be merged.
There is an inconsistency with the return type in the annotation and the actual return type. Please make it consistent.
There is an inconsistency with the return type in the annotation and the actual return type. Please make it consistent.
The changes look good overal. The is just one little inconsistency
Thanks for the review. I've fixed the comment, will merge this now.