File Thingie • PHP File Manager

Translating File Thingie

As of version 2.0.7 it is possible to translate the File Thingie interface into languages other than English. To facilitate this new feature a new setting has been introduced, LANG. By default LANG is set to "en" for English and the first thing you need to do is to change this to whatever language you want File Thingie to use. "da" for Danish, "fr" for French and so on.

Secondly you need to create a language file for File Thingie. The only supported language file is Danish and you can grab a copy of that from this website. If you need another language you must either download a language file below or create your own.

Contribute translations

The following translations has been contributed by File Thingie users. I cannot verify the accuracy of any of these. Use them at your own risk. Rename these files from .txt to .php and upload them to the same directory as ft2.php.

Translations for File Thingie 2.5.5

Translations for File Thingie 2.1.4

Translations for File Thingie 2.1.2

Translations for File Thingie 2.0.8

Creating a language file

To get started with your translation download the blank language file: ft_lang_BLANK.txt

Rename this file to ft_lang_LANGUAGECODE.php where LANGUAGECODE is the value you set LANG to. "da" for Danish, "fr" for French. For French you should rename the file to ft_lang_fr.php.

Open your language file in a text editor. You should see a bunch of lines in this format:

$ft_messages['LANGUAGECODE']['This is a sample'] = '';

Search and replace all instances of LANGUAGECODE with your chosen language. If you are making a French translation all your lines should now look like this:

$ft_messages['fr']['This is a sample'] = '';

Now you must go through each line and insert your translation between the last set of single quotes. For example if we were translating to Danish:

$ft_messages['da']['This is a sample'] = 'Dette er et eksempel';

A note on variables

Some strings contain variables. These always begin with an exclamation point. For example: !old or !file. You must include these exactly as they are written in the English string. Take the string "A new version of File Thingie (!version) is available." When this string is displayed in File Thingie !version will be automatically replaced with the version number.

Uploading the language file

After you have finished your translations save the language file and upload it to the same directory as ft2.php. If you have set the LANG setting in File Thingie you will now see a translated interface.