[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 

Changeset 11628


Ignore:
Timestamp:
05/13/15 21:56:58 (4 years ago)
Author:
srloomis
Message:

cldrbug 7347: add some documentation

Location:
trunk/tools/cldr-apps/WebContent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/cldr-apps/WebContent/dojoroot/surveyTool/nls/stui.js

    r11627 r11628  
    294294                 
    295295                user_me: "Me", 
     296                users_guidance: "[BETA] This is a Users page. <p>Uncheck 'Hide Locked' to include locked users. <p>To 'View Old Vote Stats', click the so-named button. <p>To transfer votes, click 'Transfer Old Votes' on the user you want to transfer votes TO, and give the email address of the user to transfer old votes FROM, the locale to transfer FROM, and the locale to transfer TO. This button will also reset the 'Do you want import old votes?' button for that user. After import, look for the 'result_count': value under the TO user indicating how many votes actually transferred. ", 
     297                users_infoVotesButton: "View Old Vote Stats", 
     298                users_loadVotesButton: "Transfer Old Votes...", 
    296299                 
    297300                special_general: "Please hover over the sidebar to choose a section to begin entering data. If you have not already done so, please read the <a target='_blank' href='http://www.unicode.org/cldr/survey_tool.html'>Instructions</a>, particularly the Guide and the Walkthrough. You can also use the Dashboard to see all the errors, warnings, and missing items in one place.", 
  • trunk/tools/cldr-apps/WebContent/js/special/users.js

    r11627 r11628  
    1919 
    2020                // set up the 'right sidebar' 
    21                 showInPop2("This Is A users Page", null, null, null, true); /* show the box the first time */                                    
     21                showInPop2(stui.str("users_guidance"), null, null, null, true); /* show the box the first time */                                        
    2222                 
    2323                // No longer loading 
     
    9191                                u.infoSpan.appendTo(u.obj); 
    9292 
    93                                 u.infoButton = $('<button />', {text: 'Info'}); 
     93                                u.infoButton = $('<button />', {text: stui.str('users_infoVotesButton')}); 
    9494                                u.infoButton.appendTo(u.obj); 
    9595                                 
     
    107107                                                }) 
    108108                                                .done(function(data2) { 
    109                                                         $(u.infoSpan).text(JSON.stringify(data2.user_oldvotes.data)); 
     109                                                        if(data2.user_oldvotes.data.length == 0) { 
     110                                                                $(u.infoSpan).text('no old votes.'); 
     111                                                        } else { 
     112                                                                $(u.infoSpan).text('old votes: ' +      JSON.stringify(data2.user_oldvotes.data)); 
     113                                                        } 
    110114                                                }) 
    111115                                                .fail(function(err) { 
     
    115119                                }); 
    116120 
    117                                 u.loadOldVotes = $('<button />', {text: 'loadOldVotes'}); 
     121                                u.loadOldVotes = $('<button />', {text: stui.str('users_loadVotesButton')}); 
    118122                                u.loadOldVotes.appendTo(u.obj); 
    119123                                 
Note: See TracChangeset for help on using the changeset viewer.