Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Locale library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2010, 10:44 AM
Basic4ppc Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 571
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default Locale library

Locale library is a library which will help you making your programs work in many languages.

You can get information about the current culture of your device or desktop PC like specific calendar properties, date formats, number formats, currency symbol and much more.

The most powerful object is the Translator object. You can make your applications run in many languages very easy.

Currently there are four object types in this library.

The CultureInfo object provides much information about a culture setting.
The DateTime object has powerful formatting functions for dates and times.
The Numeric object has formatting functions for numbers.
The Translator objects helps you making your applications available in many languages.

History:
  • V1.0: initial release
  • V1.1 : New Numeric object, Sep"a"rator typo fixed, Parse() in DateTime object (See post #5 for more info)
  • V1.2 : New Translator object (See post #6 for more info)
Attached Files
File Type: zip Locale1_2.zip (36.1 KB, 115 views)
__________________
You like my work and it is useful for you? If you want you can donate me a beer here:
Need a DropBox account and want 500MB additional free space? Use this link to create your account: DropBox

Last edited by corwin42 : 05-02-2010 at 10:43 PM.
Reply With Quote
  #2 (permalink)  
Old 04-23-2010, 02:40 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

This is an excellent idea and long overdue (even though I don't expect to need it myself!).

I've only read the Help .chm file. Did you really spell DateSeperator, NumberGroupSeperator, TimeSeperator and NumberDecimalSeperator with an "e" rather than as DateSeparator, NumberGroupSeparator, TimeSeparator and NumberDecimalSeparator? (In the tabulation for the DateTime object the spelling of separator is correct.)

Mike.
Reply With Quote
  #3 (permalink)  
Old 04-23-2010, 08:45 PM
Basic4ppc Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 571
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by mjcoon View Post
I've only read the Help .chm file. Did you really spell DateSeperator, NumberGroupSeperator, TimeSeperator and NumberDecimalSeperator with an "e" rather than as DateSeparator,
Ooops. Yes seems that I have spelled it wrong. Will be fixed in the next update. Thanks for reporting.
__________________
You like my work and it is useful for you? If you want you can donate me a beer here:
Need a DropBox account and want 500MB additional free space? Use this link to create your account: DropBox
Reply With Quote
  #4 (permalink)  
Old 04-25-2010, 03:42 AM
Junior Member
 
Join Date: Sep 2009
Posts: 47
Default

Thanks for the very nice lib!
Reply With Quote
  #5 (permalink)  
Old 04-27-2010, 08:56 AM
Basic4ppc Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 571
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

New version 1.1 released:

- Spep"a"rator typo fixed. Attention: This version is incompatible to V1.0!
- New Parse() method for parsing DateTime Strings and convert them into ticks.
- New Numeric object with number formatting functions.

See post #1.
__________________
You like my work and it is useful for you? If you want you can donate me a beer here:
Need a DropBox account and want 500MB additional free space? Use this link to create your account: DropBox
Reply With Quote
  #6 (permalink)  
Old 05-02-2010, 10:55 PM
Basic4ppc Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 571
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

New version 1.2 released:

This version has a new Translator object. With this you can add multilanguage support for your applications very easy.

Just add a Translator object and initialize it. Access all your strings in your program through the Translator.GetText() Method and provide a translation file (simple text file) for every language you want to support. Thats it.

See the example program how it is done. The example program works in english (default language), german, french and italian language. You can easily write a language template file for any other language from within the program. Just translate the strings in the template to the new language and you are done.

Many thanks goes to Filippo and Klaus for providing the italian and french language files.

Have fun with it and I hope it will be of any value.
__________________
You like my work and it is useful for you? If you want you can donate me a beer here:
Need a DropBox account and want 500MB additional free space? Use this link to create your account: DropBox
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:12 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0