Translation

You are more than welcome to help with the translation progress of the user interface. The application is currently available in 5 languages (en-US, de-DE, fr-FR, sv-SE, zh-CN) and as new features are added new strings need to be translated.

Translation Files

All translation strings are stored as JavaScript files in client/src/lang/<locale>/*.js. Each locale has its own directory (e.g. en-US, de-DE) with one file per area (notes.js, settings.js, ...).

Each file exports an object mapping keys to translated values:

export default {
  notes: 'Notizen',
  note: 'Notiz',
  pin: 'anheften',
  search: 'Suchen',
};

Adding a New Language

  1. Copy the client/src/lang/en-US directory and rename it with the target locale code (e.g. pt-PT)
  2. Translate the values (right-hand side) while keeping the keys (left-hand side) unchanged. Keep any placeholders in curly braces, like {name}, exactly as they are.
  3. Register the locale in client/src/lang/index.js and add it to User::LOCALES in server/app/Models/User.php
  4. Add an <option> for the locale to the language list in client/src/views/Profile/Profile.js, and to the default locale list in client/src/views/Settings/Settings.js
  5. For server messages such as emails, copy server/resources/lang/en-US to server/resources/lang/<locale> and translate it
  6. Rebuild the client and test the translation by switching to the new locale in your Profile

Translate every key: there is no English fallback, so a missing key shows its raw id (for example notes.search) in the interface.

How to Contribute

You can send your translations with a pull request in GitHub or per email to alextselegidis@gmail.com.

Tip: When translating, try to keep the translated strings a similar length to the English originals. This helps preserve the application's layout across different languages.

Contributing to the Project

Being an open source project, Plainpad is interchangeably connected to its community. Anyone can become part of the evolution of the project and help in the creation of high quality features.

Development

With collaboration mainly taking place on GitHub, pull requests are welcome. Please ensure that you follow the coding guidelines before submitting new code to the project.

Testing

One of the most important goals of Plainpad is performance and stability which means that quality assurance has to ensure that problematic cases never reach production instances. Every release has an Alpha and Beta stage that aims to eliminate any underlying issues.

Suggestions

Everything you might suggest about the project will be taken into concern and is highly appreciated. Your ideas of new features and enhancements are very important and will help Plainpad become even better.