Meet us at Drupa 24. Dusseldorf/Germany. May. 28 - Jun 7.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
benadams  
#1 Posted : Monday, July 15, 2019 6:51:23 AM(UTC)
benadams

Rank: Advanced Member

Groups: Member
Joined: 3/20/2018(UTC)
Posts: 61

Thanks: 4 times
Hello,
it's me again.
My project is working very fine but I have a trouble.
in my browser console I have alert telling me that " [Warning] Translation for Toolbox.TITLE_ADD_BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for Toolbox.TITLE_ADD_BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for Toolbox.BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for Toolbox.TITLE_ADD_BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for Toolbox.BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for TopToolbar.TITLE_LEVEL_CHANGE doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for TopToolbar.TITLE_LEVEL_CHANGE doesn't exist (sPolygraphy.module.js, line 1, x2)
[Warning] Translation for TopToolbar.TITLE_LEVEL_CHANGE doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for TopToolbar.TITLE_LEVEL_CHANGE doesn't exist (sPolygraphy.module.js, line 1, x2)
[Warning] Translation for Toolbox.TITLE_ADD_BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1)
[Warning] Translation for Toolbox.TITLE_ADD_BOUNDEDTEXT doesn't exist (sPolygraphy.module.js, line 1) "
.
Hre is the used code to create Toolbox

//

"Toolbox": {
// Create the Layout button in the Toolbox.
"buttons": [{
"type": "GalleryDialog",
"translationKey": "Toolbox.LAYOUTS",
"translationKeyTitle": "Toolbox.TITLE_LAYOUTS",
"iconClass": "cc-icon-add-image",
//"iconClass": "cc-icon-add-layouts",
// Set the Layout action to merge layouts.
"action": "Layout",
// Set the default tab shown when the Gallery opens.
"defaultTabName": "Layouts"
// Refer to the Gallery's tab.
// "tabs": [ "Layouts" ]
},
{
"translationKey": "Toolbox.CHANGE_BACKGROUND",
"translationKeyTitle": "Toolbox.CHANGE_BACKGROUND",
"iconClass": "cc-icon-add-image",
// Set the Background action to change background images or colors.
"action": "Background",
// Set the default tab shown when the Gallery opens.
"defaultTabName": "My files",
// Define two tabs in the Gallery for the Background mode.
"tabs": [ "User", "My files" ]
},
{
"translationKey": "Toolbox.TEXT",
"translationKeyTitle": "Toolbox.TITLE_ADD_TEXT",
"iconClass": "cc-icon-add-text",
"buttons": ["Text", "BoundedText", "RichText"]
},
{
"type": "GalleryDialog",
"action": "Image",
"translationKey": "Toolbox.IMAGE",
"translationKeyTitle": "Toolbox.TITLE_ADD_IMAGE",
"iconClass": "cc-icon-add-image"
}]
},

Can you help me please.

Andrey Semenov  
#2 Posted : Monday, July 15, 2019 10:21:19 PM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member
Joined: 7/4/2017(UTC)
Posts: 43

Was thanked: 12 time(s) in 12 post(s)
Hi Ben,

You can add missed translations manually by adding it to appropriate part of your translations.json. Here is English version for missed items:

ToolBox.TITLE_ADD_BOUNDEDTEXT: "Add a bounded text to the canvas"
ToolBox.BOUNDEDTEXT": "Bounded text"
TopToolbar.TITLE_LEVEL_CHANGE: "Level change"

Regards,
Andrew
benadams  
#3 Posted : Tuesday, July 16, 2019 3:10:27 AM(UTC)
benadams

Rank: Advanced Member

Groups: Member
Joined: 3/20/2018(UTC)
Posts: 61

Thanks: 4 times
HI ANDREW,
Sure, trust me I did it first.

My chosen language is French, and I have already added thoses translations en French in translations.json.
should I make it for all languages?

thanks again
Andrey Semenov  
#4 Posted : Wednesday, July 17, 2019 1:40:18 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member
Joined: 7/4/2017(UTC)
Posts: 43

Was thanked: 12 time(s) in 12 post(s)
Hi Ben,

As I found, ToolBox.TITLE_ADD_BOUNDEDTEXT and ToolBox.BOUNDEDTEXT were added to the wrong section of French translation (TopToolbar instead of ToolBox). Also, there was missed translation for TopToolbar.TITLE_LEVEL_CHANGE.

It is fixed now, please check.

Regards,
Andrew
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.