Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- :: Define the supported languages array
- set supportedLanguages=af,am,ar,az,be,bg,bn,bs,ca,cs,cy,da,de,dv,el,en,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja,ka,kk,km,kn,ko,ky,lt,lv,mk,ml,mn,mr,ms,mt,nb,ne,nl,nn,no,or,pa,pl,ps,pt,ro,ru,sd,si,sk,sl,sq,sr,sv,sw,ta,te,th,tr,uk,ur,uz,vi,xh,zh,zu
- :: Loop through each language code and create a folder and PHP file for it
- for %%a in (%supportedLanguages%) do (
- :: Create a folder for the language if it doesn't exist
- if not exist "%%a" (
- mkdir "%%a"
- )
- :: Create the PHP file inside the folder
- echo <?php > "%%a\messages.php"
- echo return [ >> "%%a\messages.php"
- echo 'language' => '%%a', >> "%%a\messages.php"
- echo ]; >> "%%a\messages.php"
- echo %%a.php file has been created in the %%a folder.
- )
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement