HMG_GetPrivateProfileSectionNames

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG_GetPrivateProfileSectionNames

Post by Pablo César »

Sometimes, we lose some small details, but it can be very important for keeping on mind.

Since last this Changelog, we can count now with this new function for INI files:
Screen1.png
Screen1.png (108.69 KiB) Viewed 3963 times
HMG_GetPrivateProfileSectionNames and HMG_GetPrivateProfileSection:

These functions are going to be very useful, specially when become the great day to abstract all languages strings from our source in HMG and be relocated at INI files.

The great idea IMHO, should be in each INI file for each application, for each resources of HMG.

This would give us more flexibility to multilanguages without coding at our libraries.

Imagine to have just only one INI file for IDE languages. Its INI names, can be named by application name or function name in a specific folder containing all dictionaries.

Would it be great, don't you think ?

This demo was based on DBFview from Grigory Filatov, really very good work. Thank you Grigory for sharing. :)
Tela01.png
Tela01.png (214.67 KiB) Viewed 3963 times
Just one INI file named DBFview.lng containing multiple language inside as dictionary of each UI.
Languages (Source files).rar
(14.45 KiB) Downloaded 290 times
Languages (Executable file).rar
(1.13 MiB) Downloaded 1748 times
I hope you enjoy it ! :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMG_GetPrivateProfileSectionNames

Post by bpd2000 »

Nice
+1
BPD
Convert Dream into Reality through HMG
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG_GetPrivateProfileSectionNames

Post by serge_girard »

Great idea!

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG_GetPrivateProfileSectionNames

Post by Pablo César »

Thank you guys !

Yes I believe it's a good idea. Even if we can think in another solution for multilanguage dictionary (labels, captions, messages to user) we will have to count with an ch or ini files anyway... the main problem that we will see a solution to avoid to repass these files in our applications. Probably making thru resource file (.RC) ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG_GetPrivateProfileSectionNames

Post by serge_girard »

Pablo,

This works fine except Russian and Bulgarian..? No problem for me, but I was wondering how it comes.
Besides date format it maybe also nice idea to have comma / decimalpoint SETTINGS for money value?

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG_GetPrivateProfileSectionNames

Post by Pablo César »

Thank you Serge for your interest in this.
serge_girard wrote:This works fine except Russian and Bulgarian..
This probably happen when I convert it for UNICODE at Notepad++.
serge_girard wrote:No problem for me, but I was wondering how it comes.
IMHO, the better option is to get from each language for who is native of it and help in the future with translations.
serge_girard wrote:Besides date format it maybe also nice idea to have comma / decimalpoint SETTINGS for money value?
Yes, it's a good idea to have it.

This is a simple demo ilustrating who It could be usefil to have just one file for different languages taken from INI files.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply