Skip to content

Commit a96baf9

Browse files
authored
Merge pull request #1204 from pixlwave/doug/localazy-docs
Update Localazy readme.
2 parents 84e3083 + 09871c7 commit a96baf9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/localazy/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ Never edit manually the files `localazy.xml` or `translations.xml`!.
2626

2727
For code clarity and in order to download strings to the correct module, here are some naming rules to follow as much as possible:
2828

29-
- Keys for common strings, i.e. strings that can be used at multiple places must start by `action_` if this is a verb, or `common_` if not;
30-
- Keys for common accessibility strings must start by `a11y_`. Example: `a11y_hide_password`;
29+
- Keys for common strings, i.e. strings that can be used at multiple places must start by `action.` if this is a verb, or `common.` if not;
30+
- Keys for common accessibility strings must start by `a11y.`. Example: `a11y.hide_password`;
31+
- Keys for common strings should be named to match the string. Example: `action.copy_link` for the string `Copy link`;
32+
- When creating common strings, make sure to enable "Use dot (.) to create nested keys";
3133
- Keys for strings used in a single screen must start with `screen_` followed by the screen name, followed by a free name. Example: `screen_onboarding_welcome_title`;
3234
- Keys can have `_title` or `_subtitle` suffixes. Example: `screen_onboarding_welcome_title`, `screen_change_server_subtitle`;
3335
- For dialogs, keys can have `_dialog_title`, `_dialog_content`, and `_dialog_submit` suffixes. Example: `screen_signout_confirmation_dialog_title`, `screen_signout_confirmation_dialog_content`, `screen_signout_confirmation_dialog_submit`;
34-
- `a11y_` pattern can be used for strings that are only used for accessibility. Example: `a11y_hide_password`, `screen_roomlist_a11y_create_message`;
35-
- Strings for error message can start by `error_`, or contain `_error_` if used in a specific screen only. Example: `error_some_messages_have_not_been_sent`, `screen_change_server_error_invalid_homeserver`.
36+
- `a11y.` pattern can be used for strings that are only used for accessibility. Example: `a11y.hide_password`, `screen_roomlist_a11y_create_message`;
37+
- Strings for error message can start by `error_`, or contain `_error_` if used in a specific screen only. Example: `error_some_messages_have_not_been_sent`, `screen_change_server_error_invalid_homeserver`;
3638

3739
*Note*: those rules applies for `strings` and for `plurals`.
3840

0 commit comments

Comments
 (0)