Skip to content

Commit 37c04c8

Browse files
Add section on localization in readme (#327)
1 parent 94724c2 commit 37c04c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: README.md

+12
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,18 @@ If you are developing on Windows, you can use docker or WSL to run the tests on
250250
docker run -rm -e SQLCMDSERVER=<yourserver> -e SQLCMDUSER=<youruser> -e SQLCMDPASSWORD=<yourpassword> -v i:\git\go-sqlcmd:/go-sqlcmd -w /go-sqlcmd golang:1.16 go test ./...
251251
```
252252

253+
## Localization
254+
A partial localization suppport exists in go-sqlcmd for following languages for user visible content that also existed in ODBC based SQLCMD.
255+
Chinese (Simplified) | Chinese (Traditional) | English (United States) | French | German | Italian | Japanese | Korean | Portuguese (Brazil) | Russian | Spanish
256+
257+
To get localized messages from SQLCMD user needs to set environment variable SQLCMD_LANG to a language tag as per BCP47 convention.
258+
E.g.
259+
```
260+
\git\go-sqlcmd>set SQLCMD_LANG=de-de
261+
\git\go-sqlcmd>.\sqlcmd.exe -w 4
262+
sqlcmd.exe: error: sqlcmd.exe: '-w 4': Der Wert muss größer als 8 und kleiner als 65536 sein.
263+
```
264+
253265
## Contributing
254266

255267
This project welcomes contributions and suggestions. Most contributions require you to agree to a

0 commit comments

Comments
 (0)