Author Topic: Translator Q&A  (Read 529513 times)

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
I have two questions:
1) What are the recommended dimensions of these buttons: #Image.PlayArtwork#, #Image.PlayArtworkSmall# and #Image.PlayArtworkNoButton# ?
2) In what situation will show an image #Image.PlayArtworkNoButton#?
1. i have uploaded the french ones:
http://www.mediafire.com/?8h869du9799y5fs
but if you want just let me know what the text should be and i will send back the base64 string you would use

2. having a look at the code its not used any more, so dont worry about that one

I found a typo (#Main.msg.UnstLDB#):
thanks - thats fixed for the next 2.2 update
Last Edit: July 19, 2013, 08:46:07 AM by Steven

Pako

  • Full Member
  • ***
  • Posts: 132
i see its actually already available as:
#Main.menu.CoPl2#
Great! It really works!
But somewhere around oops mistake, because this identifier is absent in the localization file.
I checked it in Russian, German and Polish file. In none of them this string exists.

1. i have uploaded the french ones:
http://www.mediafire.com/?8h869du9799y5fs
but if you want just let me know what the text should be and i will send back the base64 string you would use
Thank you for the offer, but I do not need it. BTW - for me doing this job EventGhost (a Python script action):

You can see it in Czech localization file that is already done and I am here announcing earlier.

Pako

Xyzzy

  • Sr. Member
  • ****
  • Posts: 403
Hi,

A couple things:
- Could we have Polish play button as well? The text to put on it is:
Odtwórz
The third letter from the end is Latin small letter o with acute, Unicode 00F3 or LAlt+00243

- In Rip CD dialog, texts related to detected ripping problems, repairing them etc. (the ones displayed in Status column) are not localised

- In case of the IDs below, could we have separate versions for 2, 3, and 4 items, to accommodate for languages with paucal number (and also dual, trial and quadral) - like Polish

#Main.msg.Files1#
#Main.msg.Files9#
#Main.msg.SelFiles1#
#Main.msg.SelFiles9#
#Main.msg.DupFiles1#
#Main.msg.DupFiles9#
#Main.msg.NewFiles1#
#Main.msg.NewFiles9#
#Main.msg.Items1#
#Main.msg.Items9#
#Main.msg.Albums1#
#Main.msg.Albums9#
#Main.msg.Tracks1#
#Main.msg.Tracks9#
#Main.msg.Plays1#
#Main.msg.Plays9#
#Main.msg.Subs1#
#Main.msg.Subs9#


boroda

  • Hero Member
  • *****
  • Posts: 5171
In case of the IDs below, could we have separate versions for 2, 3, and 4 items, to accommodate for languages with paucal number (and also dual, trial and quadral) - like Polish

#Main.msg.Files1#
#Main.msg.Files9#
#Main.msg.SelFiles1#
#Main.msg.SelFiles9#
#Main.msg.DupFiles1#
#Main.msg.DupFiles9#
#Main.msg.NewFiles1#
#Main.msg.NewFiles9#
#Main.msg.Items1#
#Main.msg.Items9#
#Main.msg.Albums1#
#Main.msg.Albums9#
#Main.msg.Tracks1#
#Main.msg.Tracks9#
#Main.msg.Plays1#
#Main.msg.Plays9#
#Main.msg.Subs1#
#Main.msg.Subs9#
+1. It would be great to have #Main.msg.Files2_4#,  #Main.msg.SelFiles2_4#, etc. (2 to 4 items) strings.

BTW, in Russian (and I think in Polish also) string ID should depend on rightest digit of number, eg. for number 241 form #Main.msg.Files1# should be used.
Last Edit: July 26, 2013, 10:39:33 AM by boroda74

Xyzzy

  • Sr. Member
  • ****
  • Posts: 403
BTW, in Russian (and I think in Polish also) string ID should depend on rightest digit of number, eg. for number 241 form #Main.msg.Files1# should be used.

Right. Almost. It's even a bit more complicated after I've thought about it a little, see below.

I think I have seen somewhere a mechanism for dynamic string selection - a set of formulas that are evaluated and the a string matching a formula is selected. Something along:
x==1;!((x-1)%10);x=11|x==12|x==13;!((x-2)%10)|!((x-3)%10)|!((x-4)%10);default#album;albumów;albumów;albumy;albumów
It reads:
one - album
any number ending with 1 - albumów
12, 13, 14 - albumów
any number ending with 2, 3 or 4 - albumy
default (all other) - albumów


Pako

  • Full Member
  • ***
  • Posts: 132
- Could we have Polish play button as well? The text to put on it is:
Odtwórz
The third letter from the end is Latin small letter o with acute, Unicode 00F3 or LAlt+00243
If you are interested, I can do it for you. I think Steven can do more useful work.

- In case of the IDs below, could we have separate versions for 2, 3, and 4 items, to accommodate for languages with paucal number (and also dual, trial and quadral) - like Polish
+1
In Czech language, of course, we have the same problems with the ending of the word.

Pako

boroda

  • Hero Member
  • *****
  • Posts: 5171
Right. Almost. It's even a bit more complicated after I've thought about it a little, see below.
Well, the Russian requirements are almost the same as Polish, but 11 must have the form 'albomov' and any other number ending with 1 form 'albom'. So we need for Slavic languages the following forms of strings:

  • 1 item
  • 11, 12, 13, 14 items or any other number ending with 5-9
  • any other number ending with 1
  • any other number ending with 2, 3, 4


Pako, please confirm that this acceptable for Czech.

Pako

  • Full Member
  • ***
  • Posts: 132
  • 1 item
  • 11, 12, 13, 14 items or any other number ending with 5-9
  • any other number ending with 1
  • any other number ending with 2, 3, 4


Pako, please confirm that this acceptable for Czech.
Yes, it is perfectly suitable for Czech.

Pako

Xyzzy

  • Sr. Member
  • ****
  • Posts: 403
  • 1 item
  • 11, 12, 13, 14 items or any other number ending with 5-9
  • any other number ending with 1
  • any other number ending with 2, 3, 4
It's OK for Polish as well, one correction though - second point should include numbers ending with 5-9 and ending with 0

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
so i will do:
  • No items - already done
  • 1 item - already done
  • 11, 12, 13, 14 items or any other number ending with 5-9
  • any number ending with 0 - not used apart from polish
  • any other number ending with 1
  • any other number ending with 2, 3, 4
  • any other number - use the existing plural value


and if any of the rules are missing MB will use the existing plural value.
I am not sure when i will do this though

boroda

  • Hero Member
  • *****
  • Posts: 5171
...one correction though - second point should include numbers ending with 5-9 and ending with 0
Completely forgot about this. Of course the same for Russian (and I think for Czech).

so i will do:
  • No items - already done
  • 1 item - already done
  • 11, 12, 13, 14 items or any other number ending with 5-9
  • any number ending with 0 - not used apart from polish. Should be the same as for 5-9 endings
  • any other number ending with 1
  • any other number ending with 2, 3, 4
  • any other number - use the existing plural value. May be the same as for 5-9 endings[/b]

    and if any of the rules are missing MB will use the existing plural value.
Steven, thank you very much!
Last Edit: July 26, 2013, 07:15:47 PM by boroda74

Xyzzy

  • Sr. Member
  • ****
  • Posts: 403
- Could we have Polish play button as well? The text to put on it is:

Pako has created Polish buttons and they will be attached to the next release of Polish language file.

Thanks Pako!

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
This is done for the next v2.2 update:
  • 11, 12, 13, 14 items or any other number ending with 0,5-9 add 059 eg. Main.msg.Files059
  • any other number ending with 1 add 1 eg. Main.msg.Files1
  • any other number ending with 2, 3, 4 add 24 eg. Main.msg.Files24
if no translation is provided it falls back to the plural eg. Main.msg.Files9

http://musicbee.niblseed.com/V2_2/MusicBee_Exe_Patched.zip
Last Edit: July 28, 2013, 05:12:11 PM by Steven

boroda

  • Hero Member
  • *****
  • Posts: 5171
Hmm, Main.msg.Files1 already is a translation for '1 file' without parameters. How I can add translation for '{0} file'?

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
i will change it to use this convention:
#Main.msg.Files9:059#
#Main.msg.Files9:1#
#Main.msg.Files9:24#