View Single Post
  #11 (permalink)  
Old 29th March 2012
SergeNL SergeNL is offline
Member
BS.player Regular User
 
Join Date: May 2010
Age: 47
Posts: 49
Rep Power: 0
SergeNL is on a distinguished road
Default 5e.* Button Texts.

5e.* Button Texts.

Button Texts during mouse-over:
If you move the mouse over a button in BSP, a Tooltip and text in the Title Bar appear.
Under “Custom Text” you can type any text in any language you want for a button.
(It can be fun to design a Skin in your own local dialect. :-)

But BS.Player is multilingual, and every good Skin should support that.
Users can choose a language in BS.Player. There are 45 language files in the folder “Lang”.
Code-numbers are used to display the same standard texts in different languages.
In Skinmaker, select the Play-button and “Multilanguage Text”. It says: “$lang.Actions.21”.
Click on that text-button. You’ll see a List, and the word “Play” in your current BSP language.

The easiest way to assign Multilanguage text to all buttons:
First design the Skin, or part of it. Add buttons, and assign actions to them.
Then right-click on the section náme “Customise Buttons”. (It doesn’t look active, but it is.)
It will say “Auto assign Multilanguage Descriptions to Buttons”. Click on it, and you’re done.
Skinmaker will see all assigned button-actions, and will assign the right code to all buttons.
Warning: this will override any custom text you may have assigned to any button.
And if you add buttons later, you’ll have to repeat this.

Choices in Multilangual texts for buttons:
When you clicked on the button with the Multilanguage text, you saw a long List.
It’s the complete language file, with sections for all occasions where BS.Player displays text.
The description for “Play” was in the [Actions]-section, exactly halfway in the List.
But you could choose text from other sections in the List like the [Menu] or [Strings] section.
Sometimes these descriptions can be more appealing. I saw it done in several Skins..

Note: The real Action-number in Skin.ini for BSPlayer is NOT the same as in the Lang-file.
When the real Action-number is 20, the text says “$lang.Actions.21”. (It mostly differs 1.)
This is confusing if you look in Skin.ini. Luckily Skinmaker doesn’t show Action numbers.
.
Attached Images
File Type: jpg 4d. Image - Button Texts.jpg (40.9 KB, 3 views)

Last edited by SergeNL; 29th March 2012 at 08:16 PM.
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19