Skip to content

Commit 5022252

Browse files
authored
langue + changement de TyperTools en TypeR
1 parent 172139a commit 5022252

File tree

2 files changed

+145
-13
lines changed

2 files changed

+145
-13
lines changed

install_mac.sh

Lines changed: 92 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,96 @@
11
#!/bin/sh
22

33
set -e
4+
5+
# Detect system language
6+
LANGUAGE=$(defaults read -g AppleLocale | cut -d"_" -f1)
7+
8+
# Messages in English
9+
MSG_INSTALL_EN="Photoshop extension TypeR v1.0.0 will be installed."
10+
MSG_CLOSE_PHOTOSHOP_EN="Close Photoshop (if it is open)."
11+
MSG_PRESS_KEY_EN="Press any key to continue"
12+
MSG_INSTALL_COMPLETE_EN="Installation completed."
13+
MSG_OPEN_PHOTOSHOP_EN="Open Photoshop and in the menu click the following: [Window] > [Extensions] > [TypeR]"
14+
MSG_PRESS_ENTER_EN="Press Enter to continue"
15+
MSG_CREDITS_EN="Thanks a lot to Swirt for TyperTools and SeanR for this fork."
16+
MSG_DISCORD_EN="ScanR's Discord if you need help: https://discord.com/invite/Pdmfmqk"
17+
18+
# Messages in French
19+
MSG_INSTALL_FR="L'extension Photoshop TypeR v1.0.0 sera installée."
20+
MSG_CLOSE_PHOTOSHOP_FR="Fermez Photoshop (s'il est ouvert)."
21+
MSG_PRESS_KEY_FR="Appuyez sur une touche pour continuer"
22+
MSG_INSTALL_COMPLETE_FR="Installation terminée."
23+
MSG_OPEN_PHOTOSHOP_FR="Ouvrez Photoshop et dans le menu cliquez sur : [Fenêtre] > [Extensions] > [TypeR]"
24+
MSG_PRESS_ENTER_FR="Appuyez sur Entrée pour continuer"
25+
MSG_CREDITS_FR="Merci beaucoup à Swirt pour TyperTools et SeanR pour ce fork."
26+
MSG_DISCORD_FR="Discord de ScanR si besoin d'aide : https://discord.com/invite/Pdmfmqk"
27+
28+
# Messages in Spanish
29+
MSG_INSTALL_ES="La extensión de Photoshop TypeR v1.0.0 será instalada."
30+
MSG_CLOSE_PHOTOSHOP_ES="Cierra Photoshop (si está abierto)."
31+
MSG_PRESS_KEY_ES="Presiona cualquier tecla para continuar"
32+
MSG_INSTALL_COMPLETE_ES="Instalación completada."
33+
MSG_OPEN_PHOTOSHOP_ES="Abre Photoshop y en el menú haz clic en: [Ventana] > [Extensiones] > [TypeR]"
34+
MSG_PRESS_ENTER_ES="Presiona Enter para continuar"
35+
MSG_CREDITS_ES="Muchas gracias a Swirt por TyperTools y a SeanR por este fork."
36+
MSG_DISCORD_ES="Discord de ScanR si necesitas ayuda: https://discord.com/invite/Pdmfmqk"
37+
38+
# Messages in Portuguese
39+
MSG_INSTALL_PT="A extensão Photoshop TypeR v1.0.0 será instalada."
40+
MSG_CLOSE_PHOTOSHOP_PT="Feche o Photoshop (se estiver aberto)."
41+
MSG_PRESS_KEY_PT="Pressione qualquer tecla para continuar"
42+
MSG_INSTALL_COMPLETE_PT="Instalação concluída."
43+
MSG_OPEN_PHOTOSHOP_PT="Abra o Photoshop e no menu clique em: [Janela] > [Extensões] > [TypeR]"
44+
MSG_PRESS_ENTER_PT="Pressione Enter para continuar"
45+
MSG_CREDITS_PT="Muito obrigado ao Swirt pelo TyperTools e ao SeanR por este fork."
46+
MSG_DISCORD_PT="Discord do ScanR se precisar de ajuda: https://discord.com/invite/Pdmfmqk"
47+
48+
# Set messages based on system language
49+
if [ "$LANGUAGE" = "fr" ]; then
50+
MSG_INSTALL=$MSG_INSTALL_FR
51+
MSG_CLOSE_PHOTOSHOP=$MSG_CLOSE_PHOTOSHOP_FR
52+
MSG_PRESS_KEY=$MSG_PRESS_KEY_FR
53+
MSG_INSTALL_COMPLETE=$MSG_INSTALL_COMPLETE_FR
54+
MSG_OPEN_PHOTOSHOP=$MSG_OPEN_PHOTOSHOP_FR
55+
MSG_PRESS_ENTER=$MSG_PRESS_ENTER_FR
56+
MSG_CREDITS=$MSG_CREDITS_FR
57+
MSG_DISCORD=$MSG_DISCORD_FR
58+
elif [ "$LANGUAGE" = "es" ]; then
59+
MSG_INSTALL=$MSG_INSTALL_ES
60+
MSG_CLOSE_PHOTOSHOP=$MSG_CLOSE_PHOTOSHOP_ES
61+
MSG_PRESS_KEY=$MSG_PRESS_KEY_ES
62+
MSG_INSTALL_COMPLETE=$MSG_INSTALL_COMPLETE_ES
63+
MSG_OPEN_PHOTOSHOP=$MSG_OPEN_PHOTOSHOP_ES
64+
MSG_PRESS_ENTER=$MSG_PRESS_ENTER_ES
65+
MSG_CREDITS=$MSG_CREDITS_ES
66+
MSG_DISCORD=$MSG_DISCORD_ES
67+
elif [ "$LANGUAGE" = "pt" ]; then
68+
MSG_INSTALL=$MSG_INSTALL_PT
69+
MSG_CLOSE_PHOTOSHOP=$MSG_CLOSE_PHOTOSHOP_PT
70+
MSG_PRESS_KEY=$MSG_PRESS_KEY_PT
71+
MSG_INSTALL_COMPLETE=$MSG_INSTALL_COMPLETE_PT
72+
MSG_OPEN_PHOTOSHOP=$MSG_OPEN_PHOTOSHOP_PT
73+
MSG_PRESS_ENTER=$MSG_PRESS_ENTER_PT
74+
MSG_CREDITS=$MSG_CREDITS_PT
75+
MSG_DISCORD=$MSG_DISCORD_PT
76+
else
77+
MSG_INSTALL=$MSG_INSTALL_EN
78+
MSG_CLOSE_PHOTOSHOP=$MSG_CLOSE_PHOTOSHOP_EN
79+
MSG_PRESS_KEY=$MSG_PRESS_KEY_EN
80+
MSG_INSTALL_COMPLETE=$MSG_INSTALL_COMPLETE_EN
81+
MSG_OPEN_PHOTOSHOP=$MSG_OPEN_PHOTOSHOP_EN
82+
MSG_PRESS_ENTER=$MSG_PRESS_ENTER_EN
83+
MSG_CREDITS=$MSG_CREDITS_EN
84+
MSG_DISCORD=$MSG_DISCORD_EN
85+
fi
86+
487
cat << EOF
5-
Photoshop extension Typer Tools v1.4.9 will be installed.
88+
$MSG_INSTALL
689
7-
Close Photoshop (if it is open).
90+
$MSG_CLOSE_PHOTOSHOP
891
992
EOF
10-
read -n 1 -p "Press any key to continue"
93+
read -n 1 -p "$MSG_PRESS_KEY"
1194
echo
1295

1396
SRCDIR=$(cd "$(dirname "$0")" && pwd)
@@ -47,9 +130,12 @@ fi
47130

48131
cat << EOF
49132
50-
Installation completed.
51-
Open Photoshop and in the menu click the following: [Window] > [Extensions] > [Typer Tools]
133+
$MSG_INSTALL_COMPLETE
134+
$MSG_OPEN_PHOTOSHOP
135+
136+
$MSG_CREDITS
137+
$MSG_DISCORD
52138
53139
EOF
54-
read -n 1 -p "Press Enter to continue"
140+
read -n 1 -p "$MSG_PRESS_ENTER"
55141
echo

install_win.cmd

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,55 @@
11
@echo off
2-
echo Photoshop extension Typer Tools v1.4.9 will be installed.
2+
setlocal EnableDelayedExpansion
3+
4+
rem Detect the system language
5+
for /f "tokens=3" %%a in ('reg query "HKCU\Control Panel\International" /v LocaleName 2^>nul') do (
6+
set locale=%%a
7+
)
8+
9+
rem Set messages based on detected language
10+
if "%locale:~0,2%"=="fr" (
11+
set msg_install="L'extension Photoshop TypeR v1.0.0 sera installée."
12+
set msg_close="Fermez Photoshop (s'il est ouvert)."
13+
set msg_complete="Installation terminée."
14+
set msg_open="Ouvrez Photoshop et dans le menu supérieur cliquez sur : [Fenêtre] ^> [Extensions] ^> [TypeR]"
15+
set msg_pause="Appuyez sur une touche pour continuer..."
16+
set msg_credits="Merci beaucoup à Swirt pour TyperTools et SeanR pour ce fork."
17+
set msg_discord="Discord de ScanR si besoin d'aide : https://discord.com/invite/Pdmfmqk"
18+
) else if "%locale:~0,2%"=="es" (
19+
set msg_install="La extensión de Photoshop TypeR v1.0.0 se instalará."
20+
set msg_close="Cierra Photoshop (si está abierto)."
21+
set msg_complete="Instalación completada."
22+
set msg_open="Abre Photoshop y en el menú superior haz clic en lo siguiente: [Ventana] ^> [Extensiones] ^> [TypeR]"
23+
set msg_pause="Presiona cualquier tecla para continuar..."
24+
set msg_credits="Muchas gracias a Swirt por TyperTools y a SeanR por este fork."
25+
set msg_discord="Discord de ScanR si necesitas ayuda: https://discord.com/invite/Pdmfmqk"
26+
) else if "%locale:~0,2%"=="pt" (
27+
set msg_install="A extensão do Photoshop TypeR v1.0.0 será instalada."
28+
set msg_close="Feche o Photoshop (se estiver aberto)."
29+
set msg_complete="Instalação concluída."
30+
set msg_open="Abra o Photoshop e no menu superior clique em: [Janela] ^> [Extensões] ^> [TypeR]"
31+
set msg_pause="Pressione qualquer tecla para continuar..."
32+
set msg_credits="Muito obrigado a Swirt pelo TyperTools e a SeanR por este fork."
33+
set msg_discord="Discord do ScanR se precisar de ajuda: https://discord.com/invite/Pdmfmqk"
34+
) else (
35+
set msg_install="Photoshop extension TypeR v1.0.0 will be installed."
36+
set msg_close="Close Photoshop (if it is open)."
37+
set msg_complete="Installation completed."
38+
set msg_open="Open Photoshop and in the upper menu click the following: [Window] ^> [Extensions] ^> [TypeR]"
39+
set msg_pause="Press any key to continue..."
40+
set msg_credits="Many thanks to Swirt for TyperTools and SeanR for this fork."
41+
set msg_discord="ScanR's Discord if you need help: https://discord.com/invite/Pdmfmqk"
42+
)
43+
44+
echo %msg_install%
345
echo.
4-
echo Close Photoshop (if it is open).
46+
echo %msg_close%
547
echo.
48+
echo %msg_pause%
649
PAUSE
750

8-
setlocal EnableDelayedExpansion
951
for /l %%x in (6, 1, 12) do (
10-
reg query HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.%%x 2>nul
52+
reg query HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.%%x 2>nul
1153
if !errorlevel! equ 0 (
1254
reg add HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.%%x /t REG_SZ /v PlayerDebugMode /d 1 /f
1355
)
@@ -29,8 +71,12 @@ if exist __storage (
2971
)
3072

3173
echo. & echo.
32-
echo Installation completed.
33-
echo Open Photoshop and in the upper menu click the following: [Window] ^> [Extensions] ^> [Typer Tools]
74+
echo %msg_complete%
75+
echo %msg_open%
76+
echo.
77+
echo %msg_credits%
78+
echo %msg_discord%
3479
echo.
3580

36-
PAUSE
81+
echo %msg_pause%
82+
PAUSE

0 commit comments

Comments
 (0)