Update update-and-edit-language_dragndrop.bat
This commit is contained in:
parent
36bede11ae
commit
e97ab6105d
|
@ -1,11 +1,13 @@
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
REM Script to provide and easy way to update and edit .ts files for Duckstation.
|
REM Script to provide and easy way to update and edit .ts files for Duckstation.
|
||||||
REM Usage: drag and drop a duckstation .ts file on this batch file
|
REM Usage: drag and drop a duckstation .ts file on this batch file
|
||||||
TITLE Duckstation - Update and Edit .ts files (Drag n Drop)
|
REM Author: RaydenX93
|
||||||
|
REM Credits to Stenzek, Sam Pearman
|
||||||
|
TITLE Duckstation - Create, and Edit .ts files (Drag n Drop)
|
||||||
|
|
||||||
REM Check if an argument is provided
|
REM Check if an argument is provided
|
||||||
SET arg1="%~1"
|
SET arg1="%~1"
|
||||||
IF %arg1%=="" goto noarg
|
IF %arg1%=="" GOTO noarg
|
||||||
|
|
||||||
REM get filename.extension and extension separately
|
REM get filename.extension and extension separately
|
||||||
FOR %%A IN (%arg1%) DO (
|
FOR %%A IN (%arg1%) DO (
|
||||||
|
@ -18,10 +20,46 @@ IF %ext%==.ts GOTO goodfile
|
||||||
|
|
||||||
REM The wrong or no file has been passed
|
REM The wrong or no file has been passed
|
||||||
:noarg
|
:noarg
|
||||||
ECHO Please, drag and drop a .ts file on this batch file to update it and edit it.
|
ECHO ===================================================================
|
||||||
|
ECHO Duckstation - Create, Update and Edit .ts files (Drag n Drop)
|
||||||
|
ECHO ===================================================================
|
||||||
|
ECHO If you want to update and edit an EXISTING translation, drag and drop a .ts file on this batch file.
|
||||||
ECHO.
|
ECHO.
|
||||||
PAUSE
|
ECHO If you want to create a NEW translation, input (y) to start the process.
|
||||||
EXIT
|
ECHO.
|
||||||
|
SET /P answ=Do you want to create a new translation? (y/n)...
|
||||||
|
|
||||||
|
IF %answ%==y (GOTO newlang) ELSE EXIT
|
||||||
|
|
||||||
|
:newlang
|
||||||
|
CLS
|
||||||
|
|
||||||
|
ECHO Please, insert your language code.
|
||||||
|
ECHO.
|
||||||
|
ECHO For the 369-1 2-digit language code:
|
||||||
|
ECHO https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
||||||
|
ECHO.
|
||||||
|
ECHO If you require a country code as well (you probably don't):
|
||||||
|
ECHO https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
|
||||||
|
ECHO.
|
||||||
|
ECHO You can select with your mouse and then CTRL^+C to copy the links above.
|
||||||
|
ECHO.
|
||||||
|
ECHO Examples:
|
||||||
|
ECHO en ^<-- English
|
||||||
|
ECHO en-au ^<-- Australian English
|
||||||
|
ECHO.
|
||||||
|
|
||||||
|
SET /P langcode=Insert your language code...
|
||||||
|
|
||||||
|
CLS
|
||||||
|
IF NOT DEFINED langcode (
|
||||||
|
ECHO Input is invalid. Try again.
|
||||||
|
ECHO.
|
||||||
|
PAUSE
|
||||||
|
GOTO newlang
|
||||||
|
) ELSE (
|
||||||
|
SET filename=duckstation-qt_%langcode%.ts
|
||||||
|
)
|
||||||
|
|
||||||
REM A good .ts file has been passed
|
REM A good .ts file has been passed
|
||||||
:goodfile
|
:goodfile
|
||||||
|
|
Loading…
Reference in New Issue