Old 8th September 2007, 13:39   #1
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 558
Compiling Maki script with utf characters

Compiling Maki script with utf characters.
Translating Winampm Modern Skin menu entry

Hello
I am translating default Winamp Modern Skin to my language (polish). As we know, we can use special file to replace original string to other - Plugins\freeform\langpacks\file.xml (filename must be as a languagepack filename).
In this file:
<translation from="original string*" to="new string"/>

There is a new feature in the last build of Winamp - "Album Art". It displays album art for our music. It also adds to Winamp menu this entry:
Album Art Alt+A

I have problem with this shortcut - Alt+A.
What I have to write to translate it correctly? Result must be like this:

Old: Album Art Alt+A
New: Okładki Albumów Alt+A


I do this like this:
In "albumart.xml" I change this line:
<container id="winamp.albumart" name="Album Art" default_visible="0" nomenu="1">
on
<container id="winamp.albumart" name="Okładki Albumów" default_visible="0" nomenu="1">

After this Winamp displays Album Art Window with polish caption: Okładki Albumów (ł (Ĺ‚) and ó (Ăł) characters are in UFT-8 encoding)

Now, I have to translate menu entry:
In "attribs.m" file I change this line and compile in maki compiler:
albumart_visible_attrib = custom_windows_page.newAttribute("Album Art\tAlt+A", "1");
on:
albumart_visible_attrib = custom_windows_page.newAttribute("Okladki Albumow\tAlt+A", "1");

Now I have in Winamp right menu this:

Okladki Albumow Alt+A

It is OK, but I have to add polish characters for "o" -> "ó" and "l" -> "ł"

So, I use this special file to change this. I use this syntax:

<translation from="Okladki Albumow*" to="Okładki Albumów"/>

It is OK, but now Alt+A shortcut disappears. I have in Winamp Menu only this:
Okładki Albumów

Any ideas?

Ps: How to force on maki compiler (mc.exe) for Winamp Modern Skins to compile maki scripts with utf encoding or best with polish encoding (iso 8859-2)? (to compile for example this: "Okładki" or "OkĹ‚adki").


Thanks for any help
-Pawel
Pawel is offline   Reply With Quote
Old 8th September 2007, 23:21   #2
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
Paweł -

I have an untested version of the maki compiler that uses UTF-8 instead of the local code page. If you'd like to test it out, send me an e-mail.

-benski
Benski is offline   Reply With Quote
Old 9th September 2007, 10:27   #3
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 558
Quote:
Originally posted by Benski
Paweł -

I have an untested version of the maki compiler that uses UTF-8 instead of the local code page. If you'd like to test it out, send me an e-mail.

-benski
I sent you an email. Of course, I want to test it!
Thanks, regards
-Pawel
Pawel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump