--- /dev/null
+/*
+Copyright (c) Igor Barma, Alexandre Desoubeaux, Christian Martel, Eric Brun, Mathieu Amblard, Gwenael Gevet, Pierre Guillot, 2012
+ * Copyright Alexandre Desoubeaux, Christian Martel, Cedric Lecarpentier, Alexandre Lefevre, Marc Salvat 2014-2016
+ * Copyright Alexandre Desoubeaux, Christian Martel, Cedric Lecarpentier, Marc Salvat, Marc Suarez, Harifetra Ramamonjy 2017
+For licensing, see README.txt or http://www.pentilanero.com (Cecill-C or AGPL or LGPL)
+*/
+Ext.ns("EntSavoie.Amis");
+
+if(EntSavoie.Amis.AmisView) {
+ Ext.override(EntSavoie.Amis.AmisView, {
+ i18n : {
+ Amis: {
+ AmisView: {
+ title:"My friends",
+ addListButton: {
+ tooltip:"Add a list"
+ },
+ editListButton: {
+ tooltip:"Rename a list"
+ },
+ deleteListButton: {
+ tooltip:"Delete the selected list"
+ },
+ sendMsgBtn: {
+ text:"Write a message"
+ },
+ deleteFriendBtn: {
+ text:"Delete",
+ tooltip:"Delete the selected friend(s)"
+ },
+ tree: {
+ title:"My friend lists",
+ root: {
+ text:"All my friends"
+ }
+ },
+ searchTextField: {
+ emptyText:"Search"
+ },
+ gridResultPagingToolBar: {
+ displayMsg:"Friends {0} to {1} of {2}"
+ },
+ htmlNoFriend: {
+ html:"You currently have no friends in this list. You can ask friends to join the list via the search tab."
+ },
+ gridResult: {
+ columns:["Surname", "First Name"],
+ title:"All my friends",
+ ddText:"Place in this list"
+ },
+ action_column: {
+ items: {
+ approved: {
+ tooltip:"Authorise this request"
+ },
+ refused: {
+ tooltip:"Refuse this request"
+ },
+ message: {
+ tooltip:"See the message"
+ }
+ }
+ },
+ valid_grid: {
+ ddText:"Place in this list",
+ columns:["Name", "Message"],
+ title:"Friend requests waiting for authorisation",
+ viewConfig:{
+ emptyText:"You currently have no friend requests."
+ }
+ },
+ onAddList: {
+ MessageBox: {
+ title:"Create a friend list",
+ msg:"Please type the name of your list :",
+ buttons: {
+ yes:"Add",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onSuccessCreateList: {
+ alert: {
+ title:"Warning",
+ msg:"The creation has not been completed due to a network malfunction, please refresh the page."
+ },
+ slideMsg: {
+ title:"Information",
+ msg:"has been added."
+ }
+ },
+ onFailureCreateList: {
+ alert: {
+ title:"Warning",
+ msg:"The creation has not been completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onDeleteList: {
+ MessageBox: {
+ title:"Delete a friend list",
+ msg:"Would you also like to delete the friends in this list?",
+ buttons: {
+ yes:"Delete the list and it's content",
+ no:"Only delete the list",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onSuccessSupprList: {
+ alert: {
+ title:"Warning",
+ msg:"The deletion has not been correctly completed due to a network malfunction, please refresh the page."
+ },
+ slideMsg: {
+ title:"Information",
+ msg:"The list has been deleted"
+ }
+ },
+ onFailureSupprList: {
+ alert: {
+ title:"Warning",
+ msg:"The deletion has not been correctly completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onEditList: {
+ MessageBox: {
+ title:"Edit a friend list",
+ msg:"Please enter the new list name :",
+ buttons: {
+ yes:"Rename",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onSuccessRenameList: {
+ alert: {
+ title:"Warning",
+ msg:"The list could not be edited due to a network malfunction, please refresh the page."
+ },
+ slideMsg: {
+ title:"Information",
+ msg:"The list has been renamed."
+ }
+ },
+ onFailureRenameList: {
+ alert: {
+ title:"Warning",
+ msg:"The list could not be edited due to a network malfunction, please refresh the page."
+ }
+ },
+ onDeleteFriend: {
+ alert: {
+ title:"Warning",
+ msg:"You must select at least one friend."
+ },
+ MessageBox: {
+ title:"Delete friends",
+ msg:"Do you really want to delete the selected friends?",
+ buttons: {
+ yes:"Delete",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onSuccessSupprFriend: {
+ alert: {
+ title:"Warning",
+ msg:"The deletion has not been correctly completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onFailureSupprFriend: {
+ alert: {
+ title:"Warning",
+ msg:"The deletion has not been correctly completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onSuccessChangeList: {
+ alert: {
+ title:"Warning",
+ msg:"The transfer could not be completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onFailureChangeList: {
+ alert: {
+ title:"Warning",
+ msg:"The transfer could not be completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onSuccessAcceptChangeList: {
+ alert: {
+ title:"Warning",
+ msg:"The transfer could not be completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onFailureAcceptChangeList: {
+ alert: {
+ title:"Warning",
+ msg:"The transfer could not be completed due to a network malfunction, please refresh the page."
+ }
+ },
+ onSendMessage: {
+ alert: {
+ title:"Warning",
+ msg:"You must select at least one recipient"
+ }
+ },
+ onDescAction: {
+ Msg: {
+ title:"Message"
+ }
+ },
+ onApprovedAction: {
+ MessageBox: {
+ title:"Friend request",
+ msg:"Confirm the authorisation",
+ buttons: {
+ yes:"Yes",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onRefusedAction: {
+ MessageBox: {
+ title:"Friend request",
+ msg:"Are you sure you want to refuse this friend request ?",
+ buttons: {
+ yes:"Yes",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onSuccessApproved: {
+ alert: {
+ title:"Warning",
+ msg:"You have been unable to accept this friend request due to a network malfunction, please refresh the page."
+ }
+ },
+ onFailureApproved: {
+ alert: {
+ title:"Warning",
+ msg:"You have been unable to accept this friend request due to a network malfunction, please refresh the page."
+ }
+ },
+ onSuccessRefused: {
+ alert: {
+ title:"Warning",
+ msg:"You have been unable to refuse this friend request due to a network malfunction, please refresh the page."
+ }
+ },
+ onFailureRefused: {
+ alert: {
+ title:"Warning",
+ msg:"You have been unable to refuse this friend request due to a network malfunction, please refresh the page."
+ }
+ },
+ viewColumn:{
+ tooltip:"See friends"
+ },
+ viewColumnRequest:{
+ tooltip:"See friends"
+ },
+ formatCommonFriends: {
+ valueString:"No friends in common.",
+ valueStringnofriends:" friend(s) in common."
+ }
+ }
+ }
+ }
+ });
+}
+
+
+if(EntSavoie.Amis.AmisSearch) {
+ Ext.override(EntSavoie.Amis.AmisSearch, {
+ i18n : {
+ Amis: {
+ AmisSearch: {
+ title:"Search for friends",
+ wait: {
+ msg:"<b>Loading</b><br>Please wait..."
+ },
+ waitStatus:"waiting",
+ items: {
+ search: {
+ title:"Search"
+ },
+ users: {
+ title:"Users"
+ }
+ },
+ nameSearchField: {
+ emptyText:"Surname",
+ fieldLabel:"Surname"
+ },
+ firstNameSearchField: {
+ emptyText:"First Name",
+ fieldLabel:"First Name"
+ },
+ statutCombo: {
+ emptyText:"Status",
+ fieldLabel:"Status"
+ },
+ matiereCombo: {
+ fieldLabel:"Subject",
+ emptyText:"Subject"
+ },
+ etabCombo: {
+ fieldLabel:"School",
+ emptyText:"Establishment"
+ },
+ classeCombo: {
+ fieldLabel:"Class",
+ emptyText:"Class"
+ },
+ searchBtn: {
+ text:"Search"
+ },
+ askFriendBtn: {
+ text:"Ask to become a friend"
+ },
+ contactGridBbar: {
+ displayMsg:"{2} result(s)",
+ emptyMsg:"No corresponding user"
+ },
+ contactGrid: {
+ columns:["Surname", "First Name", "Establishment", "Profile", "Status"]
+ },
+ onAskFriend: {
+ alert: {
+ title:"Warning",
+ msg:"You must select at least one friend."
+ },
+ MessageBox: {
+ title:"Friendship requests",
+ msg:"Please enter a comment to accompany your request :",
+ buttons: {
+ yes:"Ask to become a friend",
+ cancel:"Cancel"
+ }
+ }
+ },
+ onSuccessAskFriend: {
+ alert: {
+ title:"Warning",
+ msg:"Your request(s) could not be sent due to a network malfunction, please refresh the page."
+ },
+ slideMsg: {
+ title:"Information",
+ msg:"Your request has be sent to the selected contact(s)."
+ }
+ },
+ onFailureAskFriend: {
+ alert: {
+ title:"Warning",
+ msg:"Your request(s) could not be sent due to a network malfunction, please refresh the page."
+ }
+ }
+ }
+ }
+ }
+ });
+}
+if(EntSavoie.Amis.AmisRequestWindow) {
+ Ext.override(EntSavoie.Amis.AmisRequestWindow, {
+ i18n : {
+ Amis: {
+ AmisRequestWindow: {
+ title:"Confirm the friend request ?",
+ cancelBtn:{
+ text:"Cancel"
+ },
+ validBtn:{
+ text:"Submit"
+ },
+ sendInvitBtn:{
+ text:"Ask to become a friend"
+ },
+ closeBtn:{
+ text:"Close"
+ },
+ panelSuggestions:{
+ html:"<b>You might know :</b>"
+ },
+ onSuccessAskFriend:{
+ alert:{
+ title:"Warning",
+ msg:"Your request(s) could not be sent due to a network malfunction, please refresh the page."
+ },
+ slideMsg:{
+ title:"Information",
+ msg:"Your request has be sent to the selected contact(s)."
+ }
+ },
+ onFailureAskFriend:{
+ alert: {
+ title:"Warning",
+ msg:"Your request(s) could not be sent due to a network malfunction, please refresh the page."
+ }
+ }
+
+ }
+ }
+ }
+ });
+}
+if(EntSavoie.Amis.AmisViewWindow) {
+ Ext.override(EntSavoie.Amis.AmisViewWindow, {
+ i18n : {
+ Amis: {
+ AmisViewWindow: {
+ sendInvitBtn:{
+ text:"Ask to become a friend"
+ },
+ closeBtn:{
+ text:"Close"
+ },
+ listGridGroupingView:{
+ emptyText:"That person has no friends."
+ },
+ showSelectedAmis:{
+ setTitle:["Friends of ","Friends of "]
+ },
+ onSuccessAskFriend:{
+ alert:{
+ title:"Warning",
+ msg:"Your request(s) could not be sent due to a network malfunction, please refresh the page."
+ },
+ slideMsg:{
+ title:"Information",
+ msg:"Your request has be sent to the selected contact(s)."
+ }
+ },
+
+ onFailureAskFriend:{
+ alert:{
+ title:"Warning",
+ msg:"Your request(s) could not be sent due to a network malfunction, please refresh the page."
+ }
+ }
+ }
+ }
+ }
+ });
+}
+