ActiveState Community

Localizing Komodo

Posted by shanec on 2007-08-24 13:54
OS: All / Any

With the forthcoming Komodo 4.2 release, some of the UI in Komodo is now localizable. If anyone is interested in pursuing this, here are some details. This is very preliminary, we have not produced any localizations for Komodo yet.

Grab a localization from Firefox, you can get them at:

http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.6/win...

Save it someplace on your drive. Then:

~/tmp> unzip de.xpi

edit install.rdf and add the following targets:

<em:targetApplication>
            <Description>
                    <!-- Komodo IDE's uuid -->
                    <em:id>{36E66FA0-F259-11D9-850E-000D935D3368}</em:id>
                    <em:minVersion>4.2</em:minVersion>
                    <em:maxVersion>4.2.*</em:maxVersion>
            </Description>
    </em:targetApplication>
    <em:targetApplication>
            <Description>
                    <!-- Komodo Edit's uuid -->
                    <em:id>{b1042fb5-9e9c-11db-b107-000d935d3368}</em:id>
                    <em:minVersion>4.2</em:minVersion>
                    <em:maxVersion>4.2.*</em:maxVersion>
            </Description>
    </em:targetApplication>
<em:targetApplication>
	    <Description>
		    <!-- Komodo IDE's uuid -->
		    <em:id>{36E66FA0-F259-11D9-850E-000D935D3368}</em:id>
		    <em:minVersion>4.2</em:minVersion>
		    <em:maxVersion>4.2.*</em:maxVersion>
	    </Description>
    </em:targetApplication>
    <em:targetApplication>
	    <Description>
		    <!-- Komodo Edit's uuid -->
		    <em:id>{b1042fb5-9e9c-11db-b107-000d935d3368}</em:id>
		    <em:minVersion>4.2</em:minVersion>
		    <em:maxVersion>4.2.*</em:maxVersion>
	    </Description>
    </em:targetApplication>

~/tmp> zip -u de.xpi install.rdf
~/tmp> cd chrome
~/tmp/chrome> unzip de.jar
~/tmp/chrome> cd locale

grab the komodo.zip file attached to this posting and put it in the locale directory created when you unziped de.jar, let it overwrite files in the branding directory.

~/tmp/chrome/locale> unzip komodo.zip
~/tmp/chrome/locale> rm komodo.zip
~/tmp/chrome/locale> mv spellcheck de/spellcheck
~/tmp/chrome/locale> mv domviewer de/domviewer

now edit the files in locale/branding, locale/komodo, locale/de/spellcheck and locale/de/domviewer, provide translations. Once you're done go to the chrome directory again and:

~/tmp/chrome/locale> cd ..
~/tmp/chrome> zip -D -r -u de.jar locale/
~/tmp/chrome> cd ..
~/tmp> zip -u de.xpi chrome/de.jar

Now you have a localized extension. I picked German (de) for this example, so you would replace "de" with whatever locale you're working with.

Also attached is a simple locale switching extension that I have modified to work with Komodo. The original extension is at https://addons.mozilla.org/en-US/firefox/addon/356

AttachmentSize
komodo.zip44.44 KB
locale_switcher-2.1.xpi3.66 KB

webdr | Mon, 2008-06-02 21:25

should komodo.zip be updated for version 4.3.*?

macagua | Mon, 2008-06-23 18:36

Thanks for your job

On OpenKomodo's Wiki is a paper de How's localizing OpenKomodo for Spanish community? [0]

[0] http://wiki.openkomodo.com/index.php/Internacionalizaci%C3%B3n_de_OpenKo...