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:
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.
Just one INI file named DBFview.lng containing multiple language inside as dictionary of each UI.
I hope you enjoy it !
HMG_GetPrivateProfileSectionNames
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
HMG_GetPrivateProfileSectionNames
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- 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
Great idea!
Serge
Serge
There's nothing you can do that can't be done...
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
HMG_GetPrivateProfileSectionNames
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) ?
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- 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
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
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...
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
HMG_GetPrivateProfileSectionNames
Thank you Serge for your interest in this.
This is a simple demo ilustrating who It could be usefil to have just one file for different languages taken from INI files.
This probably happen when I convert it for UNICODE at Notepad++.serge_girard wrote:This works fine except Russian and Bulgarian..
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:No problem for me, but I was wondering how it comes.
Yes, it's a good idea to have it.serge_girard wrote:Besides date format it maybe also nice idea to have comma / decimalpoint SETTINGS for money value?
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein