Skip to content

Commit

Permalink
Merge pull request #664 from iShafayet/sprint-0.2.3
Browse files Browse the repository at this point in the history
Sprint 0.2.3
  • Loading branch information
iShafayet authored May 26, 2019
2 parents 1349170 + 89db527 commit 500f678
Show file tree
Hide file tree
Showing 25 changed files with 186 additions and 75 deletions.
24 changes: 17 additions & 7 deletions client/src/lang-bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"networkErrorTGotIt": "ঠিক আছে",
"networkErrorTitle": "ইন্টারনেট সংযোগ",
"networkErrorContent": "আপনার ইন্টারনেট সংযোগ বিচ্ছিন্ন হয়ে আছে। ইন্টারনেটে সংযুক্ত হয়ে আবার চেষ্টা করুন। ",
"unableToGoOffline": "অফলাইন মোড সক্ষম করতে অক্ষম। পরের বার আপনি অনলাইনে থাকবেন, অফলাইন মোডের জন্য একটি আউটলেট নির্বাচন করতে ভুলবেন না।"
"unableToGoOffline": "অফলাইন মোড সক্ষম করতে অক্ষম। পরের বার আপনি অনলাইনে থাকবেন, অফলাইন মোডের জন্য একটি আউটলেট নির্বাচন করতে ভুলবেন না।",
"apiErrorHeader": ""
},
"general": {
"or": "বা",
Expand All @@ -14,7 +15,6 @@
"hideCard": "এখন না",
"pressBelowButton": "নিচের বাটন চাপুন",
"pressAboveButton": "উপরের বাটন চাপুন",
"sorry": "দুঃখিত",
"thankYou": "ধন্যবাদ",
"listIsEmpty": "তালিকা খালি।",
"search": "খোঁজ",
Expand Down Expand Up @@ -81,10 +81,9 @@
"digital": "ডিজিটাল",
"email": "ইমেইল",
"designation": "পদবী",
"errorMessageBody": "ত্রুটি ত্রুটি দেখা দিয়েছে, লিপি প্রতিনিধির সাথে যোগাযোগ করুন",
"errorMessageTitle": "ত্রুটি",
"errorMessageBody": "সমস্যা দেখা দিয়েছে, লিপি প্রতিনিধির সাথে যোগাযোগ করুন",
"errorMessageTitle": "সমস্যা হয়েছে",
"noDataFound": "কোন তথ্য পাওয়া যায়নি",
"changeWallet": "Change Wallet",
"activatedModules": "সক্রিয় মডিউলগুলো",
"moduleDescriptionLineOne": "ভিন্ন মডিউল লিপি তে বিভিন্ন কার্যকারিতা যোগ করে। নিচে বর্তমানে সক্রিয় মডিউল গুলো উল্লেখিত;",
"moduleDescriptionLineTwo": "লিপি তে আরো ফীচার এবং কার্যকারিতা যোগ করতে আমাদের সাথে যোগাযোগ করুন এই নম্বরে +880 1770 947908 অথবা care@anvil.live এ মেইল লিখুন ",
Expand All @@ -96,7 +95,8 @@
"both": "উভয়",
"optional": "(ঐচ্ছিক)",
"print": "প্রিন্ট",
"showFilters": "ফিল্টার"
"showFilters": "ফিল্টার",
"verificationUnsuccessful": "যাচাই ব্যর্থ"
},
"login": {
"learnMoreAboutLipi": "লিপির বিষয় আরো জানুন",
Expand All @@ -123,7 +123,9 @@
"passwordInput": "সর্বনিম্ন ৮ অক্ষরের পাসওয়ার্ড দিন",
"passwordInputError": "সর্বনিম্ন ৮ অক্ষরের একটি পাসওয়ার্ড দিন",
"alreadyHaveAccount": "আপনার কি ইতিমধ্যে একটি একাউন্ট আছে?",
"tocNotReadHeader": "শর্তাবলী পড়ুন",
"tocNotRead": "নিবন্ধন করার আগে আপনাকে অবশ্যই শর্তাবলী পড়তে হবে।",
"tocNotAgreedHeader": "সম্মতি দিন",
"tocNotAgreed": "নিবন্ধন করার আগে আপনাকে অবশ্যই শর্তাবলীতে সম্মত হতে হবে।",
"tocLinkPart1": "নিবন্ধন করার আগে ",
"tocLinkPart2": " শর্তাবলী ",
Expand Down Expand Up @@ -266,6 +268,7 @@
"manageOutletServices": "এই দোকানে প্রদত্ত সেবা গুলো পরিচালনা করুন",
"categoryCodeDropdown": "দোকানের ধরন",
"selectLocationButton": "মানচিত্রে অবস্থান চিহ্নিত করুন",
"locationInvalidDialogHeader": "অবস্থান ভুল",
"locationInvalidDialog": "মানচিত্রে একটি সঠিক অবস্থান নির্বাচন করুন।",
"showingLocationOnMap": "নীচের মানচিত্রে অবস্থান দেখানো হচ্ছে",
"noLocationOnMap": "এখনো অবস্থান মানচিত্রে চিহ্নিত করা হয়নি।"
Expand All @@ -274,7 +277,12 @@
"selectGeolocationTitle": "মানচিত্রে অবস্থান",
"physicalAddress": "ঠিকানা",
"currentLocation": "এখন যেখানে আছেন",
"saveLocation": "অবস্থান নিশ্চিত করুন"
"saveLocation": "অবস্থান নিশ্চিত করুন",

"noGpsAccess": "অনুমতি নেই",
"failedToAccessGpsData": "আপনার অবস্থান জানার অনুমতি দেয়া হয়নি। অনুগ্রহপূর্বক অনুমতি দিন।",
"noGpsSupport": "ব্যবস্থা নেই",
"noGeolocationSupport": "আপনার ডিভাইসে অবস্থান জানার ব্যবস্থা নেই।"
},
"productBlueprint": {
"manageProductBlueprintsTitle": "পণ্যের পরিকল্পনা পরিচালনা",
Expand Down Expand Up @@ -444,6 +452,7 @@
"passwordInput": "আপনার নতুন পাসওয়ার্ড",
"retypePasswordInput": "আপনার নতুন পাসওয়ার্ড আবার লিখুন",
"newPasswordSet": "আপনার নতুন পাসওয়ার্ড সেট করা হয়েছে। আপনি এখন লগ-ইন করতে পারেন।",
"retypeIncorrectHeader": "ভুল হয়েছে",
"retypeIncorrect": "আপনি ভুলভাবে আপনার নতুন পাসওয়ার্ডটি দ্বিতীয় বার লিখেছেন। আবার লিখুন এবং নিশ্চিত করুন।"
},
"customer": {
Expand Down Expand Up @@ -504,6 +513,7 @@
"emergencyContactInput": "জরুরী যোগাযোগের নাম/নম্বর",
"bloodgroupInput": "রক্তের গ্রূপ (ঐচ্ছিক)",
"saveChanges": "পরিবর্তনগুলো সংরক্ষণ করুন",
"incorrectSecondPasswordHeader": "ভুল হয়েছে",
"incorrectSecondPassword": "আপনি ভুলভাবে আপনার নতুন পাসওয়ার্ডটি দ্বিতীয় বার টাইপ করেছেন। আবার সঠিকভাবে টাইপ করুন।",
"passwordChanged": "পাসওয়ার্ড পরিবর্তন করা হয়েছে।",
"profileChanged": "প্রোফাইল পরিবর্তনগুলি সংরক্ষণ করা হয়েছে।"
Expand Down
23 changes: 17 additions & 6 deletions client/src/lang-en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"networkErrorTGotIt": "Got It",
"networkErrorTitle": "Network error",
"networkErrorContent": "Make sure you are connected to the internet and try again",
"unableToGoOffline": "Unable to enable offline mode. Next time you are online, make sure to select an outlet for offline mode."
"unableToGoOffline": "Unable to enable offline mode. Next time you are online, make sure to select an outlet for offline mode.",
"apiErrorHeader": ""
},
"general": {
"or": "or",
Expand All @@ -14,7 +15,6 @@
"hideCard": "Not Now",
"pressBelowButton": "press below button",
"pressAboveButton": "press above button",
"sorry": "Sorry",
"thankYou": "Thank you.",
"listIsEmpty": "List is Empty.",
"search": "Search",
Expand Down Expand Up @@ -82,9 +82,8 @@
"email": "Email",
"designation": "Designation",
"errorMessageBody": "Error Occurred, Please contact Lipi representative.",
"errorMessageTitle": "Error",
"errorMessageTitle": "Error Occurred",
"noDataFound": "No Data Found",
"changeWallet": "Change Wallet",
"activatedModules": "Activated Modules",
"moduleDescriptionLineOne": "Different Modules add different features and functionalities to Lipi. Below listed modules are currently activated;",
"moduleDescriptionLineTwo": "To add more features to Lipi, contact us at +880 1770 947908 or mail us at care@anvil.live",
Expand All @@ -96,7 +95,8 @@
"both": "Both",
"optional": "(Optional)",
"print": "Print",
"showFilters": "Filters"
"showFilters": "Filters",
"verificationUnsuccessful": "Verification Unsuccessful"
},
"login": {
"learnMoreAboutLipi": "Learn more about Lipi",
Expand All @@ -123,7 +123,9 @@
"passwordInput": "A minimum 8 digit password",
"passwordInputError": "Password must be at least 8 characters long.",
"alreadyHaveAccount": "Already have an account?",
"tocNotReadHeader": "Read TOC",
"tocNotRead": "You must read the Terms and Conditions before you proceed.",
"tocNotAgreedHeader": "Agree TOC",
"tocNotAgreed": "You must agree to the Terms and Conditions before you proceed.",
"tocLinkPart1": "Please read the ",
"tocLinkPart2": "The Terms and Conditions",
Expand Down Expand Up @@ -264,6 +266,7 @@
"manageOutletServices": "Manage Services provided in this Outlet",
"categoryCodeDropdown": "Outlet Category",
"selectLocationButton": "Set Location on Map",
"locationInvalidDialogHeader": "Location Invalid",
"locationInvalidDialog": "Please select a valid location on the map.",
"showingLocationOnMap": "Showing location on Map below",
"noLocationOnMap": "Location has not been set on Map yet."
Expand All @@ -272,7 +275,13 @@
"selectGeolocationTitle": "Set Map Location",
"physicalAddress": "Physical Address",
"currentLocation": "Current Location",
"saveLocation": "Save Location"
"saveLocation": "Save Location",

"noGpsAccess": "No GPS Access",
"failedToAccessGpsData": "Failed to access your GPS location. Kindly allow us to locate you.",
"noGpsSupport": "No GPS Support.",
"noGeolocationSupport": "Your browser/device does not support geolocation."

},
"productBlueprint": {
"manageProductBlueprintsTitle": "Manage Product Blueprints",
Expand Down Expand Up @@ -442,6 +451,7 @@
"passwordInput": "Your new password.",
"retypePasswordInput": "Retype Your new password.",
"newPasswordSet": "You new password has been set. You can log in now.",
"retypeIncorrectHeader": "Wrong Retype",
"retypeIncorrect": "You incorrectly typed your new password the second time. Please type it again and press confirm."
},
"customer": {
Expand Down Expand Up @@ -502,6 +512,7 @@
"emergencyContactInput": "Emergency contact person/number",
"bloodgroupInput": "Your Bloodgroup (Optional)",
"saveChanges": "Save Changes",
"incorrectSecondPasswordHeader": "Wrong Retype",
"incorrectSecondPassword": "You incorrectly typed your new password the second time. Please type it again and press confirm.",
"passwordChanged": "Password has been changed.",
"profileChanged": "Profile changes have been saved."
Expand Down
2 changes: 1 addition & 1 deletion client/src/page-confirm-password-reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
let { newPassword, repeatNewPassword } = this.confirmPasswordResetForm;
if (newPassword !== repeatNewPassword) {
let message = this.app.verses.confirmPasswordReset.retypeIncorrect;
return this.app.showModalDialog(this.app.verses.general.sorry, message, () => 'pass');
return this.app.showModalDialog(this.app.verses.confirmPasswordReset.retypeIncorrectHeader, message, () => 'pass');
}

this._processConfirm({ uniqueToken: this.token, newPassword }, () => {
Expand Down
4 changes: 2 additions & 2 deletions client/src/page-edit-outlet.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@

let { name, phone, contactPersonName, physicalAddress, location, categoryCode } = this.editOutletForm;
if (!location) {
this.app.showModalDialog(this.app.verses.general.sorry, this.app.verses.outlet.locationInvalidDialog);
this.app.showModalDialog(this.app.verses.outlet.locationInvalidDialogHeader, this.app.verses.outlet.locationInvalidDialog);
return;
}
this._processCreateOutlet({ name, phone, contactPersonName, physicalAddress, location, categoryCode });
Expand All @@ -325,7 +325,7 @@

let { name, phone, contactPersonName, physicalAddress, location, categoryCode } = this.editOutletForm;
if (!location) {
this.app.showModalDialog(this.app.verses.general.sorry, this.app.verses.outlet.locationInvalidDialog);
this.app.showModalDialog(this.app.verses.outlet.locationInvalidDialogHeader, this.app.verses.outlet.locationInvalidDialog);
return;
}
this._processUpdateOutlet({ name, phone, contactPersonName, physicalAddress, location, categoryCode });
Expand Down
2 changes: 1 addition & 1 deletion client/src/page-edit-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
_processUserChangePassword({ oldPassword, newPassword, repeatNewPassword }) {
if (repeatNewPassword !== newPassword) {
let message = this.app.verses.editProfile.incorrectSecondPassword;
return this.app.showModalDialog(this.app.verses.general.sorry, message, () => 'pass');
return this.app.showModalDialog(this.app.verses.editProfile.incorrectSecondPasswordHeader, message, () => 'pass');
}
let data = { oldPassword, newPassword };
this.app.callUserChangePasswordApi(data, (err, response) => {
Expand Down
4 changes: 2 additions & 2 deletions client/src/page-home.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
});
} else {
let message = this.app.verses.home.emailCouldNotBeVerified;
this.app.showModalDialog(this.app.verses.general.sorry, message, () => { 'pass' });
this.app.showModalDialog(this.app.verses.general.verificationUnsuccessful, message, () => { 'pass' });
}
});
});
Expand Down Expand Up @@ -491,7 +491,7 @@
});
} else {
let message = this.app.verses.home.phoneCouldNotBeVerified;
this.app.showModalDialog(this.app.verses.general.sorry, message, () => { 'pass' });
this.app.showModalDialog(this.app.verses.general.verificationUnsuccessful, message, () => { 'pass' });
}
});
});
Expand Down
4 changes: 2 additions & 2 deletions client/src/page-pos.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
this.onOrganizationChange(this.app.organization);
this.app.pushPageTitle(this.app.verses.pos.posPageTitle);
if (!'outlet' in this.params) {
return this.app.showModalDialog(this.app.verses.general.sorry, this.app.verses.general.somethingWentWrong, () => {
return this.app.showModalDialog(this.app.verses.general.errorMessageTitle, this.app.verses.general.somethingWentWrong, () => {
return this.navigateTo('/home');
});
}
Expand Down Expand Up @@ -752,7 +752,7 @@

_processAddSalesOffline(salesData, cbfn) {
if (salesData.payment.totalBilled > salesData.payment.paidAmount) {
this.app.showModalDialog(this.verses.general.sorry, this.verses.pos.disallowCreditSale);
this.app.showModalDialog(this.verses.general.errorMessageTitle, this.verses.pos.disallowCreditSale);
return;
}
this.app.db.update('offline-data', (({ which }) => which === 'only'), offlineData => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/page-print-sales-receipt.html
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@
let salesId = String(this.params.sales);
let sales = offlineData.data.unsyncedSalesList.find(sales => sales.id === salesId);
if (!sales) {
this.app.showModalDialog(this.app.verses.general.sorry, this.app.verses.general.somethingWentWrong);
this.app.showModalDialog(this.app.verses.general.errorMessageTitle, this.app.verses.general.somethingWentWrong);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions client/src/page-register.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@
if (!this.elem('#registerForm').validate()) return;

if (!this.hasClickedTheToc) {
return this.app.showModalDialog(this.verses.general.sorry, this.verses.register.tocNotRead);
return this.app.showModalDialog(this.verses.register.tocNotReadHeader, this.verses.register.tocNotRead);
}

if (!this.agreesToToc) {
return this.app.showModalDialog(this.verses.general.sorry, this.verses.register.tocNotAgreed);
return this.app.showModalDialog(this.verses.register.tocNotAgreedHeader, this.verses.register.tocNotAgreed);
}

let { fullName, phone, password } = this.registerForm;
Expand Down
Loading

0 comments on commit 500f678

Please sign in to comment.