Warning when configuring the Profile completion

Bug #1596808 reported by Dominique-Alain JAN
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Unassigned

Bug Description

I was configuring the details of the Profil completion feature for an institution on a new Mahara with the setting $cfg->productionmode=false.

When I saved the page I got the following warning :

Call stack (most recent first):

    log_message("sprintf(): Too few arguments", 8, true, true, "/var/mahara/htdocs/lib/mahara.php", 1419) at /var/mahara/htdocs/lib/errors.php:489
    error(2, "sprintf(): Too few arguments", "/var/mahara/htdocs/lib/mahara.php", 1419, array(size 3)) at Unknown:0
    sprintf("La barre de progression du remplissage du profil d...") at Unknown:0
    call_user_func_array("sprintf", array(size 1)) at /var/mahara/htdocs/lib/mahara.php:1419
    format_langstring("La barre de progression du remplissage du profil d...", array(size 0), "fr.utf8") at /var/mahara/htdocs/lib/mahara.php:512
    get_string_location("profilecompletenessdesc1", "admin", array(size 0)) at /var/mahara/htdocs/lib/mahara.php:295
    get_string("profilecompletenessdesc1", "admin") at Unknown:0
    call_user_func_array("get_string", array(size 2)) at /var/mahara/htdocs/lib/dwoo/mahara/plugins/function.str.php:32
    Dwoo_Plugin_str(object(Dwoo_Mahara), "profilecompletenessdesc1", "admin", null, null, null, null, null) at /var/www/data/maharadata/dwoo/compile/raw/var/mahara/htdocs/theme/raw/templates/admin/users/progressbar.tpl.d17.php:10
    include("/var/www/data/maharadata/dwoo/compile/raw/var/maha...") at /var/mahara/htdocs/lib/dwoo/dwoo/Dwoo/Core.php:374
    Dwoo_Core->get(object(Dwoo_Template_File), array(size 44)) at /var/mahara/htdocs/lib/dwoo/mahara/Dwoo_Mahara.php:123
    Dwoo_Mahara->fetch("admin/users/progressbar.tpl") at /var/mahara/htdocs/lib/dwoo/mahara/Dwoo_Mahara.php:107
    Dwoo_Mahara->display("admin/users/progressbar.tpl") at /var/mahara/htdocs/admin/users/progressbar.php:244

Mahara last 16.04_STABLE pulled version

Changed in mahara:
milestone: 16.04.2 → 16.10.0
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Dominique

There is a special character '%' in the french translation of the lang string 'profilecompletenessdesc1'. You need to escape this character by adding the backslash '\' before it.

Changed in mahara:
status: Confirmed → Won't Fix
Revision history for this message
Son Nguyen (ngson2000) wrote :

Sorry Dominique. Please adding the '%' before it.

The correct translation:

La barre de progression du remplissage du profil donne aux utilisateurs une bonne indication sur l\'état de la saisie des informations personnelles. Vous pouvez choisir les éléments que doivent remplir les utilisateurs pour que leur profil soit complet à 100 %%.

Revision history for this message
Son Nguyen (ngson2000) wrote :

I've updated the translation of this lang string on launchpad.net

https://translations.launchpad.net/mahara-lang/trunk/+pots/mahara/fr/+translate

Son Nguyen (ngson2000)
Changed in mahara:
status: Won't Fix → Fix Committed
Revision history for this message
Dominique-Alain JAN (dajan) wrote :

See the bug report now (7am here). Thank you Son for the correction of the Lang string. Cheers.

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.