How to update a translation of Fast Secure Contact Form – PHP Script

Posted by on Sep 12, 2010 in How To

How to UPDATE an already translated language?

This article explains how to take an existing language file and update it. Sometimes a language file will be older than the current version of Fast Secure Contact Form – PHP. In that case there may be some text that appears in English instead of the set language.

Download the .po language file from the language folder structure: (unique to each language)
Example for Italian: it_IT. The country code is part of the file name. The Italian .po file would be located like this: /contact-files/languages/it_IT/LC_MESSAGES/fsc-form-it_IT.po

You should download the free Poedit program to translate, because it makes it easier to translate.

Open Poedit and click “File – Open”, select the .po file found in the language folder you need to work on.
Example for Italian: it_IT, Open Poedit and open the fsc-form-it_IT.po file.

Locate the plugin POT file /contact-files/languages/fsc-form.pot
Getting the latest one from the latest download package is recommended. Save the file to your computer, unzip and locate the /contact-files/languages/fsc-form.pot file.

After opening the .po file, Click “Catalog – Update from POT file” and select the fsc-form.pot file.
Now all you have to translate are the new language strings that have been added to the plugin since the language file was last translated.

Entries are arranged in a list, so that you can easily navigate large catalogs and immediately get an idea about how big part of the catalog is already translated, what needs translating and which parts are only translated in a “fuzzy” way. Fuzzy and untranslated records are highlighted and displayed at the top of the list. Start at the top of the list and translate each line. When done translating click Save.

Poedit will automatically save the .mo and .po files needed by this program. Be sure to name them like this:
Example for Italian: it_IT.

Copy the language files into the folder: (create the proper folders)
Example for Italian: it_IT. The country code is part of the file name. The Italian files would be located like this:

How to select a default language:
Languages can be selected by visiting “Site Settings” on the admin page top menu.
There is a form select to select a language by country locale.

When you have completed a new translation, please contact Mike and request to submit your language files to be included in the plugin download. Be sure to include your name and your web site URL for the credits.

Do you need help?

Send us a Donation:

Donate to Mike Challis