Skip to content

Commit e58638a

Browse files
committed
Automatically switch language
Inspired by http://type-y.com/2011/04/post-407.html Change-Id: Ifc370b8b28d879bb6397b033d56d5916a9d366f6
1 parent a27eaaf commit e58638a

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

core.bat renamed to runme.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
2-
SET adb="%~dp0bin\adb.exe"
2+
for /f "tokens=3 delims= " %%a in ('chcp') do set lang=%%a
3+
if "%lang%" == "932" (set doc=%~dp0doc\jp) else (set doc=%~dp0doc\en)
4+
SET adb=%~dp0bin\adb.exe
35

46
type "%doc%\01_Thanks.txt"
57
pause

runme_en.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

runme_jp.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)