+
+
\ No newline at end of file
diff --git a/View/Shop/admin_index.ctp b/View/Shop/admin_index.ctp
index d506c2a..159f9e6 100755
--- a/View/Shop/admin_index.ctp
+++ b/View/Shop/admin_index.ctp
@@ -57,38 +57,30 @@
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/View/Shop/admin_add_item.ctp b/View/Shop/admin_add_item.ctp
index 2f70612..a7145ca 100755
--- a/View/Shop/admin_add_item.ctp
+++ b/View/Shop/admin_add_item.ctp
@@ -1,318 +1,331 @@
-
@@ -39,7 +47,7 @@
$v) {
+ foreach ($search_items as $k => $v) {
if(!isset($category) AND $v['Item']['category'] == $search_first_category OR isset($category) AND $v['Item']['category'] == $category) {
$i++;
$newRow = ( ( $i % ( (12 / $col) ) ) == 0);
diff --git a/config.json b/config.json
index 936c837..0d0dce8 100755
--- a/config.json
+++ b/config.json
@@ -1,31 +1,31 @@
{
"name":"Boutique",
"admin_menus": {
- "Boutique": {
+ "SHOP__TITLE": {
"icon": "shopping-cart",
"index": "3",
"menu": {
- "Gérer les catégories": {
+ "SHOP__MENU_CATEGORIES": {
"icon": "list-alt",
"permission": "SHOP__ADMIN_MANAGE_CATEGORIES",
"route": "/admin/shop/categories"
},
- "Gérer les articles": {
+ "SHOP__MENU_ITEMS": {
"icon": "shopping-basket",
"permission": "SHOP__ADMIN_MANAGE_ITEMS",
"route": "/admin/shop"
},
- "Gérer les promotions": {
+ "SHOP__MENU_VOUCHERS": {
"icon": "percent",
"permission": "SHOP__ADMIN_MANAGE_VOUCHERS",
"route": "/admin/shop/shop/vouchers"
},
- "Gérer les paiements": {
+ "SHOP__MENU_PAYMENTS": {
"icon": "credit-card",
"permission": "SHOP__ADMIN_MANAGE_PAYMENT",
"route": "/admin/shop/payment"
},
- "Cadeaux": {
+ "SHOP__MENU_GIFT": {
"icon": "gift",
"permission": "SHOP__ADMIN_MANAGE_ITEMS",
"route": "/admin/shop/giftall"
@@ -37,7 +37,7 @@
"Boutique": "/shop"
},
"author":"Eywek",
- "version":"1.2.21",
+ "version":"1.3.0",
"useEvents":true,
"permissions" : {
"available" : ["CREDIT_ACCOUNT", "CAN_BUY", "SHOP__ADMIN_MANAGE_ITEMS", "SHOP__ADMIN_MANAGE_CATEGORIES", "SHOP__ADMIN_MANAGE_VOUCHERS", "SHOP__ADMIN_MANAGE_PAYMENT", "SHOP__ADMIN_GIFTALL"],
@@ -47,6 +47,6 @@
}
},
"requirements" : {
- "CMS" : "^1.2.0"
+ "CMS" : "^1.9.0"
}
}
diff --git a/lang/en_US.json b/lang/en_US.json
index 8b7ee80..026b79d 100755
--- a/lang/en_US.json
+++ b/lang/en_US.json
@@ -1,270 +1,273 @@
{
- "SHOP__TITLE": "Shop",
- "SHOP__GLOBAL_AMOUNT": "Amount",
-
- "SHOP__CONFIG": "Configuration",
- "SHOP__SAVE_SUCCESS": "Saved!",
- "SHOP__SAVE_IN_PROGRESS": "Automatic backup ...",
- "SHOP__CONFIG_GOAL_TITLE": "Goal of the month",
- "SHOP__CONFIG_GOAL_DESC": "Leave empty to remove",
- "SHOP__CONFIG_SORT_BY_SERVER": "Sort articles and categories by server",
- "SHOP__CONFIG_BROADCAST_GLOBAL": "Global order made with each purchase",
- "SHOP__CONFIG_EXPLAIN_TITLE": "Rationale",
- "SHOP__CONFIG_EXPLAIN": "The global order will be made on all the selected servers of the purchased article, you can disable this global message for an article when it is created or modified.",
- "SHOP__CONFIG_VARIABLES": "Available variables",
- "SHOP__CONFIG_VARIABLE_ITEM": "Name of the item purchased",
- "SHOP__CONFIG_VARIABLE_QUANTITY": "Quantity of the purchased article",
- "SHOP__CONFIG_VARIABLE_PLAYER": "Player who bought the item",
- "SHOP__CONFIG_VARIABLE_SERVERNAME": "Name of the server where the item was purchased (Displayed under a comma-separated list if there is more than one)",
- "SHOP__CONFIG_SAVE_SUCCESS": "The configuration has been saved!",
-
- "SHOP__ADMIN_MANAGE_ITEMS": "Manage articles",
- "SHOP__ADMIN_MANAGE_VOUCHERS": "Manage Promotions",
- "SHOP__ADMIN_MANAGE_PAYMENT": "Manage Payments",
-
- "SHOP__PAYPAL_RETURN_MSG": "Return to {WEBSITE_NAME} to collect points",
-
- "SHOP__VOUCHERS_MANAGE": "Manage promotional codes",
- "SHOP__VOUCHERS_HISTORIES": "History of the uses of promotional codes",
- "SHOP__VOUCHER_END_DATE": "End date",
- "SHOP__VOUCHER_START_DATE": "Start date",
- "SHOP__VOUCHER_START_DATE_EXPLAIN": "If you set a start date other than now, your promotion may be pre-displayed on the store if the 'Displayed' option is checked, but your users will not be able to use it.",
- "SHOP__VOUCHER_VALUE_LABEL": "Reduction",
- "SHOP__VOUCHER_VALUE_INPUT": "In {MONEY_NAME} or percent",
- "SHOP__VOUCHER_DISPLAYED": "Posted",
- "SHOP__VOUCHER_CHOOSE_TYPE": "Choose the type",
- "SHOP__VOUCHER_MSG_ONE_CATEGORY": "A promotion is in progress on the category {CATEGORY} with the code: {CODE} (Reduction {REDUCTION}).",
- "SHOP__VOUCHER_MSG_MANY_CATEGORIES": "A promotion is underway on {CATEGORIES} categories with the code: {CODE} (Reduced {REDUCTION}).",
- "SHOP__VOUCHER_MSG_ONE_ITEM": "A promotion is in progress on the article {ITEM} with the code: {CODE} (Reduction {REDUCTION}).",
- "SHOP__VOUCHER_MSG_MANY_ITEMS": "A promotion is running on {ITEMS} items with the code: {CODE} (Reduced {REDUCTION}).",
- "SHOP__VOUCHER_MSG_ALL": "A promotion is in progress on all the shop with the code: {CODE} (Reduction {REDUCTION}).",
- "SHOP__VOUCHER_MSG_SOON": "A {REDUCTION} promotion will be available on {START_DATE}!",
- "SHOP__VOUCHER_ADD": "Add a promotional code",
- "SHOP__VOUCHER_SELECT": "Effective on",
- "SHOP__VOUCHER_SELECT_CHOOSE": "Choose an option",
- "SHOP__VOUCHER_GENERATE": "Generate a code",
- "SHOP__VOUCHER_SELECT_ITEMS": "Choose an article (s)",
- "SHOP__VOUCHER_SELECT_CATEGORIES": "Choose a category (s)",
- "SHOP__VOUCHER_TYPE_PERCENTAGE": "Percentage",
- "SHOP__VOUCHER_DISPLAY_CHECKBOX": "By ticking this box, the promotion will be displayed on the shop",
- "SHOP__VOUCHER_ADD_SUCCESS": "The promotion has been added!",
- "SHOP__VOUCHER_ADD_ERROR_CODE_INVALID": "Your code is invalid! (Can be alphanumeric only, # is allowed, maximum 20 characters)",
- "SHOP__VOUCHER_DELETE_SUCCESS": "The promotion has been deleted!",
- "SHOP__VOUCHER_LIMIT": "Limit of use",
- "SHOP__VOUCHER_LIMIT_SHORT": "Limit",
- "SHOP__VOUCHER_LIMIT_DESC": "Put 0 for no limit",
- "SHOP__VOUCHER_LIMIT_TYPE": "Type of limit",
- "SHOP__VOUCHER_LIMIT_TYPE_USER": "Per user",
- "SHOP__VOUCHER_LIMIT_TYPE_GLOBAL": "Global",
- "SHOP__VOUCHER_CODE": "Code",
- "SHOP__VOUCHER_REDUCTION": "{MONEY_NAME} discount",
-
- "SHOP__PAYSAFECARD": "PaySafeCard",
- "SHOP__PAYSAFECARD_CODE": "Code",
- "SHOP__PAYSAFECARD_VALID_USER": "Who validated?",
- "SHOP__PAYSAFECARD_HISTORIES": "PaySafeCard transaction history",
- "SHOP__PAYSAFECARD_ADMIN_TITLE": "List of PaySafeCards Pending",
- "SHOP__PAYSAFECARD_DISABLE_SUCCESS": "The PaySafeCard have been deactivated!",
- "SHOP__PAYSAFECARD_ENABLE_SUCCESS": "The PaySafeCard have been deactivated!",
- "SHOP__PAYSAFECARD_ERROR_ALREADY_TOO_PSC_IN_DB": "You already have 2 PaySafeCard pending",
- "SHOP__PAYSAFECARD_ERROR_ALREADY_IN_DB": "You already have this PaySafeCard waiting",
- "SHOP__PAYSAFECARD_VALID_SUCCESS": "The PaySafeCard has been validated!",
- "SHOP__PAYSAFECARD_INVALID_SUCCESS": "The PaySafeCard has been refused!",
- "SHOP__PAYSAFECARD_ADD_SUCCESS": "The PaySafeCard has been added! You will receive an answer within 48h",
- "SHOP__PAYSAFECARD_VALID_CONFIRM": "How many Shop Points do you want to give for this PaySafeCard?",
- "SHOP__PAYSAFECARD_MESSAGE_VALID": "Your {AMOUNT} PaySafeCard has been validated! You earn {POINTS} {MONEY_NAME}.",
- "SHOP__PAYSAFECARD_MESSAGE_INVALID": "Your {AMOUNT} PaySafeCard has been declined.",
- "SHOP__PAYSAFECARD_ACCEPT": "Validate",
- "SHOP__PAYSAFECARD_REFUSE": "Deny",
-
- "SHOP__DEDIPASS_PAYMENT": "Pay with dedipass",
- "SHOP__DEDIPASS_CONFIGURATION": "Dedipass Configuration",
- "SHOP__DEDIPASS_EDIT_CONFIG_SUCCESS": "The configuration has been successfully edited!",
- "SHOP__DEDIPASS_TOGGLE_ERROR_NO_CONFIG": "You can not activate Dedipass if you have not set up public key before!",
- "SHOP__DEDIPASS_TOGGLE_ENABLE_SUCCESS": "You have successfully activated Dédipass as a payment method!",
- "SHOP__DEDIPASS_TOGGLE_DISABLE_SUCCESS": "You have deactivated Dédipass as a payment method!",
- "SHOP__DEDIPASS_PUBLICKEY": "Public key (called data-dedipass i> in the installation part of Dédipass)",
- "SHOP__DEDIPASS_HISTORIES": "Dedipass transaction history",
- "SHOP__DEDIPASS_PAYMENT_ERROR_NOT_CONNECTED": "You were not logged in, please log in and try again (Code previously entered: {CODE}).",
- "SHOP__DEDIPASS_PAYMENT_ERROR_INVAID_CODE": "The entered code is invalid.",
- "SHOP__DEDIPASS_PAYMENT_ERROR_EMPTY_CODE": "Please enter a code.",
- "SHOP__DEDIPASS_PAYMENT_ERROR_EMPTY_RATE": "Please choose an offer",
- "SHOP__DEDIPASS_PAYMENT_SUCCESS": "The Dedipass transaction went well, you were credited with {MONEY} {MONEY_NAME}.",
- "SHOP__DEDIPASS_CODE": "Code",
- "SHOP__DEDIPASS_RATE": "Landing",
- "SHOP__DEDIPASS_EXPLAIN_CONFIG": "To use Dédipass, you have to register on the Dédipass b> website, then add a new service.You must choose virtual currency i> and then configure the You will need the following URLs: ",
- "SHOP__DEDIPASS_EXPLAIN_CONFIG_URL_1": "Installation URL",
- "SHOP__DEDIPASS_EXPLAIN_CONFIG_URL_2": "Redirect URL",
-
- "SHOP__USER_POINTS_TRANSFER": "Send money",
- "SHOP__USER_POINTS_TRANSFER_ADMIN": "Transfer of points",
- "SHOP__USER_POINTS_TRANSFER_HISTORIES": "{MONEY_NAME} transfer history between players",
- "SHOP__USER_POINTS_TRANSFER_WHO": "Who?",
- "SHOP__USER_POINTS_TRANSFER_HOW_MANY": "How much?",
- "SHOP__USER_POINTS_TRANSFER_ERROR_EMPTY": "You can not send nothing",
- "SHOP__USER_POINTS_TRANSFER_ERROR_YOURSELF": "You can not transfer credits to yourself",
- "SHOP__USER_POINTS_TRANSFER_ERROR_DISABLED": "Point transfer is disabled.",
- "SHOP__USER_POINTS_TRANSFER_ERROR_WAIT": "You have to wait for a while before you can transfer.",
- "SHOP__USER_POINTS_TRANSFER_SUCCESS": "The money has been sent!",
- "SHOP__TRANSFER_ENABLE_SUCCESS": "You have activated the transfer of points!",
- "SHOP__TRANSFER_DISABLE_SUCCESS": "You have deactivated the transfer of points!",
-
- "SHOP__GIFTALL": "Make a gift to everyone",
- "SHOP__GIFTALL_VALUE": "Number of shop point(s) to be given to all users of the site",
- "SHOP__GIFTALL_SUCCESS": "Your gift has been made",
-
- "SHOP__ITEM": "Article",
- "SHOP__ITEMS": "Articles",
- "SHOP__ITEM_ADD_COMMAND": "Add an order",
- "SHOP__ITEM_EDIT": "Editing an article",
- "SHOP__ITEMS_AVAILABLE": "Items for sale",
- "SHOP__ITEM_NAME": "Name",
- "SHOP__ITEM_IMG_URL": "URL of the image",
- "SHOP__ITEM_PRICE": "Price",
- "SHOP__ITEM_QUANTITY": "Quantity",
- "SHOP__ITEM_TOTAL": "Total",
- "SHOP__ITEM_DESCRIPTION": "Description",
- "SHOP__ITEM_EDIT_SUCCESS": "Article successfully modified!",
- "SHOP__ITEM_DELETE_SUCCESS": "Article Deleted Successfully!",
- "SHOP__ITEM_ADD_SUCCESS": "Article added successfully!",
- "SHOP__ITEM_ADD": "Add an article",
- "SHOP__ITEM_TIMED_COMMAND": "DIFFERENT COMMAND",
- "SHOP__ITEM_TIMED_COMMAND_DESC": "This is a command that will be done after a certain time (for grades for example)",
- "SHOP__ITEM_TIMED_COMMAND_TIME": "Time",
- "SHOP__ITEM_DISPLAY_SERVER": "Show the server (s) where the article will be given.",
- "SHOP__ITEM_CHECKBOX_CONNECT": "Require the player to be connected to the server to buy the article",
- "SHOP__ITEM_CHECKBOX_DISPLAY": "Show article on the shop",
- "SHOP__ITEM_MULTIPLE_BUY": "Allow this item to be purchased multiple times (in one purchase only)",
- "SHOP__ITEM_CANT_BUY_MULTIPLE": "You can not buy this item ( {ITEM_NAME} i>) more than once",
- "SHOP__ITEM_CART": "Allow add to cart of this article",
- "SHOP__ITEM_CANT_ADDED_TO_CART": "You can not buy item {ITEM_NAME} i> with a cart.",
- "SHOP__ITEM_CANT_BUY_LIMIT": "You can not buy item {ITEM_NAME} i> over {LIMIT} times.",
- "SHOP__ITEM_BROADCAST_GLOBAL": "Make the global order when purchasing this item",
- "SHOP__ITEM_PREREQUISITES": "Do you want to activate the prerequisites?",
- "SHOP__ITEM_PREREQUISITES_TYPE_0": "No.",
- "SHOP__ITEM_PREREQUISITES_TYPE_1": "Yes, the player must have purchased all the following items",
- "SHOP__ITEM_PREREQUISITES_TYPE_2": "Yes, the player must have purchased at least one of the following items",
- "SHOP__ITEM_PREREQUISITES_ITEMS": "Available items",
- "SHOP__ITEM_CHECKBOX_REDUCTIONAL_ITEMS": "Activate price reduction if one or more of the following items are / are purchased",
- "SHOP__ITEM_REDUCTIONAL_ITEMS_LIST": "A discount is applied to this item ({REDUCTION}) because you have already purchased the following items {ITEMS_LIST}.",
- "SHOP__ITEM_CANT_BUY_PREREQUISITES_1": "You can not buy this item without purchasing all of the following items: {ITEMS}",
- "SHOP__ITEM_CANT_BUY_PREREQUISITES_2": "You can not buy this item without purchasing at least one of the following items: {ITEMS}",
- "SHOP__ITEM_GIVE_SKIN": "Give permission to change skin with the purchase of this article",
- "SHOP__ITEM_GIVE_CAPE": "Give permission to change cape with the purchase of this article",
- "SHOP__ITEM_CANT_BUY_NOT_CONNECTED": "You must be logged in to purchase item {ITEM_NAME} b>!",
- "SHOP__ITEM_BUY_LIMIT": "Purchase limit (how much a maximum item can be purchased)",
- "SHOP__ITEM_BUY_LIMIT_PLACEHOLDER": "Put 0 for no limit",
- "SHOP__ITEM_WAIT_TIME": "Time interval between purchases",
- "SHOP__ITEM_CANT_BUY_WAIT_TIME": "You can not buy item {ITEM_NAME} i> now! Every purchase must be spaced from {WAIT_TIME}.",
- "SHOP__ITEMS_AVAILABLE_OTHER":"Items not listed",
- "SHOP__ITEM_CURRENCY":"Currency (EUR, USD...)",
- "SHOP__CATEGORIES": "Categories",
- "SHOP__CATEGORY": "Category",
- "SHOP__CATEGORY_ADD": "Add a category",
- "SHOP__CATEGORY_ADD_SUCCESS": "Category added successfully!",
- "SHOP__CATEGORY_EDIT_SUCCESS": "Category successfully modified!",
- "SHOP__CATEGORY_DELETE_SUCCESS": "Category Successfully Deleted!",
- "SHOP__CATEGORY_NUMBER": "Number of articles linked to the category",
-
- "SHOP__BUY": "Buy",
- "SHOP__BUY_CART": "See my cart",
- "SHOP__BUY_CART_EMPTY": "Your cart is empty.",
- "SHOP__BUY_ADD_TO_CART": "Add to cart",
- "SHOP__BUY_ADDED_TO_CART": "Added to cart",
- "SHOP__BUY_ERROR_NO_ENOUGH_MONEY": "You do not have enough money to make this purchase.",
- "SHOP__BUY_ERROR_NEED_LOGIN": "You must be logged in to make a purchase.",
- "SHOP__BUY_ERROR_EMPTY": "You can not buy anything.",
- "SHOP__BUY_ERROR_NO_CONNECTED": "You must be logged in to make this purchase.",
- "SHOP__BUY_CONFIRM": "Do you really want to buy this item?",
- "SHOP__BUY_SUCCESS": "The purchase has just been made",
- "SHOP__BUY_VOUCHER_ASK": "Do you have a promotional code?",
-
- "SHOP__ADD_MONEY": "Credit account",
- "SHOP__MONEY_CURRENTLY": "You currently have",
-
- "SHOP__PAYPAL_OFFERS": "PayPal Offers",
- "SHOP__PAYPAL_OFFER": "Offer",
- "SHOP__PAYPAL_HISTORIES": "PayPal transaction history",
- "SHOP__PAYPAL_MAIL": "Email",
- "SHOP__PAYPAL_OFFER_ADD": "Add a PayPal offer",
- "SHOP__PAYPAL_OFFER_ADD_SUCCESS": "PayPal Offer Successfully Added!",
- "SHOP__PAYPAL_OFFER_EDIT": "Modify a PayPal offer",
- "SHOP__PAYPAL_OFFER_EDIT_SUCCESS": "PayPal Offer Changed Successfully!",
- "SHOP__PAYPAL_OFFER_DELETE_SUCCESS": "The PayPal offer has been deleted!",
- "SHOP__PAYPAL_PAYMENT_ID": "PayPal ID",
- "SHOP__PAYPAL_PAYMENT_DELAY": "Users can be credited up to 5min after payment on PayPal.This delay depends on the services of PayPal.",
-
- "SHOP__NANO_OFFERS": "Nano Offers",
- "SHOP__NANO_OFFER": "Offer",
- "SHOP__NANO_HISTORIES": "Nano transaction history",
- "SHOP__NANO_ADDRESS": "address (nano_...)",
- "SHOP__NANO_OFFER_ADD": "Add a Nano offer",
- "SHOP__NANO_OFFER_ADD_SUCCESS": "Nano Offer Successfully Added!",
- "SHOP__NANO_OFFER_EDIT": "Modify a Nano offer",
- "SHOP__NANO_OFFER_EDIT_SUCCESS": "Nano Offer Changed Successfully!",
- "SHOP__NANO_OFFER_DELETE_SUCCESS": "The Nano offer has been deleted!",
- "SHOP__ERROR_NANO_ADDRESS_NOT_VALID":"The Nano address in invalid!",
- "SHOP__NANO_EXPLAIN_CONFIG_1":"To start, you need a wallet either on : ",
- "SHOP__NANO_EXPLAIN_CONFIG_2":" or with the mobile application ",
- "SHOP__NANO_EXPLAIN_CONFIG_3":"A short introduction of Nano is available on ",
- "SHOP__NANO_EXPLAIN_CONFIG_4":"You can have more informations on ",
- "SHOP__OFFER_MONEY_TO_ADD": "How many {MONEY_NAME} do you want to give?",
-
- "SHOP__STARPASS_OFFERS": "StarPass Offers",
- "SHOP__STARPASS_CODE": "Code",
- "SHOP__STARPASS_OFFER": "Offer",
- "SHOP__STARPASS_HISTORIES": "StarPass transaction history",
- "SHOP__STARPASS_OFFER_DELETE_SUCCESS": "The StarPass offer has been deleted!",
- "SHOP__STARPASS_OFFER_ADD": "Add a StarPass offer",
- "SHOP__STARPASS_OFFER_ADD_SUCCESS": "StarPass Offer Successfully Added!",
- "SHOP__STARPASS_OFFER_EDIT": "Edit a StarPass offer",
- "SHOP__STARPASS_OFFER_EDIT_SUCCESS": "StarPass Offer Changed Successfully!",
- "SHOP__STARPASS_PAYMENT": "Create account with StarPass",
- "SHOP__STARPASS_PAYMENT_SUCCESS": "The StarPass transaction went off well! You received your credit shop.",
- "SHOP__STARPASS_PAYMENT_ERROR": "The code you entered is wrong, please try again.",
-
- "SHOP__DASHBOARD_GRAPH_ERROR": "You must have more than 5 different items sold to access the chart",
- "SHOP__ADMIN_PART_2": "Administer the credits",
- "SHOP__ADMIN_PART_1": "Go back to the shop",
- "SHOP__HISTORY_TRANSFER_MONEY": "History of exchange",
- "SHOP__HISTORY_PURCHASES": "Purchase History",
- "SHOP__HISTORY_PURCHASES_MONEY": "{MONEY_NAME} 's Purchase History",
-
- "PERMISSIONS__CREDIT_ACCOUNT": "Create account",
- "PERMISSIONS__CAN_BUY": "Buy",
- "PERMISSIONS__SHOP__ADMIN_MANAGE_ITEMS": "Manage articles of the shop (Add, edit, delete)",
- "PERMISSIONS__SHOP__ADMIN_MANAGE_VOUCHERS": "Manage the promotional codes of the shop (Add, remove)",
- "PERMISSIONS__SHOP__ADMIN_MANAGE_PAYMENT": "Manage the payments of the shop (Add, edit, delete, validate the PSC ...)",
- "PERMISSIONS__VOTE__ADMIN_VIEW_TOP":"Go to the top vote page",
- "PERMISSIONS__SHOP__ADMIN_GIFTALL":"Manage the gifts (donation of points)",
- "PERMISSIONS__SHOP__ADMIN_MANAGE_CATEGORIES":"Manage store categories (Add, Edit, Delete)",
-
- "NOTIFICATION__NEW_VOUCHER": "A new promotional code is available!",
- "NOTIFICATION__NEW_PSC": "A new PaySafeCard must be validated!",
- "NOTIFICATION__PAYPAL_IPN_VALIDED": "Your PayPal payment has been confirmed!",
- "NOTIFICATION__NANO_VALIDED": "Your Nano payment has been confirmed!",
-
- "HISTORY__CATEGORY_SHOP": "Shop",
- "HISTORY__CATEGORY_CREDIT_SHOP": "Shop Creditation",
- "HISTORY__ACTION_VALID_PAYSAFECARD": "Validation of a PaySafeCard",
- "HISTORY__ACTION_DELETE_VOUCHER": "Suppression of a promotional code",
- "HISTORY__ACTION_ADD_VOUCHER": "Adding a promotional code",
- "HISTORY__ACTION_BUY_MONEY_DEDIPASS": "Purchase of credits by Dédipass",
- "HISTORY__ACTION_EDIT_DEDIPASS_CONFIG": "Modifying the configuration of Dédipass",
- "HISTORY__ACTION_DELETE_ITEM": "Deleting an item from the store",
- "HISTORY__ACTION_ADD_ITEM": "Add an article on the shop",
- "HISTORY__ACTION_ADD_CATEGORY": "Add a category to the store",
- "HISTORY__ACTION_BUY_ITEM": "Purchase of",
- "HISTORY__ACTION_BUY_MONEY": "Buying Shop Points",
- "HISTORY__ACTION_SEND_MONEY": "Send money",
- "HISTORY__ACTION_ADD_PAYPAL_OFFER": "Adding a PayPal offer",
- "HISTORY__ACTION_ADD_NANO_OFFER": "Adding a Nano offer",
- "HISTORY__ACTION_ADD_STARPASS_OFFER": "Adding a StarPass offer",
- "HISTORY__ACTION_DELETE_PAYPAL_OFFER": "Deleting a PayPal offer",
- "HISTORY__ACTION_DELETE_STARPASS_OFFER": "Deleting a StarPass offer",
- "HISTORY__ACTION_EDIT_PAYPAL_OFFER": "Modification of a PayPal offer",
- "HISTORY__ACTION_EDIT_STARPASS_OFFER": "Modification of a StarPass offer",
- "HISTORY__ACTION_ENABLE_PAYSAFECARD": "Activation of the PaySafeCard payment method",
- "HISTORY__ACTION_DISABLE_PAYSAFECARD": "Disabling the PaySafeCard payment method",
- "HISTORY__ACTION_ADD_PAYSAFECARD": "Adding a PaySafeCard"
+ "SHOP__TITLE": "Shop",
+ "SHOP__GLOBAL_AMOUNT": "Amount",
+ "SHOP__MENU_CATEGORIES": "Manage categories",
+ "SHOP__MENU_ITEMS": "Manage articles",
+ "SHOP__MENU_VOUCHERS": "Manage promotions",
+ "SHOP__MENU_PAYMENTS": "Manage payments",
+ "SHOP__MENU_GIFT": "Gifts",
+ "SHOP__DUPLICATE": "Duplicate",
+ "SHOP__CONFIRM_DUPLICATE": "Do you really want to duplicate this article?",
+ "SHOP__ITEM_DUPLICATE_SUCCESS": "Article successfully duplicated!",
+ "SHOP__CATEGORY_EDIT": "Edit a cat\u00e9gory",
+ "SHOP__CATEGORIES_OTHER": "Categories not listed",
+ "SHOP__CATEGORY_EDIT_MESSAGE": "If you do not have any sections please first create one here :",
+ "SHOP__CATEGORIES_TIP": "f the feature is available on the theme, categories placed in unlisted will not be visible on the store page. They must be assigned to a section. And categories that will not be linked to a section will not be in the form of drop-down menus.",
+ "SHOP__SECTION_ADD": "Add a section",
+ "SHOP__SECTION": "Section",
+ "SHOP__SECTIONS": "Sections",
+ "SHOP__SECTION_EDIT_SUCCESS": "Section modified successfully!",
+ "SHOP__SECTION_ADD_SUCCESS": "Section added successfully!",
+ "SHOP__SECTION_TIP": "Attention, this feature is not available on all themes, however the use of categories remains possible if you choose not to link to a section. The sections are used to create drop-down menus with the categories contained in them.",
+ "SHOP__CATEGORY_ADD_NO": "Do not link the category to a section (it will be in the form of a button and not a drop-down menu)",
+ "SHOP__CATEGORIES_NO": "Categories not related to a section",
+ "SHOP__SECTION_AND_CATEGORIES": "Sections and Categories",
+ "SHOP__CONFIG": "Configuration",
+ "SHOP__SAVE_SUCCESS": "Saved!",
+ "SHOP__SAVE_IN_PROGRESS": "Automatic backup ...",
+ "SHOP__CONFIG_GOAL_TITLE": "Goal of the month",
+ "SHOP__CONFIG_GOAL_DESC": "Leave empty to remove",
+ "SHOP__CONFIG_SORT_BY_SERVER": "Sort articles and categories by server",
+ "SHOP__CONFIG_BROADCAST_GLOBAL": "Global order made with each purchase",
+ "SHOP__CONFIG_EXPLAIN_TITLE": "Rationale",
+ "SHOP__CONFIG_EXPLAIN": "The global order will be made on all the selected servers of the purchased article, you can disable this global message for an article when it is created or modified.",
+ "SHOP__CONFIG_VARIABLES": "Available variables",
+ "SHOP__CONFIG_VARIABLE_ITEM": "Name of the item purchased",
+ "SHOP__CONFIG_VARIABLE_QUANTITY": "Quantity of the purchased article",
+ "SHOP__CONFIG_VARIABLE_PLAYER": "Player who bought the item",
+ "SHOP__CONFIG_VARIABLE_SERVERNAME": "Name of the server where the item was purchased (Displayed under a comma-separated list if there is more than one)",
+ "SHOP__CONFIG_SAVE_SUCCESS": "The configuration has been saved!",
+ "SHOP__ADMIN_MANAGE_ITEMS": "Manage articles",
+ "SHOP__ADMIN_MANAGE_VOUCHERS": "Manage Promotions",
+ "SHOP__ADMIN_MANAGE_PAYMENT": "Manage Payments",
+ "SHOP__PAYPAL_RETURN_MSG": "Return to {WEBSITE_NAME} to collect points",
+ "SHOP__VOUCHERS_MANAGE": "Manage promotional codes",
+ "SHOP__VOUCHERS_HISTORIES": "History of the uses of promotional codes",
+ "SHOP__VOUCHER_END_DATE": "End date",
+ "SHOP__VOUCHER_START_DATE": "Start date",
+ "SHOP__VOUCHER_START_DATE_EXPLAIN": "If you set a start date other than now, your promotion may be pre-displayed on the store if the 'Displayed' option is checked, but your users will not be able to use it.",
+ "SHOP__VOUCHER_VALUE_LABEL": "Reduction",
+ "SHOP__VOUCHER_VALUE_INPUT": "In {MONEY_NAME} or percent",
+ "SHOP__VOUCHER_DISPLAYED": "Posted",
+ "SHOP__VOUCHER_CHOOSE_TYPE": "Choose the type",
+ "SHOP__VOUCHER_MSG_ONE_CATEGORY": "A promotion is in progress on the category {CATEGORY} with the code: {CODE} (Reduction {REDUCTION}).",
+ "SHOP__VOUCHER_MSG_MANY_CATEGORIES": "A promotion is underway on {CATEGORIES} categories with the code: {CODE} (Reduced {REDUCTION}).",
+ "SHOP__VOUCHER_MSG_ONE_ITEM": "A promotion is in progress on the article {ITEM} with the code: {CODE} (Reduction {REDUCTION}).",
+ "SHOP__VOUCHER_MSG_MANY_ITEMS": "A promotion is running on {ITEMS} items with the code: {CODE} (Reduced {REDUCTION}).",
+ "SHOP__VOUCHER_MSG_ALL": "A promotion is in progress on all the shop with the code: {CODE} (Reduction {REDUCTION}).",
+ "SHOP__VOUCHER_MSG_SOON": "A {REDUCTION} promotion will be available on {START_DATE}!",
+ "SHOP__VOUCHER_ADD": "Add a promotional code",
+ "SHOP__VOUCHER_SELECT": "Effective on",
+ "SHOP__VOUCHER_SELECT_CHOOSE": "Choose an option",
+ "SHOP__VOUCHER_GENERATE": "Generate a code",
+ "SHOP__VOUCHER_SELECT_ITEMS": "Choose an article (s)",
+ "SHOP__VOUCHER_SELECT_CATEGORIES": "Choose a category (s)",
+ "SHOP__VOUCHER_TYPE_PERCENTAGE": "Percentage",
+ "SHOP__VOUCHER_DISPLAY_CHECKBOX": "By ticking this box, the promotion will be displayed on the shop",
+ "SHOP__VOUCHER_ADD_SUCCESS": "The promotion has been added!",
+ "SHOP__VOUCHER_ADD_ERROR_CODE_INVALID": "Your code is invalid! (Can be alphanumeric only, # is allowed, maximum 20 characters)",
+ "SHOP__VOUCHER_DELETE_SUCCESS": "The promotion has been deleted!",
+ "SHOP__VOUCHER_LIMIT": "Limit of use",
+ "SHOP__VOUCHER_LIMIT_SHORT": "Limit",
+ "SHOP__VOUCHER_LIMIT_DESC": "Put 0 for no limit",
+ "SHOP__VOUCHER_LIMIT_TYPE": "Type of limit",
+ "SHOP__VOUCHER_LIMIT_TYPE_USER": "Per user",
+ "SHOP__VOUCHER_LIMIT_TYPE_GLOBAL": "Global",
+ "SHOP__VOUCHER_CODE": "Code",
+ "SHOP__VOUCHER_REDUCTION": "{MONEY_NAME} discount",
+ "SHOP__PAYSAFECARD": "PaySafeCard",
+ "SHOP__PAYSAFECARD_CODE": "Code",
+ "SHOP__PAYSAFECARD_VALID_USER": "Who validated?",
+ "SHOP__PAYSAFECARD_HISTORIES": "PaySafeCard transaction history",
+ "SHOP__PAYSAFECARD_ADMIN_TITLE": "List of PaySafeCards Pending",
+ "SHOP__PAYSAFECARD_DISABLE_SUCCESS": "The PaySafeCard have been deactivated!",
+ "SHOP__PAYSAFECARD_ENABLE_SUCCESS": "The PaySafeCard have been deactivated!",
+ "SHOP__PAYSAFECARD_ERROR_ALREADY_TOO_PSC_IN_DB": "You already have 2 PaySafeCard pending",
+ "SHOP__PAYSAFECARD_ERROR_ALREADY_IN_DB": "You already have this PaySafeCard waiting",
+ "SHOP__PAYSAFECARD_VALID_SUCCESS": "The PaySafeCard has been validated!",
+ "SHOP__PAYSAFECARD_INVALID_SUCCESS": "The PaySafeCard has been refused!",
+ "SHOP__PAYSAFECARD_ADD_SUCCESS": "The PaySafeCard has been added! You will receive an answer within 48h",
+ "SHOP__PAYSAFECARD_VALID_CONFIRM": "How many Shop Points do you want to give for this PaySafeCard?",
+ "SHOP__PAYSAFECARD_MESSAGE_VALID": "Your {AMOUNT} PaySafeCard has been validated! You earn {POINTS} {MONEY_NAME}.",
+ "SHOP__PAYSAFECARD_MESSAGE_INVALID": "Your {AMOUNT} PaySafeCard has been declined.",
+ "SHOP__PAYSAFECARD_ACCEPT": "Validate",
+ "SHOP__PAYSAFECARD_REFUSE": "Deny",
+ "SHOP__DEDIPASS_PAYMENT": "Pay with dedipass",
+ "SHOP__DEDIPASS_CONFIGURATION": "Dedipass Configuration",
+ "SHOP__DEDIPASS_EDIT_CONFIG_SUCCESS": "The configuration has been successfully edited!",
+ "SHOP__DEDIPASS_TOGGLE_ERROR_NO_CONFIG": "You can not activate Dedipass if you have not set up public key before!",
+ "SHOP__DEDIPASS_TOGGLE_ENABLE_SUCCESS": "You have successfully activated Dédipass as a payment method!",
+ "SHOP__DEDIPASS_TOGGLE_DISABLE_SUCCESS": "You have deactivated Dédipass as a payment method!",
+ "SHOP__DEDIPASS_PUBLICKEY": "Public key (called data-dedipass i> in the installation part of Dédipass)",
+ "SHOP__DEDIPASS_HISTORIES": "Dedipass transaction history",
+ "SHOP__DEDIPASS_PAYMENT_ERROR_NOT_CONNECTED": "You were not logged in, please log in and try again (Code previously entered: {CODE}).",
+ "SHOP__DEDIPASS_PAYMENT_ERROR_INVAID_CODE": "The entered code is invalid.",
+ "SHOP__DEDIPASS_PAYMENT_ERROR_EMPTY_CODE": "Please enter a code.",
+ "SHOP__DEDIPASS_PAYMENT_ERROR_EMPTY_RATE": "Please choose an offer",
+ "SHOP__DEDIPASS_PAYMENT_SUCCESS": "The Dedipass transaction went well, you were credited with {MONEY} {MONEY_NAME}.",
+ "SHOP__DEDIPASS_CODE": "Code",
+ "SHOP__DEDIPASS_RATE": "Landing",
+ "SHOP__DEDIPASS_EXPLAIN_CONFIG": "To use Dédipass, you have to register on the Dédipass b> website, then add a new service.You must choose virtual currency i> and then configure the You will need the following URLs: ",
+ "SHOP__DEDIPASS_EXPLAIN_CONFIG_URL_1": "Installation URL",
+ "SHOP__DEDIPASS_EXPLAIN_CONFIG_URL_2": "Redirect URL",
+ "SHOP__USER_POINTS_TRANSFER": "Send money",
+ "SHOP__USER_POINTS_TRANSFER_ADMIN": "Transfer of points",
+ "SHOP__USER_POINTS_TRANSFER_HISTORIES": "{MONEY_NAME} transfer history between players",
+ "SHOP__USER_POINTS_TRANSFER_WHO": "Who?",
+ "SHOP__USER_POINTS_TRANSFER_HOW_MANY": "How much?",
+ "SHOP__USER_POINTS_TRANSFER_ERROR_EMPTY": "You can not send nothing",
+ "SHOP__USER_POINTS_TRANSFER_ERROR_YOURSELF": "You can not transfer credits to yourself",
+ "SHOP__USER_POINTS_TRANSFER_ERROR_DISABLED": "Point transfer is disabled.",
+ "SHOP__USER_POINTS_TRANSFER_ERROR_WAIT": "You have to wait for a while before you can transfer.",
+ "SHOP__USER_POINTS_TRANSFER_SUCCESS": "The money has been sent!",
+ "SHOP__TRANSFER_ENABLE_SUCCESS": "You have activated the transfer of points!",
+ "SHOP__TRANSFER_DISABLE_SUCCESS": "You have deactivated the transfer of points!",
+ "SHOP__GIFTALL": "Make a gift to everyone",
+ "SHOP__GIFTALL_VALUE": "Number of shop point(s) to be given to all users of the site",
+ "SHOP__GIFTALL_SUCCESS": "Your gift has been made",
+ "SHOP__ITEM": "Article",
+ "SHOP__ITEMS": "Articles",
+ "SHOP__ITEM_ADD_COMMAND": "Add an order",
+ "SHOP__ITEM_EDIT": "Editing an article",
+ "SHOP__ITEMS_AVAILABLE": "Items for sale",
+ "SHOP__ITEM_NAME": "Name",
+ "SHOP__ITEM_IMG_URL": "URL of the image",
+ "SHOP__ITEM_PRICE": "Price",
+ "SHOP__ITEM_QUANTITY": "Quantity",
+ "SHOP__ITEM_TOTAL": "Total",
+ "SHOP__ITEM_DESCRIPTION": "Description",
+ "SHOP__ITEM_EDIT_SUCCESS": "Article successfully modified!",
+ "SHOP__ITEM_DELETE_SUCCESS": "Article Deleted Successfully!",
+ "SHOP__ITEM_ADD_SUCCESS": "Article added successfully!",
+ "SHOP__ITEM_ADD": "Add an article",
+ "SHOP__ITEM_TIMED_COMMAND": "DIFFERENT COMMAND",
+ "SHOP__ITEM_TIMED_COMMAND_DESC": "This is a command that will be done after a certain time (for grades for example)",
+ "SHOP__ITEM_TIMED_COMMAND_TIME": "Time",
+ "SHOP__ITEM_DISPLAY_SERVER": "Show the server (s) where the article will be given.",
+ "SHOP__ITEM_CHECKBOX_CONNECT": "Require the player to be connected to the server to buy the article",
+ "SHOP__ITEM_CHECKBOX_DISPLAY": "Show article on the shop",
+ "SHOP__ITEM_MULTIPLE_BUY": "Allow this item to be purchased multiple times (in one purchase only)",
+ "SHOP__ITEM_CANT_BUY_MULTIPLE": "You can not buy this item ( {ITEM_NAME} i>) more than once",
+ "SHOP__ITEM_CART": "Allow add to cart of this article",
+ "SHOP__ITEM_CANT_ADDED_TO_CART": "You can not buy item {ITEM_NAME} i> with a cart.",
+ "SHOP__ITEM_CANT_BUY_LIMIT": "You can not buy item {ITEM_NAME} i> over {LIMIT} times.",
+ "SHOP__ITEM_BROADCAST_GLOBAL": "Make the global order when purchasing this item",
+ "SHOP__ITEM_PREREQUISITES": "Do you want to activate the prerequisites?",
+ "SHOP__ITEM_PREREQUISITES_TYPE_0": "No.",
+ "SHOP__ITEM_PREREQUISITES_TYPE_1": "Yes, the player must have purchased all the following items",
+ "SHOP__ITEM_PREREQUISITES_TYPE_2": "Yes, the player must have purchased at least one of the following items",
+ "SHOP__ITEM_PREREQUISITES_ITEMS": "Available items",
+ "SHOP__ITEM_CHECKBOX_REDUCTIONAL_ITEMS": "Activate price reduction if one or more of the following items are / are purchased",
+ "SHOP__ITEM_REDUCTIONAL_ITEMS_LIST": "A discount is applied to this item ({REDUCTION}) because you have already purchased the following items {ITEMS_LIST}.",
+ "SHOP__ITEM_CANT_BUY_PREREQUISITES_1": "You can not buy this item without purchasing all of the following items: {ITEMS}",
+ "SHOP__ITEM_CANT_BUY_PREREQUISITES_2": "You can not buy this item without purchasing at least one of the following items: {ITEMS}",
+ "SHOP__ITEM_GIVE_SKIN": "Give permission to change skin with the purchase of this article",
+ "SHOP__ITEM_GIVE_CAPE": "Give permission to change cape with the purchase of this article",
+ "SHOP__ITEM_CANT_BUY_NOT_CONNECTED": "You must be logged in to purchase item {ITEM_NAME} b>!",
+ "SHOP__ITEM_BUY_LIMIT": "Purchase limit (how much a maximum item can be purchased)",
+ "SHOP__ITEM_BUY_LIMIT_PLACEHOLDER": "Put 0 for no limit",
+ "SHOP__ITEM_WAIT_TIME": "Time interval between purchases",
+ "SHOP__ITEM_CANT_BUY_WAIT_TIME": "You can not buy item {ITEM_NAME} i> now! Every purchase must be spaced from {WAIT_TIME}.",
+ "SHOP__ITEMS_AVAILABLE_OTHER": "Items not listed",
+ "SHOP__ITEM_CURRENCY": "Currency (EUR, USD...)",
+ "SHOP__CATEGORIES": "Categories",
+ "SHOP__CATEGORY": "Category",
+ "SHOP__CATEGORY_ADD": "Add a category",
+ "SHOP__CATEGORY_ADD_SUCCESS": "Category added successfully!",
+ "SHOP__CATEGORY_EDIT_SUCCESS": "Category successfully modified!",
+ "SHOP__CATEGORY_DELETE_SUCCESS": "Category Successfully Deleted!",
+ "SHOP__CATEGORY_NUMBER": "Number of articles linked to the category",
+ "SHOP__BUY": "Buy",
+ "SHOP__BUY_CART": "See my cart",
+ "SHOP__BUY_CART_EMPTY": "Your cart is empty.",
+ "SHOP__BUY_ADD_TO_CART": "Add to cart",
+ "SHOP__BUY_ADDED_TO_CART": "Added to cart",
+ "SHOP__BUY_ERROR_NO_ENOUGH_MONEY": "You do not have enough money to make this purchase.",
+ "SHOP__BUY_ERROR_NEED_LOGIN": "You must be logged in to make a purchase.",
+ "SHOP__BUY_ERROR_EMPTY": "You can not buy anything.",
+ "SHOP__BUY_ERROR_NO_CONNECTED": "You must be logged in to make this purchase.",
+ "SHOP__BUY_CONFIRM": "Do you really want to buy this item?",
+ "SHOP__BUY_SUCCESS": "The purchase has just been made",
+ "SHOP__BUY_VOUCHER_ASK": "Do you have a promotional code?",
+ "SHOP__ADD_MONEY": "Credit account",
+ "SHOP__MONEY_CURRENTLY": "You currently have",
+ "SHOP__PAYPAL_OFFERS": "PayPal Offers",
+ "SHOP__PAYPAL_OFFER": "Offer",
+ "SHOP__PAYPAL_HISTORIES": "PayPal transaction history",
+ "SHOP__PAYPAL_MAIL": "Email",
+ "SHOP__PAYPAL_OFFER_ADD": "Add a PayPal offer",
+ "SHOP__PAYPAL_OFFER_ADD_SUCCESS": "PayPal Offer Successfully Added!",
+ "SHOP__PAYPAL_OFFER_EDIT": "Modify a PayPal offer",
+ "SHOP__PAYPAL_OFFER_EDIT_SUCCESS": "PayPal Offer Changed Successfully!",
+ "SHOP__PAYPAL_OFFER_DELETE_SUCCESS": "The PayPal offer has been deleted!",
+ "SHOP__PAYPAL_PAYMENT_ID": "PayPal ID",
+ "SHOP__PAYPAL_PAYMENT_DELAY": "Users can be credited up to 5min after payment on PayPal.This delay depends on the services of PayPal.",
+ "SHOP__NANO_OFFERS": "Nano Offers",
+ "SHOP__NANO_OFFER": "Offer",
+ "SHOP__NANO_HISTORIES": "Nano transaction history",
+ "SHOP__NANO_ADDRESS": "address (nano_...)",
+ "SHOP__NANO_OFFER_ADD": "Add a Nano offer",
+ "SHOP__NANO_OFFER_ADD_SUCCESS": "Nano Offer Successfully Added!",
+ "SHOP__NANO_OFFER_EDIT": "Modify a Nano offer",
+ "SHOP__NANO_OFFER_EDIT_SUCCESS": "Nano Offer Changed Successfully!",
+ "SHOP__NANO_OFFER_DELETE_SUCCESS": "The Nano offer has been deleted!",
+ "SHOP__ERROR_NANO_ADDRESS_NOT_VALID": "The Nano address in invalid!",
+ "SHOP__NANO_EXPLAIN_CONFIG_1": "To start, you need a wallet either on : ",
+ "SHOP__NANO_EXPLAIN_CONFIG_2": " or with the mobile application ",
+ "SHOP__NANO_EXPLAIN_CONFIG_3": "A short introduction of Nano is available on ",
+ "SHOP__NANO_EXPLAIN_CONFIG_4": "You can have more informations on ",
+ "SHOP__OFFER_MONEY_TO_ADD": "How many {MONEY_NAME} do you want to give?",
+ "SHOP__STARPASS_OFFERS": "StarPass Offers",
+ "SHOP__STARPASS_CODE": "Code",
+ "SHOP__STARPASS_OFFER": "Offer",
+ "SHOP__STARPASS_HISTORIES": "StarPass transaction history",
+ "SHOP__STARPASS_OFFER_DELETE_SUCCESS": "The StarPass offer has been deleted!",
+ "SHOP__STARPASS_OFFER_ADD": "Add a StarPass offer",
+ "SHOP__STARPASS_OFFER_ADD_SUCCESS": "StarPass Offer Successfully Added!",
+ "SHOP__STARPASS_OFFER_EDIT": "Edit a StarPass offer",
+ "SHOP__STARPASS_OFFER_EDIT_SUCCESS": "StarPass Offer Changed Successfully!",
+ "SHOP__STARPASS_PAYMENT": "Create account with StarPass",
+ "SHOP__STARPASS_PAYMENT_SUCCESS": "The StarPass transaction went off well! You received your credit shop.",
+ "SHOP__STARPASS_PAYMENT_ERROR": "The code you entered is wrong, please try again.",
+ "SHOP__DASHBOARD_GRAPH_ERROR": "You must have more than 5 different items sold to access the chart",
+ "SHOP__ADMIN_PART_2": "Administer the credits",
+ "SHOP__ADMIN_PART_1": "Go back to the shop",
+ "SHOP__HISTORY_TRANSFER_MONEY": "History of exchange",
+ "SHOP__HISTORY_PURCHASES": "Purchase History",
+ "SHOP__HISTORY_PURCHASES_MONEY": "{MONEY_NAME} 's Purchase History",
+ "PERMISSIONS__CREDIT_ACCOUNT": "Create account",
+ "PERMISSIONS__CAN_BUY": "Buy",
+ "PERMISSIONS__SHOP__ADMIN_MANAGE_ITEMS": "Manage articles of the shop (Add, edit, delete)",
+ "PERMISSIONS__SHOP__ADMIN_MANAGE_VOUCHERS": "Manage the promotional codes of the shop (Add, remove)",
+ "PERMISSIONS__SHOP__ADMIN_MANAGE_PAYMENT": "Manage the payments of the shop (Add, edit, delete, validate the PSC ...)",
+ "PERMISSIONS__VOTE__ADMIN_VIEW_TOP": "Go to the top vote page",
+ "PERMISSIONS__SHOP__ADMIN_GIFTALL": "Manage the gifts (donation of points)",
+ "PERMISSIONS__SHOP__ADMIN_MANAGE_CATEGORIES": "Manage store categories (Add, Edit, Delete)",
+ "NOTIFICATION__NEW_VOUCHER": "A new promotional code is available!",
+ "NOTIFICATION__NEW_PSC": "A new PaySafeCard must be validated!",
+ "NOTIFICATION__PAYPAL_IPN_VALIDED": "Your PayPal payment has been confirmed!",
+ "NOTIFICATION__NANO_VALIDED": "Your Nano payment has been confirmed!",
+ "HISTORY__CATEGORY_SHOP": "Shop",
+ "HISTORY__CATEGORY_CREDIT_SHOP": "Shop Creditation",
+ "HISTORY__ACTION_VALID_PAYSAFECARD": "Validation of a PaySafeCard",
+ "HISTORY__ACTION_DELETE_VOUCHER": "Suppression of a promotional code",
+ "HISTORY__ACTION_ADD_VOUCHER": "Adding a promotional code",
+ "HISTORY__ACTION_BUY_MONEY_DEDIPASS": "Purchase of credits by Dédipass",
+ "HISTORY__ACTION_EDIT_DEDIPASS_CONFIG": "Modifying the configuration of Dédipass",
+ "HISTORY__ACTION_DELETE_ITEM": "Deleting an item from the store",
+ "HISTORY__ACTION_ADD_ITEM": "Add an article on the shop",
+ "HISTORY__ACTION_ADD_CATEGORY": "Add a category to the store",
+ "HISTORY__ACTION_BUY_ITEM": "Purchase of",
+ "HISTORY__ACTION_BUY_MONEY": "Buying Shop Points",
+ "HISTORY__ACTION_SEND_MONEY": "Send money",
+ "HISTORY__ACTION_ADD_PAYPAL_OFFER": "Adding a PayPal offer",
+ "HISTORY__ACTION_ADD_NANO_OFFER": "Adding a Nano offer",
+ "HISTORY__ACTION_ADD_STARPASS_OFFER": "Adding a StarPass offer",
+ "HISTORY__ACTION_DELETE_PAYPAL_OFFER": "Deleting a PayPal offer",
+ "HISTORY__ACTION_DELETE_STARPASS_OFFER": "Deleting a StarPass offer",
+ "HISTORY__ACTION_EDIT_PAYPAL_OFFER": "Modification of a PayPal offer",
+ "HISTORY__ACTION_EDIT_STARPASS_OFFER": "Modification of a StarPass offer",
+ "HISTORY__ACTION_ENABLE_PAYSAFECARD": "Activation of the PaySafeCard payment method",
+ "HISTORY__ACTION_DISABLE_PAYSAFECARD": "Disabling the PaySafeCard payment method",
+ "HISTORY__ACTION_ADD_PAYSAFECARD": "Adding a PaySafeCard"
}
diff --git a/lang/fr_FR.json b/lang/fr_FR.json
index a359845..cc3e4f7 100755
--- a/lang/fr_FR.json
+++ b/lang/fr_FR.json
@@ -2,6 +2,16 @@
"SHOP__TITLE": "Boutique",
"SHOP__GLOBAL_AMOUNT": "Montant",
+ "SHOP__MENU_CATEGORIES": "Gérer les catégories",
+ "SHOP__MENU_ITEMS": "Gérer les articles",
+ "SHOP__MENU_VOUCHERS": "Gérer les promotions",
+ "SHOP__MENU_PAYMENTS": "Gérer les paiements",
+ "SHOP__MENU_GIFT": "Cadeaux",
+
+ "SHOP__DUPLICATE": "Dupliquer",
+ "SHOP__CONFIRM_DUPLICATE": "Voulez-vous vraiment dupliquer cet article ?",
+ "SHOP__ITEM_DUPLICATE_SUCCESS": "Article dupliqué avec succès !",
+
"SHOP__CONFIG": "Configuration",
"SHOP__SAVE_SUCCESS": "Sauvegardé !",
"SHOP__SAVE_IN_PROGRESS": "Sauvegarde automatique...",
@@ -14,6 +24,7 @@
"SHOP__CONFIG_VARIABLES":"Variables diponibles",
"SHOP__CONFIG_VARIABLE_ITEM":"Nom de l'article acheté",
"SHOP__CONFIG_VARIABLE_QUANTITY":"Quantité de l'article acheté",
+ "NOT_4_CHARACTER": "Une case ne contient pas 4 caractères",
"SHOP__CONFIG_VARIABLE_PLAYER":"Joueur ayant acheté l'article",
"SHOP__CONFIG_VARIABLE_SERVERNAME":"Nom du serveur où l'article a été acheté (Affiché sous une liste avec des virgules si il y en a plus d'un)",
"SHOP__CONFIG_SAVE_SUCCESS":"La configuration a bien été sauvegardée !",
@@ -161,11 +172,26 @@
"SHOP__CATEGORIES": "Cat\u00e9gories",
"SHOP__CATEGORY": "Cat\u00e9gorie",
"SHOP__CATEGORY_ADD": "Ajouter une cat\u00e9gorie",
+ "SHOP__CATEGORY_EDIT": "Modifier une cat\u00e9gorie",
"SHOP__CATEGORY_ADD_SUCCESS": "Cat\u00e9gorie ajout\u00e9e avec succ\u00e8s !",
"SHOP__CATEGORY_EDIT_SUCCESS": "Cat\u00e9gorie modifi\u00e9 avec succ\u00e8s !",
"SHOP__CATEGORY_DELETE_SUCCESS": "Cat\u00e9gorie supprim\u00e9e avec succ\u00e8s !",
"SHOP__CATEGORY_NUMBER": "Nombre d'article lié à la catégorie",
+ "SHOP__CATEGORIES_OTHER": "Catégories non répertoriés",
+ "SHOP__CATEGORY_EDIT_MESSAGE": "Si vous n'avez aucune section veuillez d'abord en créer une ici :",
+ "SHOP__CATEGORIES_TIP": "Si la fonction est disponible sur le thème, les catégories placées en non répertoriés ne seront pas visibles sur la page de la boutique. Il faut donc les attribuer à une section. Et les catégories qui ne seront pas liées à une section ne seront pas sous forme de menus déroulants.",
+ "SHOP__CATEGORY_ADD_NO": "Ne pas lier la catégorie à une section (elle sera sous forme de boutton et non de menu déroulant)",
+ "SHOP__CATEGORIES_NO": "Catégories non liée à une section",
+
+ "SHOP__SECTION_ADD": "Ajouter une section",
+ "SHOP__SECTION": "Section",
+ "SHOP__SECTIONS": "Sections",
+ "SHOP__SECTION_EDIT_SUCCESS": "Section modifié avec succés !",
+ "SHOP__SECTION_ADD_SUCCESS": "Section ajout\u00e9e avec succ\u00e8s !",
+ "SHOP__SECTION_TIP": "Attention, cette fonctionnalité n'est pas disponible sur tous les thèmes, cependant l'utilisation des catégories reste possible si vous choisissez de ne pas les lier à une section. Les sections servent à créer des menus déroulants avec les catégories contenues dedans.",
+ "SHOP__SECTION_AND_CATEGORIES": "Sections et Catégories",
+
"SHOP__BUY": "Acheter",
"SHOP__BUY_CART":"Voir mon panier",
"SHOP__BUY_CART_EMPTY":"Votre panier est vide.",
@@ -238,7 +264,6 @@
"PERMISSIONS__VOTE__ADMIN_VIEW_TOP":"Accéder à la page du top vote",
"PERMISSIONS__SHOP__ADMIN_GIFTALL":"Gérer les cadeaux (don de points)",
"PERMISSIONS__SHOP__ADMIN_MANAGE_CATEGORIES":"Gérer les catégories de la boutique (Ajouter, éditer, supprimer)",
-
"NOTIFICATION__NEW_VOUCHER":"Un nouveau code promotionnel est disponible !",
"NOTIFICATION__NEW_PSC":"Une nouvelle PaySafeCard doit être validée !",
From 0e5ca5121c7082348123ea24da175612b968e333 Mon Sep 17 00:00:00 2001
From: nivcoo <36514752+nivcoo@users.noreply.github.com>
Date: Wed, 23 Dec 2020 19:53:54 +0100
Subject: [PATCH 38/45] improv. remove useless code (#62)
---
Controller/ShopController.php | 28 +++++++---------------------
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/Controller/ShopController.php b/Controller/ShopController.php
index e9f6921..cc9b020 100755
--- a/Controller/ShopController.php
+++ b/Controller/ShopController.php
@@ -41,7 +41,7 @@ function index($category = false)
$histories_star = $this->StarpassHistory->find('all', ['conditions' => ['created LIKE' => date('Y') . '-' . date('m') . '-%']]);
$best_donator_price = [];
-
+ $goal_money = 0;
foreach ($histories_dedi as $value) {
$money = $value["DedipassHistory"]["credits_gived"];
$goal_money += floatval($money);
@@ -85,41 +85,27 @@ function index($category = false)
$goal_bar_with = round((str_replace(",", '.', $goal_money * 100 / $goal_money_max)));
}
- $best_donator_exclude = array_diff_key($best_donator_price, [3 => 0, 1606 => 0]);
-
-
$i = 0;
- foreach ($best_donator_exclude as $key => $value) {
+ foreach ($best_donator_price as $key => $value) {
if ($i == 3)
break;
- $best_donator_id = array_search(max($best_donator_exclude), $best_donator_exclude);
+ $best_donator_id = array_search(max($best_donator_price), $best_donator_price);
$best_donator[] = $this->User->find('first', ['conditions' => ['id' => $best_donator_id]]);
- $best_donator_exclude = array_diff_key($best_donator_exclude, [$best_donator_id => $best_donator_exclude[$best_donator_id]]);
+ $best_donator_price = array_diff_key($best_donator_price, [$best_donator_id => $best_donator_price[$best_donator_id]]);
$i++;
}
-
-
- //$best_donator_id = array_search(max($best_donator_exclude), $best_donator_exclude);
- //$best_donator = $this->User->find('all', ['conditions' => ['id' => $best_donator_id], 'limit' => 5]);
- //$best_donator = $best_donator;
-
-
$this->loadModel('Shop.Section');
$search_sections = $this->Section->find('all');
$search_categories_without_section = $this->Category->find('all', array('conditions' => array('section' => 0), 'order' => 'order'));
$search_categories_section = [];
- $search_categories = [];
if (!empty($search_sections)) foreach ($search_sections as $v) {
$search_categories_section[$v['Section']['id']] = $this->Category->find('all', array('conditions' => array('section_id' => $v['Section']['id'], 'section' => 1), 'order' => 'order'));
- $search_categories = $this->Category->find('all');
}
-
- $search_categories = $this->Category->find('all'); // on cherche toutes les catégories et on envoie à la vue
-
+ $search_categories = $this->Category->find('all');
- $search_first_category = $this->Category->find('first'); //
- $search_first_category = @$search_first_category['Category']['id']; //
+ $search_first_category = $this->Category->find('first');
+ $search_first_category = @$search_first_category['Category']['id'];
$this->loadModel('Shop.Paypal');
$paypal_offers = $this->Paypal->find('all');
From 175603f802cab7d9e19dc45ca3f68fb5fad0d881 Mon Sep 17 00:00:00 2001
From: nivcoo <36514752+nivcoo@users.noreply.github.com>
Date: Wed, 23 Dec 2020 20:06:22 +0100
Subject: [PATCH 39/45] improv. up to adminlte3 (#61)
---
View/Categories/admin_add_category.ctp | 8 +-
View/Categories/admin_add_section.ctp | 8 +-
View/Categories/admin_edit.ctp | 8 +-
View/Categories/admin_index.ctp | 24 +-
View/Giftall/admin_index.ctp | 8 +-
View/Payment/admin_add_nano.ctp | 8 +-
View/Payment/admin_add_paypal.ctp | 8 +-
View/Payment/admin_add_starpass.ctp | 8 +-
View/Payment/admin_edit_nano.ctp | 8 +-
View/Payment/admin_edit_paypal.ctp | 8 +-
View/Payment/admin_edit_starpass.ctp | 8 +-
View/Payment/admin_index.ctp | 1043 +++++++++++++-----------
View/Shop/admin_add_item.ctp | 19 +-
View/Shop/admin_add_voucher.ctp | 52 +-
View/Shop/admin_edit.ctp | 31 +-
View/Shop/admin_index.ctp | 318 ++++----
View/Shop/admin_vouchers.ctp | 16 +-
config.json | 4 +-
18 files changed, 826 insertions(+), 761 deletions(-)
diff --git a/View/Categories/admin_add_category.ctp b/View/Categories/admin_add_category.ctp
index 2b04430..9968f32 100644
--- a/View/Categories/admin_add_category.ctp
+++ b/View/Categories/admin_add_category.ctp
@@ -1,11 +1,11 @@
= $this->element('payments_modal') ?>
diff --git a/webroot/js/shop.js b/webroot/js/shop.js
index 879e30b..fbdf8b5 100755
--- a/webroot/js/shop.js
+++ b/webroot/js/shop.js
@@ -1,462 +1,335 @@
-/*
-Afficher un article dans le modal
-*/
-
+// Show an item in the modal //
$('.display-item').click(function(e) {
+ e.preventDefault();
- e.preventDefault();
-
- var id = $(this).attr('data-item-id'); // On récupère l'ID
-
- var loading_html = '
';
-
- $('#buy-modal .modal-body').html(loading_html); // On met le message de chargement dans le modal
-
-
- $('#buy-modal').modal(); // On affiche le modal en dernier
-
- $.ajax({
- url: ITEM_GET_URL+id,
- type : 'GET',
- dataType : 'json',
- success: function(response) {
- $('#buy-modal .modal-body').fadeOut(150, function(){
-
- if(response.statut) {
-
- $(this).html(response.html).fadeIn('250');
-
- var item_infos = response.item_infos;
-
- $.cookie.json = true; // Pouvoir mettre des objets
+ var id = $(this).attr('data-item-id'); // We get ID of the item
+ var loading_html = '
' + LOADING_MSG + '...' + '
';
- /*
- Si l'article est déjà dans le panier
- */
- var itemsInCart = $.cookie('cart');
- for (var key in itemsInCart) {
- if (itemsInCart[key] !== null && itemsInCart[key]['item_id'] == id) { // Si il est déjà dans le panier
- $(this).find('button.add-to-cart').html(ADDED_TO_CART_MSG);
- $(this).find('button.add-to-cart').addClass('disabled');
- $(this).find('button.add-to-cart').attr('disabled', 'disabled');
+ $('#buy-modal .modal-body').html(loading_html); // We put the loading message in the modal
+ $('#buy-modal').modal(); // We display the modal last
- break;
- }
- }
-
- /*
- On gère la quantité
- */
- $("input[name='quantity']").TouchSpin({
- min: 0,
- max: 100,
- step: 1,
- decimals: 0,
- boostat: 5,
- maxboostedstep: 10
- });
-
- $("input[name='quantity']").unbind('change');
-
- $("input[name='quantity']").on('change', function(e) {
-
- var code = $('input[id="code-voucher"]').val();
-
- if(code.length == 0) { //si y'a pas de code promo
- var new_price = item_infos['price'] * $(this).val();
- $("#buy-modal .modal-body").find('#total-price').html(new_price);
- } else { // si y'a un code promo - on re-calcule le prix selon la quantité
-
- var quantity = $(this).val();
- if(quantity == undefined) {
- quantity = 1;
- }
- $.get(VOUCHER_CHECK_URL+code+'/'+id+'/'+quantity, function(data) {
- if(data.price !== undefined) {
- $("#buy-modal .modal-body").find('#total-price').html(data.price);
+ $.ajax({
+ url: ITEM_GET_URL + id,
+ type: 'GET',
+ dataType: 'json',
+ success: function(response) {
+ $('#buy-modal .modal-body').fadeOut(150, function() {
+ if (!response.statut) $(this).html(response.html).fadeIn('250');
+ $(this).html(response.html).fadeIn('250');
+
+ var item_infos = response.item_infos;
+
+ $.cookie.json = true; // Ability to put objects
+
+ // If the item is already in the cart
+ var itemsInCart = $.cookie('cart');
+ for (var key in itemsInCart) {
+ if (itemsInCart[key] !== null && itemsInCart[key]['item_id'] == id) { // If it is already in the basket
+ $(this).find('button.add-to-cart').html(ADDED_TO_CART_MSG);
+ $(this).find('button.add-to-cart').addClass('disabled');
+ $(this).find('button.add-to-cart').attr('disabled', 'disabled');
+ break;
+ }
}
- });
-
- }
- });
+ // Quantity
+ $("input[name='quantity']").TouchSpin({
+ min: 1,
+ max: 100,
+ step: 1,
+ decimals: 0,
+ boostat: 5,
+ maxboostedstep: 10
+ });
+ $("input[name='quantity']").unbind('change');
+ $("input[name='quantity']").on('change', function(e) {
+
+ var code = $('input[id="code-voucher"]').val();
+
+ if (code.length == 0) { // if there is no promo code
+ var new_price = item_infos['price'] * $(this).val();
+ $("#buy-modal .modal-body").find('#total-price').html(new_price);
+
+ } else { // if there is a promo code - we re-calculate the price according to the quantity
+ var quantity = ($(this).val() == undefined) ? 1 : $(this).val();
+ $.get(VOUCHER_CHECK_URL + code + '/' + id + '/' + quantity, function(data) {
+ if (data.price !== undefined) $("#buy-modal .modal-body").find('#total-price').html(data.price);
+ });
+ }
+ });
+
+ // Promo codes
+ $('input[id="code-voucher"]').unbind('keyup');
+ $('input[id="code-voucher"]').keyup(function(e) {
+ $("#buy-modal .modal-footer").find('#total-price').html('' + LOADING_MSG.substr(0, 4) + '...');
+ $("#buy-modal .modal-footer").find('#btn-buy').addClass('disabled').attr('disabled', true);
+
+ var code = $(this).val();
+ var quantity = ($("input[name='quantity']").val() == undefined) ? 1 : $("input[name='quantity']").val();
+ if (code.length > 0) {
+ $.get(VOUCHER_CHECK_URL + code + '/' + id + '/' + quantity, function(data) {
+ if (data.price !== undefined) $("#buy-modal .modal-body").find('#total-price').html(data.price);
+ $("#buy-modal .modal-footer").find('#btn-buy').removeClass('disabled').attr('disabled', false);
+ });
+
+ } else { // if there is no promo code
+ var new_price = item_infos['price'] * quantity;
+ $("#buy-modal .modal-body").find('#total-price').html(new_price);
+ $("#buy-modal .modal-footer").find('#btn-buy').removeClass('disabled').attr('disabled', false);
+ }
+ });
+
+ // Item purchase
+ $('.buy-item').unbind('click');
+ $('.buy-item').click(function(e) {
+ e.preventDefault();
+
+ var id = $(this).attr('data-item-id');
+ var quantity = ($("input[name='quantity']").val() == undefined) ? 1 : $("input[name='quantity']").val();
+ var code = $('#code-voucher').val();
+
+ if ($("#buy-modal .modal-body").find('#ajax-msg').length == 0) $("#buy-modal .modal-body").prepend('');
+
+ $('#btn-buy').attr('disabled', true);
+ $('#btn-buy').addClass('disabled');
+ $("#buy-modal .modal-body").find('#ajax-msg').html('
');
- }
-
- // On gère la suppression
- $('.remove-from-cart').unbind('click');
- $('.remove-from-cart').click(function(e) {
-
- e.preventDefault();
-
- var cartContent = $.cookie('cart'); // on récupère le panier
- var newCart = [];// le nouveau panier (pour éviter les values null)
-
- var item_id = $(this).attr('data-item-id');
+ table += '';
+ table += '';
+ // We get cookies
+ $.cookie.json = true;
+ var cart = $.cookie('cart');
+ var notEmpty = false;
var total = 0;
- for (var k in cartContent) {
- if(cartContent[k] !== null && cartContent[k]['item_id'] != item_id) { // si c'est pas l'article qu'on cherche
-
- newCart.push(cartContent[k]);
+ for (var key in cart) {
+ if (cart[key] !== null) {
+ notEmpty = true;
- total += parseFloat(cartContent[k]['item_price']) * cartContent[k]['quantity'];
+ table += '
';
+ table += '
' + cart[key]['item_name'] + '
';
+ table += '
' + cart[key]['item_price'] + '
';
+ table += '
' + cart[key]['quantity'] + '
';
+ table += '
';
+ table += '
';
- }
+ total += parseFloat(cart[key]['item_price']) * cart[key]['quantity'];
+ }
}
- $.cookie('cart', newCart); // On le met dans les cookies maintenant
+ // We close the table
+ table += '';
+ table += '';
- if(newCart.length > 0) {
- $('#cart-total-price').html(total);
- $('#cart-modal .modal-body').find('tr[data-item-id="'+item_id+'"]').slideUp(150); // On l'enlève de la table
+ if (notEmpty) {
+ $('#cart-total-price').html(total.toFixed(2));
+ $('#buy-cart').attr('disabled', false);
+ $('#buy-cart').removeClass('disabled');
+ $('#cart-modal .modal-body').html(table);
} else {
- $('#buy-cart').attr('disabled', true);
- $('#buy-cart').addClass('disabled');
- $('#cart-total-price').html('0');
- $('#cart-modal .modal-body').html('