-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Localize keyboard details page 🗺️ #622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
User Test ResultsTest specification and instructions User tests are not required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path should be keyboard-details, not keyboards-details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I've got the keyboards/ strings under /_includes/locale/strings/keyboards
what if we nested the folders like:
..../keyboards/
/details/
/share/
/install/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep sounds good
| $install_keyboard = _m("install_keyboard"); | ||
| $install_keyboard_button_description = _m("install_keyboard_button_description", | ||
| $h_filename, $platformTitle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see suggestion in #623 please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woof - thanks for 🦆 on getting the boilerplate working.
Co-authored-by: Marc Durdin <marc@durdin.net>
Includes namespace for each file to call localized strings
| return $str; | ||
| } | ||
| return vsprintf($str, ...$args); | ||
| return vsprintf($str, array(...$args)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed this for the formatted strings with 2+ parameters
Follows #604 for #384
This continues the Locale.php to localize the keyboard details results.
Note, some of the content comes from other sources (e.g. keyboard details in the keyboards repo)
Test-bot: skip