Translating Web File Share

Editing a translation

Select a language by clicking on its name. The translation is split in several parts which refer to particular sections or features of Web File Share.

Click the section you wish to edit and you will see a list of words and phrases.

Simply click the text you wish to edit. Each Web File Share client can maintain its own version of the translations. On the third column of the table you can see the translations of the other clients, including the default translation if one is available. Please note that all the translations are public, so it is best to avoid writing information that you would like to keep private.

After you are done editing, you can download your version of the translation by returning to the page listing the sections and clicking the “Download language file” link. You will get a file named “LanguageName.txt” that you can apply to your Web File Share installation.

The language file can be either uploaded by FTP inside “system/data/languages” folder or through Web File Share's control panel, under “System Configuration > Interface options” page.

Note: If you are uploading a translation file via FTP and the translation does not work, make sure your FTP program isn't altering the file's contents (the line endings).

Translating e-mail notifications

The following e-mail message templates can also have translations: “account_notification.tpl.txt”, “forgot_password.tpl.txt”, “reset_password.tpl.txt”, “signup_email.tpl.txt”, “space_quota_warning.tpl.txt”.

To add a translation create a folder named “language-name” inside “customizables/emails/” and make copies of the template files that you want to customize. This system can also be used for customizing the templates while preventing software updates from overwriting your customization.

The main notification template, which is editable through the control panel, can also have translations. Simply copy the template from the control panel into a file named “notifications.tpl.txt” and place inside “customizables/emails/language-name/”. Make sure it has a <Subject> and <Body> tags as the template file “account_notification.tpl.txt” has.

Manually editing a translation file

  • The lines begging with “+–” should not be modified as they represent the section name (Example: “+– Login Page –+”)
  • The lines beginning with “//” represent comments, and do not require translation.
  • Each translated phrase require 2 consecutive lines, the first line is the key and should not be altered in any way. The second line represents the translation.
  • The translation should not contain more than one line: the line should not be broken by pressing the “ENTER” key.
  • Each phrase translation and section name should be separated by an empty line. Please make sure you don’t leave any blank characters on the separation line, and you do not separate with more than one line.
  • If a key is missing from the translation file, the default English version of that text will be displayed.
Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
Hiding options from the "Open with..." menu
Viewed 1405 times since Thu, Mar 6, 2014
Counting file downloads
Viewed 2571 times since Thu, Mar 6, 2014
Calculating MD5 Checksums
Viewed 1558 times since Thu, Mar 6, 2014
Adding custom functionality
Viewed 1600 times since Thu, Mar 6, 2014
Running custom scripts when users perform various actions
Viewed 2338 times since Thu, Mar 6, 2014
Custom even scripts
Viewed 1499 times since Wed, Nov 22, 2017
File reference
Viewed 1619 times since Tue, Jun 10, 2014
Adding links to the menu
Viewed 1624 times since Thu, Mar 6, 2014
Forcing certain file types to download
Viewed 1757 times since Thu, Mar 6, 2014
Custom file actions
Viewed 1598 times since Wed, Mar 5, 2014
MENU