OliverK's blogMore Useful Code: Language Reading/SettingSubmitted by OliverK on November 21, 2008 - 3:32pm
Here's the code I used for PNotes/ATPad. They set the language through a file name, not using the environmental variables or using international language codes. GetAppLanguage:
ReadEnvStr $APPLANGUAGE "PortableApps.comLanguageCode"
StrCmp $APPLANGUAGE de Deutsch
StrCmp $APPLANGUAGE en_us English
StrCmp $APPLANGUAGE es_la Spanish
StrCmp $APPLANGUAGE it Italian
StrCmp $APPLANGUAGE jp Japanese
StrCmp $APPLANGUAGE pl Polski IntelliLaunch Binaries :DSubmitted by OliverK on November 7, 2008 - 11:21am
Hookay, I've created binaries for you guys. Course, only certain people are going to read the blog :D So only a few are going to know. Alright, I've tested most of the stuff. Registry is checked and config is checked. Now, I'll let you decimate what's left. A long long time ago, in a galaxy far far away . . . IntelliLaunch was a couple of things. A challenge to myself to see if I could actually pull of something this complex. By configuring the INI properly, you can portablize almost any program. Project Status Report.Submitted by OliverK on November 6, 2008 - 2:59pm
About PNotes and ATPad. I do plan on making a dev test available for the Release candidates. However, I can't guarantee that I'm going to make dev tests for the test releases. IntelliLaunch is CodedSubmitted by OliverK on October 20, 2008 - 10:31am
Okay, I finished coding IntelliLaunch. So, here's the deal- I'm posting this in code form for right now. You should use the standard portableapps format, in the following setup: *App Coding IntelliLaunch . . .Submitted by OliverK on October 13, 2008 - 10:33am
Realize that this thing is only half coded. And the logic flow will likely change. Configuration INI (Store in AppNamePortable\Data\): #IF YOU DON"T USE A VARIABLE LEAVE IT AS FALSE!!!!!!!!!!!!!!!!!!!!!!!!!!!! [Application] ExeName= ExecutableDirectory= CheckRunning=True #Normally, you should leave "CheckRunning" set to true [Settings] HKCU= HKLM= Config_File= Manipulate_Set_Out_Path= #Utilize "True" or "False" for each settings storage place. [RegistryBranch] A Generic Launcher . . .Submitted by OliverK on October 9, 2008 - 2:41pm
K, I haven't actually written this yet, but what do you think of a generic launcher configured via a INI? It would need to handle: I'm not worried about a splash, if I did have a splash, it'd be something similar to PortaLuanch. Any ideas? SetOutPathSubmitted by OliverK on October 3, 2008 - 1:59pm
Let's talk about the code Applications act funny. Some of them understand where they are and where to look, regardless of their location. some of them however, get confused. And some of them act really funny. A useful bit of code . . .Submitted by OliverK on September 29, 2008 - 6:22pm
SkipSplashScreen: ;=== Check for data files IfFileExists "$PROGRAMDIRECTORY\config.conf" GetPassedParameters ;=== settings already in program directory IfFileExists "$SETTINGSDIRECTORY\config.conf" MoveSettings ;=== settings found in data directory ;=== Copy the default settings files StrCmp $DEFAULTLOCATION "true" "" GetPassedParameters ;=== if not default location, user is on their own CreateDirectory "$SETTINGSDIRECTORY" CopyFiles /SILENT "$EXEDIR\App\DefaultData\settings\*.*" "$SETTINGSDIRECTORY\" App UpdatesSubmitted by OliverK on September 22, 2008 - 8:12pm
Okay, I don't really want to post this in the forums, but I figure I cn blog it here. I am currently working on ATPad; VTi; Generator; and xVideoServiceThief Actually, xVideoServiceTheif is done, I just haven't posted it yet. I talked to John about it, and he wasn't to enthused about the name. Also, its stuck in ALPHA. It works greet and all, but I think John would like for it to go into beta. Anyway, if you wants it, you can add a comment to the blog saying so, or just saying that the blog sucks, either way-it'd be nice to know someone's reading. I has a blog . . .Submitted by OliverK on September 15, 2008 - 10:32am
John gave me the developer permissions, so, now I has a blog. I know! I'll post code examples here. Cheerio! |
