Translating AvsP

Creating a translation to different language for AvsP for is very easy. Included with the AvsP download is a file called "__translation.py". The first couple of lines in the file look like this:

# -*- coding: utf-8 -*-

# This file is used to translate the messages used in the AvsP interface.
# To use it, make sure it is named "translation.py" and is in the
# same directory as AvsP.exe. Simply add translated messages next to each
# message (any untranslated messages will be shown in English). You can type
# unicode text directly into this document - if you do, make sure to save it
# in the appropriate format. If required, you can change the coding on the
# first line of this document to a coding appropriate for your translated
# language. DO NOT translate any words inside formatted strings (ie, any
# portions of the text which look like %(...)s, %(...)i, etc.)

messages = {
"Find" : u"",
"Replace" : u"",
"Could not find docs for filter %(name)s!" : u"",

The file contains every translatable message in AvsP. To translate, simply add translated messages next to each message. For example, to translate the message "Find", modify the line to look like this:

"Find" : u"Finden",

(Now you know how to say "find" in German!) You can even type unicode directly into the file. Depending on the language and how you enter the text, you may need to change the coding in first line of the file.

Once you've translated the messages, simply rename the file to "translation.py" and make sure it's in the same directory as AvsP.exe. The next time you run AvsP you should see all your translated messages!

If you choose to translate AvsP to a new language, please post a message in the discussion on doom9's forum, and I will add the link to your translation on the download page.