@echo off&set FileName=%~n0&shift :: ============================================= :: AutoHelp PlugLab Concept: 2006 by Reatogo :: ============================================= :: Help Info: :: ======================= set Routine_Type=1 :: 1=Getting Data 2=Prompts 3=Getting Files 4=Creating Files 5=General :: 1r 2r 3r = always refresh (includes localised text) set Routine_Vers=1 set Routine_Date=2007-02-15 set RoutineName=VarsLocalStrings set RoutineAuthor=Siegfried set Using_work_from= set Example_call_1=%%VarsLocalStrings%% set Example_call_2= set Example_call_3= set text_01=Defines the variables listed below. set text_02=. set text_03=This routine is normally called during the initialisation and extracts the localized strings from "shell32.dll" using Sherpya´s "StringExtractor.exe". set text_04=. set text_05=The resulting "%%temp%%\PlugLabTemp\%%OSLang%%_LocalStringVars.cmd" set text_06=is kept in "%%temp%%\PlugLabTemp" and during the next configuration run the existing "%%OSLang%%_LocalStringVars.cmd" is just called, thus bypassing the parsing run. set text_07=. set text_08=The variables represent the translation of localized folder names and may be used as elements to "build" localized paths e.g. in a start-CMD. They do not expand to the path to a folder but only to its local name. set text_09=. set text_10=NOTE: The listing below may not reflect your locale if you started this help file before a refresh of the help structure on your system. It will, however, have YOUR local strings once this file has been refreshed on YOUR system. set text_11=. set text_12=%%_docsandsettings_%% = %_docsandsettings_% set text_13=%%_localsettings_%% = Lokale Einstellungen set text_14=%%_appdata_%% = %_localsettings_% set text_15=%%_desktop_%% = %_desktop_% set text_16=%%_commondocs_%% = %_commondocs_% set text_17=%%_docs_%% = %_docs_% set text_18=%%_mydocs_%% = %_mydocs_% set text_19=%%_favorites_%% = %_favorites_% set text_20=%%_programs_%% = %_programs_% set text_21=%%_startmenu_%% = %_startmenu_% set text_22=%%_startup_%% = %_startup_% set text_23=%%_compict_%% = %_compict_% set text_24=%%_commusic_%% = %_commusic_% set text_25=%%_comvideo_%% = %_comvideo_% set text_26=%%_mypict_%% = %_mypict_% set text_27=%%_mymusic_%% = %_mymusic_% set text_28=%%_myvideo_%% = %_myvideo_% set text_29=%%_admtools_%% = %_admtools_% set text_30=%%_accessories_%% = %_accessories_% set text_31=%%_nethood_%% = %_nethood_% set text_32=%%_printhood_%% = %_printhood_% set text_33=%%_recent_%% = %_recent_% set text_34=%%_sendto_%% = %_sendto_% set text_35=%%_templates_%% = %_templates_% set text_36=%%_icache_%% = %_icache_% set text_37=%%_cookies_%% = %_cookies_% set text_38=%%_history_%% = %_history_% if "%~1" == "GetHelp" goto :EOF :: ============================================= if not defined OSLang %VarsSystemEtc% if not defined OSLang goto :EOF if not exist start.inf.txt echo.&echo %* if exist "%temp%\PlugLabTemp\%OSLang%_LocalStringVars.cmd" call "%temp%\PlugLabTemp\%OSLang%_LocalStringVars.cmd"&goto DONE :: PARSE %FindApp% "StringExtractor.exe" echo Processing: parsing for local strings ... echo :: Local strings for OSlang %OSLang%> "%temp%\PlugLabTemp\%OSLang%_LocalStringVars.cmd" SETLOCAL ENABLEDELAYEDEXPANSION for %%i in ( 21771_docsandsettings_ 21774_localsettings_ 21765_appdata_ 21769_desktop_ 21785_commondocs_ 21770_docs_ 30485_mydocs_ 12693_favorites_ 21782_programs_ 21786_startmenu_ 21787_startup_ 28997_compict_ 28995_commusic_ 28996_comvideo_ 21779_mypict_ 21790_mymusic_ 21791_myvideo_ 21762_admtools_ 21761_accessories_ -9108_nethood_ -9075_printhood_ -9096_recent_ -9098_sendto_ -9078_templates_ -9074_icache_ -9073_cookies_ -9072_history_ ) do ( set tempName=%%i if "!tempName:~0,+1!" == "-" (set No=!tempName:~1,+5!) else (set No=!tempName:~0,+5!) set NAME=!tempName:~5! for /f "tokens=*" %%a in ('%APPs%\StringExtractor.exe !No! shell32.dll') do ( echo set !NAME!=%%a>> "%temp%\PlugLabTemp\%OSLang%_LocalStringVars.cmd" ) ) ENDLOCAL if exist "%temp%\PlugLabTemp\%OSLang%_LocalStringVars.cmd" call "%temp%\PlugLabTemp\%OSLang%_LocalStringVars.cmd" :DONE :: These are required for the %DOCS% calls: set SYS32=%SystemRoot%\System32 :: Localized expanded in the folder of the plugin set PLUG_USER=PROFILES\Default User set PLUG_ALLUSER=PROFILES\All Users set PLUG_APPDATA=PROFILES\Default User\%_appdata_% set PLUG_ALLAPPDATA=PROFILES\All Users\%_appdata_% set PLUG_QUICKLAUNCH=PROFILES\Default User\%_appdata_%\Microsoft\Internet Explorer\Quick Launch set PLUG_ICACHE=PROFILES\Default User\%_localsettings_%\%_icache_% set PLUG_HISTORY=PROFILES\Default User\%_localsettings_%\%_history_% set PLUG_MYDOCS=PROFILES\Default User\%_mydocs_% set PLUG_MYPICT=PROFILES\Default User\%_mydocs_%\%_mypict_% set PLUG_MYMUSIC=PROFILES\Default User\%_mydocs_%\%_mymusic_% set PLUG_MYVIDEO=PROFILES\Default User\%_mydocs_%\%_myvideo_% set PLUG_DESKTOP=PROFILES\Default User\%_desktop_% set PLUG_FAVORITES=PROFILES\Default User\%_favorites_% set PLUG_COOKIES=PROFILES\Default User\%_cookies_% set PLUG_PRINTHOOD=PROFILES\Default User\%_printhood_% set PLUG_NETHOOD=PROFILES\Default User\%_printhood_% set PLUG_SENDTO=PROFILES\Default User\%_sendto_% set PLUG_TEMPLATES=PROFILES\Default User\%_templates_% set PLUG_RECENT=PROFILES\Default User\%_recent_% set PLUG_ADMTOOLS=PROFILES\Default User\%_startmenu_%\%_programs_%\%_admtools_% set PLUG_ACCESSORIES=PROFILES\Default User\%_startmenu_%\%_programs_%\%_accessories_% set PLUG_STARTUP=PROFILES\Default User\%_startmenu_%\%_programs_%\%_startup_% set PLUG_ALL_QUICKLAUNCH=PROFILES\All Users\%_appdata_%\Microsoft\Internet Explorer\Quick Launch set PLUG_ALL_DOCS=PROFILES\All Users\%_commondocs_% set PLUG_ALL_PICT=PROFILES\All Users\%_commondocs_%\%_compict_% set PLUG_ALL_MUSIC=PROFILES\All Users\%_commondocs_%\%_commusic_% set PLUG_ALL_VIDEO=PROFILES\All Users\%_commondocs_%\%_comvideo_% set PLUG_ALL_DESKTOP=PROFILES\All Users\%_desktop_% set PLUG_ALL_FAVORITES=PROFILES\All Users\%_favorites_% set PLUG_ALL_TEMPLATES=PROFILES\All Users\%_templates_% set PLUG_ALL_ADMTOOLS=PROFILES\All Users\%_startmenu_%\%_programs_%\%_admtools_% set PLUG_ALL_ACCESSORIES=PROFILES\All Users\%_startmenu_%\%_programs_%\%_accessories_% set PLUG_ALL_STARTUP=PROFILES\All Users\%_startmenu_%\%_programs_%\%_startup_% :: Localized expanded on host system: pushd "%USERPROFILE%" pushd ..\ set HOST_PROFILE=%CD% popd popd set HOST_USER=%USERPROFILE% set HOST_ALLUSER=%HOST_PROFILE%\All Users set HOST_APPDATA=%APPDATA% set HOST_ALLAPPDATA=%HOST_PROFILE%\All Users\%_appdata_% set HOST_QUICKLAUNCH=%HOST_USER%\%_appdata_%\Microsoft\Internet Explorer\Quick Launch set HOST_ICACHE=%HOST_USER%\%_localsettings_%\%_icache_% set HOST_HISTORY=%HOST_USER%\%_localsettings_%\%_history_% set HOST_MYDOCS=%HOST_USER%\%_mydocs_% set HOST_MYPICT=%HOST_USER%\%_mydocs_%\%_mypict_% set HOST_MYMUSIC=%HOST_USER%\%_mydocs_%\%_mymusic_% set HOST_MYVIDEO=%HOST_USER%\%_mydocs_%\%_myvideo_% set HOST_DESKTOP=%HOST_USER%\%_desktop_% set HOST_FAVORITES=%HOST_USER%\%_favorites_% set HOST_COOKIES=%HOST_USER%\%_cookies_% set HOST_PRINTHOOD=%HOST_USER%\%_printhood_% set HOST_NETHOOD=%HOST_USER%\%_printhood_% set HOST_SENDTO=%HOST_USER%\%_sendto_% set HOST_TEMPLATES=%HOST_USER%\%_templates_% set HOST_RECENT=%HOST_USER%\%_recent_% set HOST_ADMTOOLS=%HOST_USER%\%_startmenu_%\%_programs_%\%_admtools_% set HOST_ACCESSORIES=%HOST_USER%\%_startmenu_%\%_programs_%\%_accessories_% set HOST_STARTUP=%HOST_USER%\%_startmenu_%\%_programs_%\%_startup_% set HOST_ALL_QUICKLAUNCH=%HOST_PROFILE%\All Users\%_appdata_%\Microsoft\Internet Explorer\Quick Launch set HOST_ALL_DOCS=%HOST_PROFILE%\All Users\%_commondocs_% set HOST_ALL_PICT=%HOST_PROFILE%\All Users\%_commondocs_%\%_compict_% set HOST_ALL_MUSIC=%HOST_PROFILE%\All Users\%_commondocs_%\%_commusic_% set HOST_ALL_VIDEO=%HOST_PROFILE%\All Users\%_commondocs_%\%_comvideo_% set HOST_ALL_DESKTOP=%HOST_PROFILE%\All Users\%_desktop_% set HOST_ALL_FAVORITES=%HOST_PROFILE%\All Users\%_favorites_% set HOST_ALL_TEMPLATES=%HOST_PROFILE%\All Users\%_templates_% set HOST_ALL_ADMTOOLS=%HOST_PROFILE%\All Users\%_startmenu_%\%_programs_%\%_admtools_% set HOST_ALL_ACCESSORIES=%HOST_PROFILE%\All Users\%_startmenu_%\%_programs_%\%_accessories_% set HOST_ALL_STARTUP=%HOST_PROFILE%\All Users\%_startmenu_%\%_programs_%\%_startup_% goto :EOF :: =============================================