Syntax error line 1950 (1 Viewer)

powermarcel10

Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    32
    Groningen
    Netherlands Netherlands
    Hi,

    I have a problem with Subcentral/MP TV-series...

    I was downloading a subtitle for a episode of Law and order, but when I was starting the episode I was getting an error: "Syntax error line 1950"

    There was also another subtitle availible, and when downloading that one, everything is fine..

    Do you have any idea?

    Here are all log files..
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    So let me see if I got you correctly.. You downloaded subtitle file from Internet (unknown source) and it didn't work. Then you downloaded another subtitle file from internet (also unknown source) but this one did work. Ummm.. so what's wrong? :) It was obviously error in the subtitle file... Or do you want me to add some AI to SubCentral to automatically fix subtitle file errors? :p

    BTW, saw this in your logs:
    System.ArgumentException: Er is al een item met dezelfde sleutel toegevoegd.
    Looks like there are some errors in your language file (XML). Maybe two translations with the same key?
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    32
    Groningen
    Netherlands Netherlands
    So let me see if I got you correctly.. You downloaded subtitle file from Internet (unknown source) and it didn't work. Then you downloaded another subtitle file from internet (also unknown source) but this one did work. Ummm.. so what's wrong? :) It was obviously error in the subtitle file... Or do you want me to add some AI to SubCentral to automatically fix subtitle file errors? :p

    BTW, saw this in your logs:
    System.ArgumentException: Er is al een item met dezelfde sleutel toegevoegd.
    Looks like there are some errors in your language file (XML). Maybe two translations with the same key?
    Hi SilentException ,

    thanks for you response..

    Actually, I only want to report it.. The message I get is a windows message, and not a Mediaportal message, so It'not nice.. You said It's a corupted subtitle file, I don't know, maybe it was something else, but I'm happy that the other subtitle file was working fine..

    It was a strange message, so I thought; Let's report it, that's all.. :)

    About the 2 translations with the same key.. What do you mean? There is only one translation for Dutch in the language folder of Subcentral..
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    <string Field="NoSubtitlesnFound">Geen ondertitelingen gevonden</string>
    <string Field="NoDownloadmappen">Geen geldige downloadmappen voor deze media gevonden.</string>

    Have wrong keys... NoSubtitlesnFound, NoDownloadmappen.

    There might be more.. still checking...


    Edit: SelectTaals, SelectDownloadmap

    In other words, you shouldn't translate Field= values (keys), only strings...

    Also found cause for error string in log:
    <string Field="Subtitles">Ondertitel(s)</string>
    <string Field="Subtitle">Ondertitel</string>
    <string Field="Subtitles">ondertitelingen</string>

    Translation for "Subtitles" key is defined twice.


    Pls fix it. All fields (keys) should be the same as in en-us. Only translations should differ.
     

    seco

    Development Group
  • Team MediaPortal
  • August 7, 2007
    1,580
    1,236
    Finland Finland
    Country flag
    "Syntax error" is an error in the subtitle file itself and appears when the subtitle file is actually used during the playback -> no SubCentral related.
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    32
    Groningen
    Netherlands Netherlands
    <string Field="NoSubtitlesnFound">Geen ondertitelingen gevonden</string>
    <string Field="NoDownloadmappen">Geen geldige downloadmappen voor deze media gevonden.</string>

    Have wrong keys... NoSubtitlesnFound, NoDownloadmappen.

    There might be more.. still checking...


    Edit: SelectTaals, SelectDownloadmap

    In other words, you shouldn't translate Field= values (keys), only strings...

    Also found cause for error string in log:
    <string Field="Subtitles">Ondertitel(s)</string>
    <string Field="Subtitle">Ondertitel</string>
    <string Field="Subtitles">ondertitelingen</string>

    Translation for "Subtitles" key is defined twice.


    Pls fix it. All fields (keys) should be the same as in en-us. Only translations should differ.
    Thanks..

    Very strange, all those errors in the file.. I know that I have only to translate the strings.. Did I make this file?? Maybe a long time ago when I didn't know anything about Mediaportal.. I have fixt them in the attachted file..

    About the string field you say, I think they are right.. In the original language file it's:

    <string Field="SubtitleS">Subtitle(s)</string>
    <string Field="Subtitle">Subtitle</string>
    <string Field="Subtitles">Subtitles</string>

    So they are set twice.. Only one time with a big S at the end, and one time with a small s.. In the Dutch translation file it is now:

    <string Field="SubtitleS">Ondertitel(s)</string>
    <string Field="Subtitle">Ondertitel</string>
    <string Field="Subtitles">Ondertitelingen</string>

    Right?

    Best regards, and thanks for your support.

    EDIT: A more strange thing is that the language file isn't work at all.. :s Have no idea why.. I can't find anything wrong in the file.. Whe I try to open the file I get this:

    Alle providers Alle gekozen providers Over Alle ({0}) ondertitelingen gedownloaded. Alle ({0}) ondertiteldownloads geannuleerd. Alle Alle ({0}) ondertitelingen verwijderd. SubCentral is een standalone ondertitelplug-in voor de HTPC-applicatie MediaPortal. Het doel van de plug-in is om de gebruiker de mogelijkheid te geven om ondertitelingen te zoeken en te downloaden voor films en TV-series welke worden beheerd middels de MovingPictures en MP-TVSeries plug-ins. Het biedt ook een eenvoudige interface die het mogelijk maakt op in andere toepassingen en plug-ins te worden gebruikt. De beste manier om deze plugin te gebruiken is door naar de MovingPictures of MPTVSeries plugin te navigeren en daar te kiezen voor 'Download ondertitelingen'. Bij MovingPictures (vereist is versie 1.0.3 of nieuwer), zal deze optie, afhankelijk van de gebruikte skin, zijn terug te vinden in het scherm of een menu. Bij MP-TVSeries (vereiste is versie 2.6.0 of nieuwer) is in het contextmenu de optie 'Download...' te vinden en vervolgens 'Ophalen ondertitel'. Indien gewenst kunnen de zoekopdrachten van deze plugin worden aangepast om zo eigen zoekopdrachten en websites te ondersteunen. Wanneer de plugin wordt gestart vanuit het Home Screen (zoals momenteel het geval is), is het mogelijk een handmatige zoekactie uit te voeren. Daarmee kan de gebruiker zijn eigen aangepaste zoekopdrachten uitvoeren voor de films of TV-series. Om de taal in te stellen waarin de ondertitelingen moeten worden gezocht moet het menu gebruikt worden. Gebruik de MediaPortal Configuratie om geavanceerde instellingen te wijzigen (selecteren, sorteren en hernoemen van groepen/provider, selecteren en sorteren van talen en het kiezen van de downloadlocatie). Wanneer de zoekopdracht is uitgevoerd kunnen de resultaten via het menu worden gesorteerd en uiteraard worden gedownload. Bezoek onze Google Code SubCentral projectpagina voor meer informatie! Terug Het laden van het skinbestand \voor SubCentral is niet gelukt. Annuleren Bevestigen Leeg bestanden Leeg media Download geannuleerd. Contextmenu Handmatig zoeken niet mogelijk omdat er \ngeen downloadmappen zijn ingesteld.\nGebruik de configuratie om deze in te stellen. Mediabestanden legen niet mogelijk omdat er \ngeen downloadmappen zijn ingesteld.\nGebruik de configuratie om deze in te stellen. Voltooid Standaard voor: {0} Downloadmap bestaat niet. Aanmaken? Download Download naar... Standaardmap {0} is niet beschrijfbaar! Maak een andere aan. Standaard downloadmap:\n{0}\nbestaat niet.\nAanmaken? Standaard Verwijder ondertitelingen Fout Externe plugin Fout(en) bij het downloading van ondertitelingen! Fout bij het downloading van ondertitelingen: {0} Fout(en) bij het ophalen van ondertitelingen! Fout(en) bij het ophalen van ondertitelingen: {0} Fout(en) bij het aanmaken van een map. Ondertitelingen gevonden Van: {0}
     

    Attachments

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    Thanks I will re-check the XML file soon. I think you did the first NL translation, but you can check it in configuration (About tab). All translators are listed there ;)

    SubtitleS and Subtitles are OK, they are not the same strings. It won't throw error anymore.

    If you open XML in Internet Explorer, that's how it will look. If you select "view source" or open it in text editor it should look OK.
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    32
    Groningen
    Netherlands Netherlands
    I know about how it have to look like.. But open it in your webbrowser is a way to see if the file is corrupt or not.. If the file is okay, I looks different than when it is not.. But I have installed subcentral on my main machine, and that subcentral file works.. So I'm no adding the new stringfiles again.. So, let's see what happend.. ;)

    Well, the translated file was made by Henkie Flits.. So, not my mistake!! :p I'm busy with the new one, checking every string by hand..

    I'll post the new file this afternoon.. :)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    Rob Hexenmeister Conditional syntax General Support 7
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 2
    G [solved] timeshift error Newcomers Forum 2
    C Can't install any extensions - DLL error Installation, configuration support 19
    horned_reaper Errors in FH log ... Fanart Handler 1
    joecrow 1.25.0 5031: Error on Install. Bugreports 24
    M MediaPortal2 TV Config Error on Install (0x80004005) General 7
    J Blue Screen Error Submit: Bug Reports 0
    G Q about scheduling weekly series when epg lists duplicate back to back episodes each week General Support 2
    Rob Hexenmeister Dependency error on install v2.3.2.0 OnlineVideos 28
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    F Error invoking action 'GetNowNextProgramForGroup' Submit: Bug Reports 3
    B MP 2.2.3 Error playing videos from NAS Submit: Bug Reports 2
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    doskabouter Build errors MediaPortal 1 9
    ajs Trakt error when start with MP crash Trakt 1
    horned_reaper MediaPortal configuration error log message General Support 1
    horned_reaper MiniDisplayStatus error log messages General Support 7
    horned_reaper [solved] GUITextureManager Load2 log error messages Fanart Handler 1
    horned_reaper MediaPortal.LastFM.LastFMException error log message General Support 1
    R [solved] No Response from Home Page - Error Newcomers Forum 0
    globaldonkey Music Database Error Listen Music 1
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    thepahakurki Trakt error: Invalid or missing file Trakt 8
    Z Error when attempting to play Blu Ray General 1
    Top Bottom