| Instructions for translators |
Translation Guidelines for ONLYOFFICE Documents for Android
The Android app is translated in two parts. Both use Android string resources, so the same rules apply to each.
| Component |
Source in repo |
Where it appears |
| appmanager |
app_manager/appmanager/src/main/res/values/translatable.xml |
Almost all of the app: login, file lists, rooms, sharing, dialogs, errors, settings, onboarding, cloud storage |
| libtoolkit |
toolkit/libtoolkit/src/main/res/values/translatable.xml |
Shared texts: common buttons (OK, Cancel, Next…), file size units, time units, Help & Feedback |
String format
Placeholders
-
%s (text) and %d (number) are replaced at runtime. %1$s, %2$s, %1$d are numbered versions of the same thing.
-
Every placeholder in the source must appear in your translation, and its type must stay the same: s stays s, d stays d.
-
To reorder placeholders, use the numbered form:
The file with the "%1$s" name already exists in the "%2$s" folder: %1$s is the file name and %2$s is the folder name. Put them wherever your grammar needs them.
-
Some strings use the short forms %1d and %1s, as in Users (%1d) and Convert to %1s. Copy them exactly as they are.
Line breaks, quotes and spaces
-
\n is a line break. Keep it. Use \n\n where the source has it, to leave an empty line.
-
Write apostrophes and double quotes the same way the source shows them. If the source has \' or \", write \' or \". An unescaped ' breaks the app build.
-
at the end of a string is an intentional trailing space, because more text follows it at runtime. Keep it. Example: Do not use these symbols .
-
& is an ampersand (Share & collect). Keep it written as &.
-
Quotation marks around a value («%s», "%2$s") may follow your language's own conventions.
Links
-
A few strings contain HTML links, such as <a href="%1$s">Learn more...</a>. Keep the <a href="…"> and </a> tags and the %1$s inside them unchanged. Translate only the link text.
Plurals
-
Plural strings show one field for each plural category in your language (one, few, many, other…). Fill in every field.
-
English "one" is often written without a number (Delete this item?). In your language, "one" may also cover 21, 31, 101 and so on. If it does, include the number placeholder from the "other" form so the count stays correct.
Key naming conventions
The key prefix tells you where the string appears:
| Prefix |
Context |
login, auth, socials |
Sign-in, portal address, two-factor authentication, social login |
main, navigation |
Main screen tabs (My documents, Rooms…) and the side menu |
list, context, toolbar |
File lists, long-press context menus, top toolbar actions |
rooms, room |
DocSpace rooms: creating, editing, info, members, templates |
share, invite |
Sharing settings, access levels, inviting users |
dialogs, dialog |
Confirmation and input dialogs |
placeholder |
Empty screens and connection error screens |
errors, error |
Error messages |
operation, upload, download |
Copy/move/delete progress and results, uploads, downloads |
filter |
Filter screen (file types, authors, contacts) |
filling, start_filling, form |
PDF form filling and form-filling rooms |
storage, kdrive, cloud |
Connecting clouds and third-party storage (WebDAV, Dropbox, kDrive…) |
setting, settings |
App settings: cache, Wi-Fi uploads, theme, local profile |
version |
File version history |
on_boarding, whats_new |
Onboarding slides and "What's new" screens |
about, app |
About screen, app permissions, update prompts |
common, sizes, help_and_feedback |
(libtoolkit) common buttons, size units (Kb, Mb…), help menu |
General rules
- Keep translations concise. The app runs on phones, and buttons, toolbar menus, tabs and dialog buttons have very little room.
- Use formal tone (for example "vous" in French, "Sie" in German, "–í—ã" in Russian). The existing translations already use it.
- Use the same term for the same concept everywhere. Use the same terms as the ONLYOFFICE DocSpace web interface for room, room template, Trash, Archive, form filling room, collaboration room and access levels such as Read only and Editing, so users see the same words on the web and on their phone.
- Do not translate product and service names: ONLYOFFICE, ONLYOFFICE Documents, ONLYOFFICE DocSpace, ONLYOFFICE Workspace, DocSpace, kDrive, Infomaniak, Nextcloud, ownCloud, Dropbox, Google Drive, OneDrive, Box, WebDAV, Facebook, Twitter.
- ONLYOFFICE PDF form is a file type name. Keep "ONLYOFFICE" and translate the rest only if your language usually translates such terms.
- File size units (
Kb, Mb, Gb) may use your language's usual abbreviations.
- Use your language's ellipsis convention ("…") in menu items that open a dialog.
- Do not add trailing spaces or full stops that are not in the source.
Questions?
If you are unsure where a string appears, install ONLYOFFICE Documents from Google Play and switch your device language to compare. You can also leave a comment on the string in Weblate.
|