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

boroda

  • Hero Member
  • *****
  • Posts: 5171
I think option #2 may be very convenient if substitutions wont be hardcoded in MB, but some special .lng file will be used for this, especially if filename substitutions may be used in ANY .lng file for any displayed filename (eg. playlists, eq presets, etc.):

$LanguageNames.lng (or maybe $AllLanguages.lng - this file must be loaded before any current .lng file):
...
#filename.German#  Deutsch
...

<SomeLanguage>.lng:
...
#filename.Recently Added#  <translated 'recently added'>
...
Last Edit: May 24, 2011, 09:54:33 AM by boroda74

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34973
i'll consider this idea after the final release
but for the immediate problem its only an issue for the compiled language files that are included with the MB distribution.
And i will be changing musicbee.exe with each new distrubition anyway, so its not a problem to include additional hard-coded mapping (if required) for any new language files that are to included
Language files downloaded from the forum can be named with unicode chars so not an issue for them.

Wolo

  • Jr. Member
  • **
  • Posts: 110
Hi Steven, we are testing the french translation and some bugs occured.

First and most important, when i click Edit/Preferences i get the following message error

Quote from: Error
MusicBee v1.2.4159.34223 (Win6.1), 25 mai 2011 10:33:

System.ArgumentException: Une entrée avec la même clé existe déjà.
   à System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   à System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   à #=qh32jgwwGyfKenoqzKXzLxM$pcyoX6TY7TmYeLnxwAklUkU9dKiYIqHussTuG9c2f.#=qm8keJWJNln$EpF7bTIQmYymDVvwzkNyAqk$1f81Bl4E=()
   à #=qh32jgwwGyfKenoqzKXzLxM$pcyoX6TY7TmYeLnxwAklUkU9dKiYIqHussTuG9c2f..ctor(Point #=q179y6Ay8XM8BqUqKnKT5kg==)
   à #=qSr7VIS9ZpeGKBwkgrww3hgnPLzYBeK3etyCVT2Zy5_Y=.#=qEexEPMbZf0RblNrybhsZuIh7SId4BloIKe8eE$2Doxs=()
   à #=qSr7VIS9ZpeGKBwkgrww3hgnPLzYBeK3etyCVT2Zy5_Y=.#=qO1kgBOihyumlfhV5eAKmLw==(ApplicationCommand #=qv_5ROZhObsaoKj6080bOFQ==, Object #=qXW9$y5m2JLhtjBGLVeB3$Q==)

Then i noticed 2 or 3 display bugs. Could you make the following boxes a little wider:

In Radio Stations/Presets - Open Presets File
In Custom Filter - the box next to "match" and the one where we select "starts with" / "ends with" ...


Edit: More bugs

Now Playing Assistant, this is what we have for the now playing list and queue next button: http://imgur.com/r1yhf
Tools/Organise File. Filename char mapping is too long: http://i.imgur.com/ge3OR.jpg (bottom right)
Same problem in Tools/ Rip CD. File per disc with cuesheet is too long.
Last Edit: May 25, 2011, 10:45:52 AM by Wolo

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34973
for the error, you have some hotkey descriptions the same - they need to be unique
!Sys.msg.RNP0sU#   Rating Now Playing: 0.5 stars Up
#Sys.msg.RNP0sU#   Noter la piste en cours: 0.5 étoile
!Sys.msg.RNP0sD#   Rating Now Playing: 0.5 stars Down
#Sys.msg.RNP0s#   Noter la piste en cours: 0.5 étoile

!Sys.msg.RST0sU#   Rating Selected Tracks: 0.5 stars Up
#Sys.msg.RST0sU#   Noter les pistes sélectionnées: 0.5 étoile
!Sys.msg.RST0s#      Rating Selected Tracks: 0.5 stars
#Sys.msg.RST0s#   Noter les pistes sélectionnées: 0.5 étoile

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34973
having a quick look at things, i can i am going to need to make some tweaks to the system preferences handling but also some cases where i think the wording will need to be abbreviated.

Perhaps change this line:
#Main.msg.abefopv#   aaaaaaaa bcccdddd eeeeeeeeeeee ffgghhhhhhiiiiiiijkllll:mmnnnnnnn oooooooo ppqrrrrrrsssssstttttttttuuu vwwxyyzxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

which will make things generally wider - its certainly not going to solve everything though

Wolo

  • Jr. Member
  • **
  • Posts: 110
for the error, you have some hotkey descriptions the same - they need to be unique
!Sys.msg.RNP0sU#   Rating Now Playing: 0.5 stars Up
#Sys.msg.RNP0sU#   Noter la piste en cours: 0.5 étoile
!Sys.msg.RNP0sD#   Rating Now Playing: 0.5 stars Down
#Sys.msg.RNP0s#   Noter la piste en cours: 0.5 étoile

!Sys.msg.RST0sU#   Rating Selected Tracks: 0.5 stars Up
#Sys.msg.RST0sU#   Noter les pistes sélectionnées: 0.5 étoile
!Sys.msg.RST0s#      Rating Selected Tracks: 0.5 stars
#Sys.msg.RST0s#   Noter les pistes sélectionnées: 0.5 étoile


Great, this is fixed.

having a quick look at things, i can i am going to need to make some tweaks to the system preferences handling but also some cases where i think the wording will need to be abbreviated.

Perhaps change this line:
#Main.msg.abefopv#   aaaaaaaa bcccdddd eeeeeeeeeeee ffgghhhhhhiiiiiiijkllll:mmnnnnnnn oooooooo ppqrrrrrrsssssstttttttttuuu vwwxyyzxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

which will make things generally wider - its certainly not going to solve everything though

That did the trick for the Radio Station and Rip CD issues, bugs remain for others.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34973
the following fields have been given the same name - when selecting a field as a criteria there is no way to distinguish them:
!Main.field.4#      Kind
#Main.field.4#      Genre
!Main.field.59#      Genre
#Main.field.59#      Genre

!Main.field.43#      Composer
#Main.field.43#      Compositeur
!Main.field.62#      Lyricist
#Main.field.62#      Compositeur


for the queue next button in the now playing assistant, in order to keep the buttons from being too big there is an override
#NPA.btn.QuNe#      Queue Next
if you cant make an abbreviation let me know
Last Edit: May 25, 2011, 11:36:48 AM by Steven

boroda

  • Hero Member
  • *****
  • Posts: 5171
Steven, I've found newly introduced layout handling issues in .4161 and some localization issues. See screenshots:
http://www.mediafire.com/?bk6jsjkpnhllsgq

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34973
1 - i dont think thats resolvable for now. The predefined custom tags in the drop-down come from a configuration file, so each localisation would need its own config file. The default tag labels for Custom1..9 and Virtual1..3 i think might need to stay as-is as well but i will have a look at that
3 - its a hardcoded link to the musicbee forum - why would that be localised?
4 - thats related to shrinking down the scaling to 1.4 - I will have a look but you might need to increase it slightly
5 - as above
6 - as above
7 - as above
8 - as for 1

edit:
before you adjust the width let me make some tweaks to the editor panel as i need to make some adjustments for the french translation which should benefit yours (they are just small width adjustments though)
Last Edit: May 25, 2011, 01:18:30 PM by Steven

Wolo

  • Jr. Member
  • **
  • Posts: 110
the following fields have been given the same name - when selecting a field as a criteria there is no way to distinguish them:
!Main.field.4#      Kind
#Main.field.4#      Genre
!Main.field.59#      Genre
#Main.field.59#      Genre

!Main.field.43#      Composer
#Main.field.43#      Compositeur
!Main.field.62#      Lyricist
#Main.field.62#      Compositeur


for the queue next button in the now playing assistant, in order to keep the buttons from being too big there is an override
#NPA.btn.QuNe#      Queue Next
if you cant make an abbreviation let me know

The Main.field issues are corrected, thanks for letting me know.
Regarding the Queue Next button, there was an error with the translation anyway, the new one is shorter and fits perfectly.

boroda

  • Hero Member
  • *****
  • Posts: 5171
1, 8 - i dont think thats resolvable for now. The predefined custom tags in the drop-down come from a configuration file, so each localisation would need its own config file. The default tag labels for Custom1..9 and Virtual1..3 i think might need to stay as-is as well but i will have a look at that
Well, not a big issue, but maybe later?

3 - its a hardcoded link to the musicbee forum - why would that be localised?
I meant that menu item may be shown as a descriptive localized text (e.g. 'Visit MusicBee forum'), not that hyperlink itself should be localized :)

4,5,6,7 - thats related to shrinking down the scaling to 1.4 - I will have a look but you might need to increase it slightly
It seems that these issues were resolved after changing scaling to 1.4 and newly introduced now. But of course I can slightly enlarge scaling.

EDIT:
before you adjust the width let me make some tweaks to the editor panel as i need to make some adjustments for the french translation which should benefit yours (they are just small width adjustments though)
OK. Please let me know when you finish tweaks.
Last Edit: May 25, 2011, 01:39:48 PM by boroda74

Wolo

  • Jr. Member
  • **
  • Posts: 110
Now that i have access to the Preferences Panel, i've found more displaying bugs (always related to the width of some cases). I'll list them later cause i'd like to read Bigelow13 and pfelelep feedbacks first.

Meanwhile, there's still untranslated text but i can't find it in english.dat or french.lng, so can you tell me if the following text is just missing:

. Right Click in one of the Show Track Browser Section: Sort Artist / Sort Album Artist / Encoder Settings / Custom# /Virtual#
. Right Click in one tab, "Close Tab".

Oh, back to display bug: View/Main Player (Locked Down). Can you make the "require password to unlock" case longer. This is fully translated (translation is: exiger un mot de passe pour déverrouiller) but the 6 last characters are cut.

silasje1

  • Member
  • Sr. Member
  • *****
  • Posts: 652
i have problems with latest dutch version. The buttons are too small for text (prefrences tab)
Also the "requird to restart" is too long and dissappears beneath the mb logo.

maybe you can make the  prefrences window bigger, cause it is quite small.
HDMI GTX570->YAMAHA RX-V471->DALI ZENSOR 1

Dutch Translation

WMP 12 Skin

bigelow13

  • Guest
When using the "upcoming concerts" service, there a date field, however it prints (when translated)

mer., juin 4, 2011

I would need to change the order, and remove the commas. The desired result is

mer. 4 juin 2011

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34973
this should address many of the french layout issues in the system preferences, tag editor, file organiser, password prompt
http://www.mediafire.com/?op85zltazakzznm

things i could still see:
- can the Now Playing preferences be looked at where one checkbox in the popup notifications section needs to be abbreviated
- in the File Converters tab, the first 2 fields, could they be abbrieviated if possible
- in the Devices tab, the 2nd tab, could that be shortened? eg. remove 'options de' ?
- in the CD Ripper, is there anything that can be shortened with the 'one file per album...' - maybe remove the word embedded?

i tested using this as the first setting in the language file:
#Main.msg.abefopv#   aaaaaaaa bcccdddd eeeeeeeeeeee ffgghhhhhhiiiiiiijkllll:mmnnnnnnn oooooooo ppqrrrrrrsssssstttttttttuuu vwwxyyzxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

also i added an id for the "Close Tab" #Main.menu.CloTab#
i will distribute an updated new.txt file later just in case there are more missing items found
Last Edit: May 25, 2011, 04:29:57 PM by Steven