Downloads:

11,725

Downloads of v 2.4.0.0:

538

Last Update:

11 Apr 2019

Package Maintainer(s):

Software Author(s):

  • Paddy Xu

Tags:

locale-emulator locale emulator

Locale Emulator

This is not the latest version of Locale Emulator available.

2.4.0.0 | Updated: 11 Apr 2019

Downloads:

11,725

Downloads of v 2.4.0.0:

538

Maintainer(s):

Software Author(s):

  • Paddy Xu

Locale Emulator 2.4.0.0

This is not the latest version of Locale Emulator available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Locale Emulator, run the following command from the command line or from PowerShell:

>

To upgrade Locale Emulator, run the following command from the command line or from PowerShell:

>

To uninstall Locale Emulator, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade locale-emulator -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade locale-emulator -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure locale-emulator installed
  win_chocolatey:
    name: locale-emulator
    state: present
    version: 2.4.0.0
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'locale-emulator' do
  action    :install
  version  '2.4.0.0'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: locale-emulator,
    Version: 2.4.0.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller locale-emulator
{
   Name     = 'locale-emulator'
   Ensure   = 'Present'
   Version  = '2.4.0.0'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'locale-emulator':
  provider => 'chocolatey',
  ensure   => '2.4.0.0',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install locale-emulator version="2.4.0.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator Pauby on 17 Apr 2019.

Description

Locale Emulator is a tool similar to MS AppLocale and NTLEA, providing a simulation function that can make an application recognize your OS as in a language other than the real one. It is quite useful when you are trying to play country-specific games.

screenshot


tools\chocolateyinstall.ahk
#NoEnv
#NoTrayIcon
;#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetTitleMatchMode, 1  ; A windows's title must start with the specified WinTitle to be a match.
SetControlDelay -1

winTitle1 = % "LE Context Menu Installer - V"
WinWait, %winTitle1%, , 20
WinActivate
ControlClick, WindowsForms10.BUTTON.app.0.141b42a_r9_ad12, %winTitle1%

; Install finished.
winTitle2 = % "LE Context Menu Installer"
WinWait, %winTitle2% ahk_class #32770, Install finished., 5 ;
ControlClick, OK, %winTitle2% ahk_class #32770,,,NA

WinActivate, %winTitle1%
WinClose, %winTitle1%
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"  

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = $toolsDir
  file          = "$toolsDir\LEInstaller.exe"

  url           = 'https://github.com/xupefei/Locale-Emulator/releases/download/v2.4.0.0/Locale.Emulator.2.4.0.0.zip'
  checksum      = '94FC8351CF99941D1D8739E384753D8A085A075DDA4A86BC6049EE7EC4F49720'
  checksumType  = 'sha256'   
}

Install-ChocolateyZipPackage @packageArgs

Start-Process "AutoHotKey" -Verb runas -ArgumentList "`"$toolsDir\chocolateyinstall.ahk`""
Install-ChocolateyInstallPackage @packageArgs

#Install start menu shortcuts
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutFilePath = Join-Path $programs "Locale Emulator GUI.lnk"
$targetPath = Join-Path $toolsDir "LEGUI.exe"
Install-ChocolateyShortcut -shortcutFilePath $shortcutFilePath -targetPath $targetPath

Write-Warning 'Launch LEGUI or "Locale Emulator GUI" from start menu to access settings.'
tools\chocolateyuninstall.ahk
#NoEnv
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetTitleMatchMode, 1  ; A windows's title must start with the specified WinTitle to be a match.
SetControlDelay 0

; Welcome to Locale Emulator.
winTitle1 = % "LE Context Menu Installer - V"
WinWait, %winTitle1% ahk_class WindowsForms10.Window.8.app.0.141b42a_r9_ad1, Welcome to Locale Emulator., 30 ;
ControlClick, WindowsForms10.BUTTON.app.0.141b42a_r9_ad13, %winTitle1%

; Uninstall finished.
winTitle2 = % "LE Context Menu Installer"
WinWait, %winTitle2% ahk_class #32770, Uninstall finished., 30 ; 
ControlClick, OK, %winTitle2% ahk_class #32770, Uninstall finished.,,NA

WinActivate, %winTitle1%
WinClose, %winTitle1%
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

# Remove registry changes.
Start-Process "AutoHotKey" -Verb runas -ArgumentList "`"$toolsDir\chocolateyuninstall.ahk`""
Start-ChocolateyProcessAsAdmin -ExeToRun $toolsDir\LEinstaller.exe

# Remove link in start menu.
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutFilePath = Join-Path $programs "Locale Emulator GUI.lnk"
if(Test-Path $shortcutFilePath) { Remove-Item $shortcutFilePath }

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Locale Emulator 2.4.0.0 538 Thursday, April 11, 2019 Approved
Discussion for the Locale Emulator Package

Ground Rules:

  • This discussion is only about Locale Emulator and the Locale Emulator package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Locale Emulator, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus