Skip to content

feat: support lang parameter for keyboards embedded search#750

Merged
mcdurdin merged 2 commits into
masterfrom
feat/i18n-support-lang-for-keyboard-search
May 20, 2026
Merged

feat: support lang parameter for keyboards embedded search#750
mcdurdin merged 2 commits into
masterfrom
feat/i18n-support-lang-for-keyboard-search

Conversation

@mcdurdin
Copy link
Copy Markdown
Member

@mcdurdin mcdurdin commented May 20, 2026

Test-bot: skip
Relates-to: keymanapp/keyman#15948

@keymanapp-test-bot
Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

@mcdurdin mcdurdin requested a review from darcywong00 May 20, 2026 07:12
@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S29 milestone May 20, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Keyman May 20, 2026
@github-actions github-actions Bot added the feat label May 20, 2026

if(!isset($_SESSION['lang'])) {
$_SESSION['lang'] = isset($_REQUEST['lang']) ? $_REQUEST['lang'] : 'en';
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the case where $_SESSION['lang'] is already set (fr)
and a different $_REQUEST['lang'] (de) comes in?

going from (appears in French)
http://keyman.com.localhost/fr/keyboards/?embed=none

to
http://keyman.com.localhost/go/android/14.0/download-keyboards?lang=de

appears in English

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can't happen in the embed mode, because it will be a new session if the dialog is re-opened.

/**
* Set the current locales, with an array of fallbacks, ending in 'en'.
* @param $locale - the new current locale (xx-YY as specified in crowdin %locale%)
*/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can add a @param $fallback

Copy link
Copy Markdown
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcdurdin mcdurdin merged commit 94a1f66 into master May 20, 2026
5 checks passed
@mcdurdin mcdurdin deleted the feat/i18n-support-lang-for-keyboard-search branch May 20, 2026 07:55
@github-project-automation github-project-automation Bot moved this from Todo to Done in Keyman May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants