Jump to content

problem with the translations

Closed 1.2.25 1.2.26

Billionaire
  • in Shop
Billionaire

Posted (edited)

Hello there is a problem with the translations of the categories.

For items it works fine, but for categories it doesn't.
When I put a translation for a category, the category is deleted when I open the shop.

I reset the configuration file to zero, to do a test, and the problem persists.

Edited by Gbutome
Mevent

Posted

Can you give me an example of how you add a translation for a category?

Billionaire

Posted

yes:


 

"Enabled": true,
      "Title": "Domicile",
      "Permission": "shop.default",
      "Sort Type": "None",
      "Items": [
        {
          "Type": "Item",
          "ID": 686,
          "Image": "https://steamuserimages-a.akamaihd.net/ugc/1700655397353358595/6FF402DF38076A4761526D8230206824575FED45/?imw=200&imh=200&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true",
          "Title": "Caillou HGF",
          "Description": "Un Caillou special design HGF",
          "Command (%steamid%)": null,
          "Kit": null,
          "Plugin": {
            "Hook": null,
            "Plugin Name": null,
            "Amount": 0
          },
          "DisplayName (empty - default)": "Caillou HGF",
          "ShortName": "rock",
          "Skin": 2541893433,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 2.0,
          "Enable item selling?": true,
          "Sell Price": 1.0,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip1": 5,
            "shop.vip2": 10,
            "shop.vip3": 15
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": true,
            "Text (language - text)": {
              "en": "Rock HGF",
              "fr": "Caillou HGF"
            }
          },
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        },
        {
          "Type": "Item",
          "ID": 1481,
          "Image": "",
          "Title": "ToolGun 2.0",
          "Description": "Mêmes fonctionnalités que le Marteau.",
          "Command (%steamid%)": null,
          "Kit": null,
          "Plugin": {
            "Hook": null,
            "Plugin Name": null,
            "Amount": 0
          },
          "DisplayName (empty - default)": "ToolGun 2.0",
          "ShortName": "toolgun",
          "Skin": 0,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 1000.0,
          "Enable item selling?": false,
          "Sell Price": 0.0,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip1": 5,
            "shop.vip2": 10,
            "shop.vip3": 15
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": true,
            "Text (language - text)": {
              "en": "ToolGun 2.0"
            }
          },
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        },
        {
          "Type": "Item",
          "ID": 685,
          "Image": "https://steamuserimages-a.akamaihd.net/ugc/1700655397353293827/1AD29E9A69786A2D2D0B458CBBE5472FDF43CF16/?imw=200&imh=200&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true",
          "Title": "",
          "Description": "Un T-Shirt spécial design HGF",
          "Command (%steamid%)": null,
          "Kit": null,
          "Plugin": {
            "Hook": null,
            "Plugin Name": null,
            "Amount": 0
          },
          "DisplayName (empty - default)": "T-Shirt HGF",
          "ShortName": "tshirt",
          "Skin": 2541880092,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 10.0,
          "Enable item selling?": true,
          "Sell Price": 5.0,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip1": 5,
            "shop.vip2": 10,
            "shop.vip3": 15
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": true,
            "Text (language - text)": {
              "en": "T-Shirt HGF"
            }
          },
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        },
        {
          "Type": "Item",
          "ID": 684,
          "Image": "https://steamuserimages-a.akamaihd.net/ugc/1700655397353541806/5CD788B902D4CCF9B1EFE3D1286C9322DCA5E0B8/?imw=200&imh=200&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true",
          "Title": "",
          "Description": "Une Casquette spécial design HGF",
          "Command (%steamid%)": null,
          "Kit": null,
          "Plugin": {
            "Hook": null,
            "Plugin Name": null,
            "Amount": 0
          },
          "DisplayName (empty - default)": "Casquette HGF",
          "ShortName": "hat.cap",
          "Skin": 2541930442,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 5.0,
          "Enable item selling?": true,
          "Sell Price": 2.5,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip1": 5,
            "shop.vip2": 10,
            "shop.vip3": 15
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": true,
            "Text (language - text)": {
              "en": "Cap HGF",
              "fr": "Casquette HGF"
            }
          },
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        },
        {
          "Type": "Item",
          "ID": 1388,
          "Image": "https://steamuserimages-a.akamaihd.net/ugc/2003573660392230667/1A7E4FC783B5E6179FFFD0DECB8A2F0ADCC443BD/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true",
          "Title": "",
          "Description": "",
          "Command (%steamid%)": null,
          "Kit": null,
          "Plugin": {
            "Hook": null,
            "Plugin Name": null,
            "Amount": 0
          },
          "DisplayName (empty - default)": "Pants HGF",
          "ShortName": "pants",
          "Skin": 2924196863,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 100.0,
          "Enable item selling?": true,
          "Sell Price": 17.5,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip1": 5,
            "shop.vip2": 10,
            "shop.vip3": 15
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": true,
            "Text (language - text)": {
              "en": "Pants HGF",
              "fr": "Pantalon HGF"
            }
          },
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        },
        {
          "Type": "Item",
          "ID": 1389,
          "Image": "https://steamuserimages-a.akamaihd.net/ugc/2003573660392278881/2B605BC71EEE65A0B8786EFE5B64E9DED452B3D9/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true",
          "Title": "",
          "Description": "",
          "Command (%steamid%)": null,
          "Kit": null,
          "Plugin": {
            "Hook": null,
            "Plugin Name": null,
            "Amount": 0
          },
          "DisplayName (empty - default)": "Hoodie HGF",
          "ShortName": "hoodie",
          "Skin": 2924200562,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 100.0,
          "Enable item selling?": true,
          "Sell Price": 17.5,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip1": 5,
            "shop.vip2": 10,
            "shop.vip3": 15
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": true,
            "Text (language - text)": {
              "en": "Hoodie HGF",
              "fr": "Sweatshirt HGF"
            }
          },
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        }
      ],
      "Localization": {
        "Enabled": false,
        "Text (language - text)": {
          "en": "Home",
			"fr": "Domicile"
        }
      }
    }

 

Mevent

Posted

Try this:
 

      "Localization": {
        "Enabled": true,
        "Text (language - text)": {
          "en": "Home",
		  "fr": "Domicile"
        }
      }

 

Mevent

Posted

@GbutomeAlso, I want to remind you that the localization for the categories can be set up in the interface of the game 🙂

Billionaire

Posted

I have other shops below, so I have to do this.
 

],
      "Localization": {
        "Enabled": false,
        "Text (language - text)": {
          "en": "HGF"
        }
      }
    },
    {
      "Enabled": true,
      "Title": "Attire",
      "Permission": "shop.default",
      "Sort Type": "None",
      "Items": [


 

Then I tried with the panel in the game, and it bugs too.

Billionaire

Posted (edited)

I even took the original configuration and just added a pnj.

Even with the original configuration, the translation of a category does not work and makes the category disappear.
With the items no worries.

I did this directly from the in the interface of the game.

Edited by Gbutome
Billionaire

Posted (edited)

Ok after some testing I saw the problem.

If I put the same name as the category in one of the 2 translations, then no worries. it will display the name. But not the other in case of language change.


Example:

{
       "Enabled": true,
       "Title": "Weapon", //Title of the category
       "Permission": "",
       "Sort Type": "None",
       "Items": [


"Location": {
         "Enabled": false,
         "Text (language - text)": {
           "en": "Weapon", //same name as the category so will be displayed for players with the game in English
           "fr": "Weapons" //different name than the category, so will not be displayed for players with the game in French


It will only display the translation which is the same as the category title.
 

I performed the tests with a blank configuration, in the same state as if we had just put the plugin for the first time.

I specify that for the items, it works very well, but not for the categories.

The tests were carried out directly in the interface of the game.
I also did this by changing the config file directly, same problem.

Edited by Gbutome
Mevent

Posted

@GbutomeYou need to turn it on, that is, change "false" to "true"

IMG_9129.thumb.jpeg.ab87b4cf72824c39683ff646f96aefbf.jpeg

Billionaire

Posted (edited)

yes I did it. it was of course true.

 

As I said above, even with original setup it doesn't work.

 

above it is on False, but I put on True.

 

As I told you, even putting all the original system, it does not work.

Edited by Gbutome
Billionaire

Posted (edited)

Ok, I just noticed the problem.
The translation works fine if you open the store with the chat command.

On the other hand with the NPC, it does not work.
The translation does not work if it does not have the same name in the translation as the title.
The category is deleted if it does not have the same name in the translation as the title.

So the problem is when you access the store from an NPC.
No hassle with chat command access.

Edited by Gbutome
Billionaire

Posted

OK. THANKS.
And sorry for my English, but I'm French, so I try to make myself understood as well as possible.

Mevent

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.2.26

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.