Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Open Source Projects
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.


Pocket Weather


Reply
 
LinkBack (2) Thread Tools Display Modes
  #21 (permalink)  
Old 11-20-2008, 04:30 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 213
Default Language Support

Quote:
Originally Posted by JOTHA View Post
Hi digitaldon37,

very nice work!

Do you also want to have it in other languages (German)?
Thanks Jotha and Fillippo for the feedback.

I don't think language support would be hard to put in. I would need to make a language file for the text that is displayed. I've uploaded the latest code (.25.1) if you want to help out with that.

[note: corrected previous version .26.1 to .25.1]

Last edited by digitaldon37 : 11-20-2008 at 07:42 PM.
Reply With Quote
  #22 (permalink)  
Old 11-20-2008, 06:10 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,806
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi digitaldon37,

I just downloaded your last code.
In the source the version is 0.25.1.
But in your post it is supposed to 0.26.1
Is it a typo or an older version ?

If you are intersted in a version, I would do the translation.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #23 (permalink)  
Old 11-20-2008, 06:23 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 578
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi digitaldon37,

I've added a few menu.
The DLL, you need to add but also because otherwise it on the PPC does not work.

PS. I hope you understand my English-Google.

Ciao,
Filippo
Attached Files
File Type: zip PocketForecast_v26.1.1.zip (157.4 KB, 27 views)
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Desire
______________________
Reply With Quote
  #24 (permalink)  
Old 11-20-2008, 07:41 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 213
Default

Quote:
Originally Posted by Filippo View Post
Hi digitaldon37,

I've added a few menu.
The DLL, you need to add but also because otherwise it on the PPC does not work.

PS. I hope you understand my English-Google.

Ciao,
Filippo
Nice addition on the menu! The version in the source code is correct (.25.1) - I will update the post.
Reply With Quote
  #25 (permalink)  
Old 11-20-2008, 07:47 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 213
Default

Quote:
Originally Posted by klaus View Post
Hi digitaldon37,

I just downloaded your last code.
In the source the version is 0.25.1.
But in your post it is supposed to 0.26.1
Is it a typo or an older version ?

If you are intersted in a version, I would do the translation.

Best regards.
Thanks Klaus. The correct version is .25.1. Would you be putting these into some sort of text file ("language.txt") that we can load at run-time?
Reply With Quote
  #26 (permalink)  
Old 11-20-2008, 09:20 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,806
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

In my programs I use simple text files. I have a language index, depending on the selected language, and load the right file.
The file content is loaded into a Text array and in the program I use these varaibles with their index instead of direct text like.
Label1.Text = text(11) instead of
Label1.Text = "File:"
In the text files the 11th entry is for example "File:", "Fichier:" "Datei:" and so on depending on the language.
The possible languages are predefined and if the file for the given language does exist, the choose is enabled or disabled. To add a new language file the user can translate one of the existing files and change the last letter. The predefined languages in my programs are:
English, French, German, Italian, Spanish, Portuguese, Russian and Japanese. The Japanese translations came from alfcen. See attached picture.
For example for the DynSim (Dynamic Simulations) program there are the files, DynSimE.txt, DynSimF.txt, DynSimD.txt and DynSimI.txt, the others don't exist yet. The last letter gives the language.
E English, F French, D German, I Italian, S Spanish, P Portuguese, R Russian and J Japanese.

I have also help files, in different languages, for some of my programs, but less than for the text files. If, for a given language the text file does exist but not the help file, the english version is loaded by default.

The language index is saved in an Init file (Ex: DynSim.ini), that is always saved when leaving the program and loaded at start up so the user gets the last setup.

Best regards.
Attached Images
File Type: jpg Setup.jpg (17.0 KB, 14 views)
__________________
Klaus
Switzerland
Reply With Quote
  #27 (permalink)  
Old 11-21-2008, 12:51 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 213
Default Language Support

Quote:
In my programs I use simple text files. I have a language index, depending on the selected language, and load the right file.
The file content is loaded into a Text array and in the program I use these varaibles with their index instead of direct text like.
Label1.Text = text(11) instead of
Label1.Text = "File:"
In the text files the 11th entry is for example "File:", "Fichier:" "Datei:" and so on depending on the language.
The possible languages are predefined and if the file for the given language does exist, the choose is enabled or disabled. To add a new language file the user can translate one of the existing files and change the last letter. The predefined languages in my programs are:
English, French, German, Italian, Spanish, Portuguese, Russian and Japanese. The Japanese translations came from alfcen. See attached picture.
For example for the DynSim (Dynamic Simulations) program there are the files, DynSimE.txt, DynSimF.txt, DynSimD.txt and DynSimI.txt, the others don't exist yet. The last letter gives the language.
E English, F French, D German, I Italian, S Spanish, P Portuguese, R Russian and J Japanese.

I have also help files, in different languages, for some of my programs, but less than for the text files. If, for a given language the text file does exist but not the help file, the english version is loaded by default.

The language index is saved in an Init file (Ex: DynSim.ini), that is always saved when leaving the program and loaded at start up so the user gets the last setup.

Best regards.
Thanks! That would be great since you've already got those routines. I am not making any changes at the moment so please use the latest source in post #1 (25.1) and then we'll use that as the next release.
Reply With Quote
  #28 (permalink)  
Old 11-21-2008, 03:54 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,806
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

The multilanguage version V0.26 is ready.
Can you transfer it to your 1st post.

I have also added Filippo's menus.

In looking deeper in your code I have two suggestions.

1. On several places when you you set the Visible property to False you set also the Enabled propperty to false. You don't need to set both to False. When setting Visible to False the Control is not available.

2. For the images on the main window you have around the images 4 Labels for the border. One label would be enough, with the outer dimensions 4 pixels wider. I changed it for the upper left image.

Perhaps I have missed some texts, please let me know or you can add them.

@JOTHA: Könntest Du mal die Deutschen Texte durchschauen und eventuelle Verbesserungen durchführen.
Schon mal Danke im Voraus

@Filippo: la versione in Italiano ?

Best regards.
Attached Files
File Type: zip WeatherForecast_V0_26.zip (157.4 KB, 28 views)
__________________
Klaus
Switzerland

Last edited by klaus : 11-21-2008 at 03:57 PM.
Reply With Quote
  #29 (permalink)  
Old 11-21-2008, 05:39 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 213
Default

Quote:
Originally Posted by klaus View Post
The multilanguage version V0.26 is ready.
Can you transfer it to your 1st post.

I have also added Filippo's menus.
Great! I am going to give this a quick test and upload to the main post and over at xda-developers

Quote:
In looking deeper in your code I have two suggestions.

1. On several places when you you set the Visible property to False you set also the Enabled propperty to false. You don't need to set both to False. When setting Visible to False the Control is not available.
Thanks. That would make it easier and reduce the chances of me forgetting to re-enable elsewhere.

Quote:

2. For the images on the main window you have around the images 4 Labels for the border. One label would be enough, with the outer dimensions 4 pixels wider. I changed it for the upper left image.
I know it was probably bad practice on my part, but I was experimenting of how to use a GIF for the weather status, and still allow a background form image to show through and still have borders. (though it's not coded for this - this is why I was asking about controls that have transparency in one of the other threads) Hard to explain so I'm uploading a mock-up image

Quote:
Perhaps I have missed some texts, please let me know or you can add them.

@JOTHA: Könntest Du mal die Deutschen Texte durchschauen und eventuelle Verbesserungen durchführen.
Schon mal Danke im Voraus

@Filippo: la versione in Italiano ?

Best regards.
I'll look it over - again Thanks!
Attached Images
File Type: jpg background.JPG (19.0 KB, 12 views)
Reply With Quote
  #30 (permalink)  
Old 11-21-2008, 05:43 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 578
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi digitaldon37

Quote:
@Filippo: la versione in Italiano ?
as requested by Klaus ...


Ciao,
Filippo
Attached Files
File Type: txt WeatherI.txt (603 Bytes, 12 views)
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Desire
______________________
Reply With Quote
Reply



LinkBacks (?)
LinkBack to this Thread: http://www.basic4ppc.com/forum/open-source-projects/3323-pocket-weather.html
Posted By For Type Date
1800 PocketPC - Pocket Pc Freeware and Windows Mobile 6 Software - Part 2 This thread Refback 11-24-2008 11:40 AM
Pocket Forecast [v.25] (formerly Pocket Weather) - xda-developers This thread Refback 11-17-2008 10:17 PM
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Pocket Wiki digitaldon37 Open Source Projects 4 12-30-2009 02:12 AM
Personal Pocket PC Wiki tsteward Open Source Projects 133 02-24-2009 10:01 AM
Pocket Burning Sand neilnapier Questions & Help Needed 2 11-05-2007 07:53 PM
print class for pocket pc tanrikuluahmet Basic4ppc Wishlist 1 10-01-2007 09:10 AM
Weather web service using HTTP lost2 Share Your Creations 3 06-10-2007 02:40 PM


All times are GMT. The time now is 09:49 AM.


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