You are here

[Solution] PortbleApps.com Folders Localization

5 posts / 0 new
Last post
Jhonn
Jhonn's picture
Offline
Last seen: 1 hour 16 min ago
Joined: 2008-10-06 12:32
[Solution] PortbleApps.com Folders Localization

The PortableApps Platform is multilanguage, but the folders "Documents", "Pictures", "Music" and "Videos" always stay in English, but is possible to add multilanguage support in folders, simple modify the "Desktop.ini" and the folders will be changed to OS language (Only Windows -- all versions):

Documents
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
InfoTip=@%SystemRoot%\system32\shell32.dll,-22914
IconFile=..\PortableApps\PortableApps.com\App\DefaultData\FolderIcons\documents.ico
IconIndex=0

Pictures
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21779
InfoTip=@%SystemRoot%\system32\shell32.dll,-12688
IconFile=..\..\PortableApps\PortableApps.com\App\DefaultData\FolderIcons\pictures.ico
IconIndex=0

Music
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21790
InfoTip=@%SystemRoot%\system32\shell32.dll,-12689
IconFile=..\..\PortableApps\PortableApps.com\App\DefaultData\FolderIcons\music.ico
IconIndex=0

Videos
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21791
InfoTip=@%SystemRoot%\system32\shell32.dll,-12690
IconFile=..\..\PortableApps\PortableApps.com\App\DefaultData\FolderIcons\videos.ico
IconIndex=0

________________________________________________________________________________________

Sorry for this English, I'm Brazilian

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 7 years 5 days ago
Joined: 2007-04-15 21:08
Not optimal

The problem here is that while on Vista you'll get "Documents", "Pictures", "Music" and "Videos", on XP or earlier you'll get "My " prefixed onto them. This subject has been mentioned once before (only once, I believe), and nothing was decided at the time... I'm thinking that possibly after 2.0 it'd be worth putting a bit of effort into it - all it needs to be is a single DLL file with a string table for them. Oh yeah, also note that it'll only work in Explorer, and it'll be based on the OS language, not the PAP language. But I'd guess that you know that seeing as you know how to do the rest of it Smile

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

adude159753
Offline
Last seen: 11 years 4 months ago
Joined: 2009-04-18 22:51
Folder Icons

Do you think if I changed this line:
IconFile=..\..\PortableApps\PortableApps.com\App\DefaultData\FolderIcons

I would also be able to change the folder icon?

-adude159753, adude1597535, thorn, essentiel
--whomever you choose to remember me by in the previous and current games I have and am playing.
-Word to the wise: Only with hard work can you do; only with persistance can you achieve.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 7 years 5 days ago
Joined: 2007-04-15 21:08
Yes

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

adude159753
Offline
Last seen: 11 years 4 months ago
Joined: 2009-04-18 22:51
Thanks

Cool, thanks for confirming that for me.

-adude159753, adude1597535, thorn, essentiel
--whomever you choose to remember me by in the previous and current games I have and am playing.
-Word to the wise: Only with hard work can you do; only with persistance can you achieve.

Log in or register to post comments