Skip to content

Commit

Permalink
fix false error with git language set to french
Browse files Browse the repository at this point in the history
  • Loading branch information
harrellbm committed Mar 12, 2022
1 parent f30e5b9 commit a4beaff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Platform/Client/httpInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,8 @@ exports.newHttpInterface = function newHttpInterface() {
let split = raw.split('\n')
// Keep only end of returned message and format for UI
for (let str of split) {
if (str.includes('pushes')) {
// TODO: needs localized for all supported languages
if (str.includes('pushes') || str.includes('pousse')) {
// Get name of Branch
let branch = str.trim().split(' ')[0]
// Get status of branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ function newContributionsContributionsPage() {
if (stat[2] === undefined || stat[2].length === 0) {
HTML += '<div class="repo-update-stat">Something is wrong with the status of your local repository. Check the console</div>'
} else {
//TODO: needs localized for all supported languages
for (const branch of stat[2]) {
if (UI.projects.education.spaces.docsSpace.currentBranch === branch[0]) {
if (branch[1] === 'local out of date'){
HTML += '<div class="repo-update-stat" style="color:#b11a0f">Out dated. Please Update</div>'
} else if (branch[1] === 'up to date'){
} else if (branch[1] === 'up to date' || branch[1] === "a jour"){
HTML += '<div class="repo-update-stat" style="color:#10aa1d">Up to date!</div>'
} else {
HTML += '<div class="repo-update-stat">Local code is ' + branch[1] + ' </div>'
Expand Down

0 comments on commit a4beaff

Please sign in to comment.