Changing the SummerBoard theme language

Discussion in 'iOS Themes and Customization' started by bloodsplatter, Feb 11, 2008.

  1. bloodsplatter

    bloodsplatter New Member

    Joined:
    Feb 7, 2008
    Messages:
    23
    Likes Received:
    0
    As some of you might have noticed, themes do not support multiple languages.
    I am trying to work out a shell script that changes the names of the icons (I currently have only the Dutch names, since I'm Dutch) and fixing the permissions (setting them to 755).

    You are welcome to submit any translations in the following form (I copy-pasted my translation part):

    Code:
    $COM ./Clock.png Klok.png
    $COM ./Calendar.png Agenda.png
    $COM ./Music.png Muziek.png
    $COM ./Notes.png Notities.png
    $COM ./Maps.png Kaarten.png
    $COM ./Stocks.png Aandelen.png
    $COM ./Contacts.png Contacten.png
    $COM ./Settings.png Instellingen.png
    $COM ./Videos.png "Video's.png"
    $COM ./Weather.png Weer.png
    This so that I can copy-paste it into the script.

    I am going to take some bash-scripting lessons to extend the script.
    When it's finished I can post it. Right now the script renames the icons,
    but I'm considering to copy them and then rename them.
    This would enable people to download small themes (and theme creators only need to make 1 language) and then the iPod Touch/iPhone can do the translation (wich should make the theme directory considerably bigger because the images are copied multiple times).

    Any translation submissions are welcome, as are bash-scripting tutorials or other idea's of how to fix this.

    Right now the script works like this (assuming you are in /var/mobile/SummerBoard/Themes and the script is also in that directory):

    Code:
    sh rename.sh [I]ThemeFolderHere[/I]
    
    But I would like to end up with:

    Code:
    sh rename.sh
    Enter the name of the theme's folder: [I]ThemeFolderHere[/I]
    
    But there's one more problem. I don't know if this is a 1.1.3 problem or a multilanguage problem, but renaming Photos.png to Foto's.png is not working (Foto's is the Dutch word). It still remains the stock icon. Same goes for Weather (to Weer).
    I think this might be a localization problem (because there are 2 weather icons, one for Celsius and one for Fahrenheit), but I don't now if this applies to MobileSlideShow.app.

    And finally, an important note: the script that is attached to this post is a work in progress. I am not responsible for any damage you might do to your iPod Touch/iPhone if you use it.
    You would also be wise to REMOVE THE .TXT EXTENSION before uploading it to your device's /var/mobile/SummerBoard/Themes. Execute through SSH or Term-vt100 (or any other terminal).

    (If it's worthy of a sticky, by all means, please do

    Please Register or Log in to view images

    )

    UPDATE: There's a fix available for the weather icon via http://repo.itouchable.de .
    That leaves the Photo icon.

    Attached Files:

  2. nAsTa

    nAsTa New Member

    Joined:
    Nov 18, 2007
    Messages:
    11
    Likes Received:
    0
    Swedish

    Code:
    $COM ./Clock.png Klocka.png
    $COM ./Photos.png Bilder.png
    $COM ./Calendar.png Kalender.png
    $COM ./Music.png Musik.png
    $COM ./Notes.png Anteckningar.png
    $COM ./Maps.png Kartor.png
    $COM ./Stocks.png Aktier.png
    $COM ./Contacts.png Kontakter.png
    $COM ./Settings.png Inställningar.png
    $COM ./Videos.png Videor.png
    $COM ./Weather.png Väder.png
  3. bloodsplatter

    bloodsplatter New Member

    Joined:
    Feb 7, 2008
    Messages:
    23
    Likes Received:
    0
    Update

    It now works with Dutch and Swedish.
    DO NOT CHANGE THE FILE
    If you change the file you'll likely mess up the linebreaks and then your ipod can't read it anymore.

    Also: You need the BSD Subsystem for this (since it uses /bin/bash)

    DON'T FORGET TO REMOVE THE .TXT EXTENSION AND "CHMOD 755" THE FILE AFTER YOU PUT IT ON YOUR IPOD TOUCH

    Don't know what I just said? Don't even try it then.

    Contributors:
    Me (Dutch)
    nAsTa (Swedish)

    Attached Files:

Share This Page