Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3ae79db
GPII-2212: Added language support for Windows.
stegru Jul 31, 2017
c4ddacd
GPII-2212: Added "catalina" preference set, for the language preference.
stegru Jul 31, 2017
b1e872a
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Aug 2, 2017
2e44fd5
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Aug 7, 2017
4781279
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Sep 8, 2017
9eb0961
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Sep 13, 2017
56c660d
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Oct 10, 2017
1159e51
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Dec 11, 2017
bce92c5
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Jan 5, 2018
c47e9d0
GPII-2212: Added "telugu" persona, for the Telugu language.
stegru Jan 16, 2018
38576a6
GPII-2212: Made language still work after reboot - added another regi…
stegru Jan 26, 2018
9d7801b
GPII-2578: Made findProcessesByCommand case-insensitive for Windows.
stegru Mar 15, 2018
8964cd9
Merge remote-tracking branch 'upstream/master' into GPII-2578
stegru Mar 19, 2018
4831677
GPII-2578: Implemented the os detection the right way
stegru Mar 20, 2018
65a563e
GPII-2578: Moved case-insensitive process match into universal
stegru Mar 26, 2018
4fc0d71
GPII-2578: Implemented getProcessPath()
stegru Mar 26, 2018
176bb6f
TESTING
stegru Mar 28, 2018
0bfd50c
Merge branch 'master' into GPII-2212
stegru Apr 2, 2018
b337e72
GPII-2212: Updated start/stop instructions to invoke new function for…
stegru Apr 2, 2018
eeb8bf8
Merge branch 'GPII-2844' into GPII-2212
stegru Apr 4, 2018
24cb071
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Jun 20, 2018
dc38c56
GPII-2212: JSON5 preference files.
stegru Jun 24, 2018
a122400
GPII-2212: Restart explorer after language setting.
stegru Jun 25, 2018
def27ce
GPII-2212: Language acceptance tests.
stegru Jun 25, 2018
e24133f
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Jun 25, 2018
dbf6805
GPII-2212: JSDoc fixed.
stegru Jun 26, 2018
471404a
GPII-2212: Making markdown linter happy.
stegru Jun 26, 2018
33d1f88
GPII-2212: Nice hack to only restart explorer if the language has cha…
stegru Jul 10, 2018
da89b5f
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Jul 10, 2018
7f2521b
GPII-2212: Removed documented limitation.
stegru Jul 10, 2018
7d38d98
GPII-2212: Trailing commas
stegru Jul 10, 2018
959910b
Merge remote-tracking branch 'upstream/master' into GPII-2212
stegru Jul 31, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gpii/node_modules/matchMakerFramework/test/data/os_win7.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 28 additions & 5 deletions gpii/node_modules/processReporter/src/processesBridge.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions testData/deviceReporter/acceptanceTests/win7_builtIn.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@

{
"id": "com.microsoft.windows.typingEnhancement"
},

{
"id": "com.microsoft.windows.language"
}

]
4 changes: 4 additions & 0 deletions testData/deviceReporter/installedSolutions.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
"id": "com.microsoft.windows.typingEnhancement"
},

{
"id": "com.microsoft.windows.language"
},

{
"id": "com.android.activitymanager"
},
Expand Down
19 changes: 19 additions & 0 deletions testData/preferences/catalina.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//# catalina
//
//This preference set sets the OS language to Spanish (Spain), es-ES.
//
//## Testing
//
//For this to work correctly, the es-ES language pack needs to be installed on Windows. See GPII-2212.
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/common/language": "es-ES"
}
}
}
}
}
19 changes: 19 additions & 0 deletions testData/preferences/telugu.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//# telugu
//
//This preference set sets the OS language to Telugu, te-IN.
//
//## Testing
//
//For this to work correctly, the te-IN language pack needs to be installed on Windows. See GPII-2212.
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/common/language": "te-IN"
}
}
}
}
}
15 changes: 15 additions & 0 deletions testData/preferences/tom.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//# tom
//
//This preference set sets the OS language to English (US), en-US.
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/common/language": "en-US"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Windows Display Language

## Details

* __Name__: Windows Display Language
* __Id__: com.microsoft.windows.language
* __Platform__: Windows
* __Contact__: Steve Grundell <sgrundell@raisingthefloor.org>

## Description

Sets the display language of the operating system, by changing some values in the Windows Registry. The new setting
is only applied to new processes; only Windows Explorer is restarted by this solution.

The language identifier is specified in `http://registry.gpii.net/common/language`.


## Testing

The following test users make use of the language setting:

* Tom: English (US), en-US
* Catalina: Spanish (Spain), es-ES
* Telegu: Telegu (India), te-IN.

## Limitations

* The appropriate language pack must already be installed.
84 changes: 83 additions & 1 deletion testData/solutions/win32.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,6 @@
]
},


"com.microsoft.windows.narrator": {
"name": "Windows Built-in Narrator",
"contexts": {
Expand Down Expand Up @@ -1264,6 +1263,89 @@
]
},

"com.microsoft.windows.language": {
"name": "Windows Display Language",
"contexts": {
"OS": [
{
"id": "win32",
"version": ">=5.0"
}
]
},
"settingsHandlers": {
"configure1": {
"type": "gpii.windows.registrySettingsHandler",
"options": {
"hKey": "HKEY_CURRENT_USER",
"path": "Control Panel\\Desktop\\MuiCached",
"dataTypes": {
"MachinePreferredUILanguages": "REG_SZ"
}
},
"capabilities": [
"http://registry\\.gpii\\.net/common/language"
],
"capabilitiesTransformations": {
"MachinePreferredUILanguages": {
"transform": {
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/common/language"
}
}
},
"supportedSettings": {
"MachinePreferredUILanguages": {}
}
},
"configure2": {
"type": "gpii.windows.registrySettingsHandler",
"options": {
"hKey": "HKEY_CURRENT_USER",
"path": "Control Panel\\Desktop",
"dataTypes": {
"PreferredUILanguages": "REG_SZ"
}
},
"capabilities": [
"http://registry\\.gpii\\.net/common/language"
],
"capabilitiesTransformations": {
"PreferredUILanguages": {
"transform": {
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/common/language"
}
}
},
"supportedSettings": {
"PreferredUILanguages": {}
}
}
},
"configure": [
"settings.configure1",
"settings.configure2",
{
"type": "gpii.windows.updateLanguage",
"currentLanguage": "${{registry}.HKEY_CURRENT_USER\\Control Panel\\Desktop\\PreferredUILanguages}"
}
],
"restore": [
"settings.configure1",
"settings.configure2",
{
"type": "gpii.windows.updateLanguage",
"currentLanguage": "${{registry}.HKEY_CURRENT_USER\\Control Panel\\Desktop\\PreferredUILanguages}"
}
],
"isInstalled": [
{
"type": "gpii.deviceReporter.alwaysInstalled"
}
]
},

"org.nvda-project": {
"name": "NVDA Screen Reader",
"contexts": {
Expand Down
4 changes: 4 additions & 0 deletions tests/data/preferences/os_win7.json5
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
"EnableShiftLock": 1,
"EnableCompatibilityKeyboard": 1,
"EnableDesktopModeAutoInvoke": 1
},
"http://registry.gpii.net/applications/com.microsoft.windows.language": {
"MachinePreferredUILanguages": "en-US",
"PreferredUILanguages": "en-US"
}
}
}
Expand Down
25 changes: 24 additions & 1 deletion tests/platform/windows/windows-builtIn-testSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,30 @@ gpii.tests.windows.builtIn = [
}
}
}
]
],
"com.microsoft.windows.language": [{
"settings": {
"PreferredUILanguages": "en-US"
},
"options": {
"hKey": "HKEY_CURRENT_USER",
"path": "Control Panel\\Desktop",
"dataTypes": {
"PreferredUILanguages": "REG_SZ"
}
}
}, {
"settings": {
"MachinePreferredUILanguages": "en-US"
},
"options": {
"hKey": "HKEY_CURRENT_USER",
"path": "Control Panel\\Desktop\\MuiCached",
"dataTypes": {
"MachinePreferredUILanguages": "REG_SZ"
}
}
}]
},
"gpii.windows.displaySettingsHandler": {
"com.microsoft.windows.screenResolution": [{
Expand Down