Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 15-01-2016, 14:02   #766
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,098
Re: Ocpn-Draw and Boundary

Hakan
Quote:
I've a bat file for this. Use it if you like but you have to change the initial path to OpenCPN repository. Run it from OD_pi\build
Thanks, will be very interested.


Later: Jon.
Ocpn-Draw and Boundary

Thanks, will do both.
__________________

__________________
rgleason is offline   Reply With Quote
Old 15-01-2016, 14:20   #767
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,813
Re: Ocpn-Draw and Boundary

Jon
This is my picture of the process.
In VS2013 you can build the "ocpn_draw-pot-update" project only to create a fresh pot file. (How this is done in Linux I don't know but something similar I suppose). Then give Pavel a hint that there's a pot file to copy into Crowdin. It can be done now though all texts may not be in its final version. The translators can then work on what's there. Short before a final version the last pot update, if any _("text") has been changed or added, can be copied to Crowdin and there will not be much to do for the translators.
A fully translated language use to render a pull request including .mo files from Pavel to your Github.
Pavel use to watch so any corrections needed may follow this post.
Håkan
__________________

__________________
Hakan is offline   Reply With Quote
Old 15-01-2016, 14:53   #768
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,229
Re: Ocpn-Draw and Boundary

Hello jongough,
Quote:
Originally Posted by jongough View Post
Gilletarom,
I have no knowledge of crowdin, how to use it, create the files needed to upload or how to upload them. I have just created an account, but after that I am confused. ....
Jon
I'm only translator. I know the result crowdin and that's it. And it is the same for all other translators.

Only Pavel will explain you what to do. Contact him directly.

B.R. Gilletarom
__________________
Gilletarom is offline   Reply With Quote
Old 15-01-2016, 16:31   #769
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,708
Re: Ocpn-Draw and Boundary

@jon...

Here is the process for supporting crowdin.

1. In your github repo, make sure you run the .pot make target as:
Code:
$make ocpn_draw-pot-update
This extracts the strings from your source, and creates the template file
Code:
ocpn_draw_pi/po/ocpn_draw_pi.pot
2. Notify me or Pavel that the new .pot is ready for upload.

3. One of us will pull from your repo and upload the new .pot file to crowdin, and it will be ready for translation updates.

4. When all is ready for publishing, Pavel or I will download the resulting translations (.po files) and make a Pull Request against your github repo to merge the new .po files. Or we may just send you a zip file of all the .po files.

5. You make your distribution binary one more time, and it will convert the .po translations into the .mo resource files.

6. Repeat until done....


I took the liberty of cloning your repo today, making the .pot file, and uploading to crowdin. So the translation template should be ready to use by the translators now.

Translators, please let me or Jon know if some strings are missing.

Thanks for your efforts
Dave
__________________
bdbcat is offline   Reply With Quote
Old 15-01-2016, 16:57   #770
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,229
Re: Ocpn-Draw and Boundary

hello Dave,

Quote:
Originally Posted by bdbcat View Post
@jon...

Here is the process for supporting crowdin.
.....
So the translation template should be ready to use by the translators now.

Translators, please let me or Jon know if some strings are missing.

Thanks for your efforts
Dave
It is 1h 56, french hour. I am going to crowdin. No change appear ???
__________________
Gilletarom is offline   Reply With Quote
Old 15-01-2016, 17:19   #771
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,098
Re: Ocpn-Draw and Boundary

Got it compiled.
Hakan the batch file helped me understand which files.
Then I saw a couple of lines I had missed in the Readme.md
So I have elaborated the ODraw-readme.txt attached.
Attached Files
File Type: doc Odraw-readme.txt.doc (2.2 KB, 3 views)
__________________
rgleason is offline   Reply With Quote
Old 15-01-2016, 18:58   #772
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,098
Re: Ocpn-Draw and Boundary

Quote:
Also download from opencpnplugins - Browse /opencpn_packaging_data at SourceForge.net
OpenCPN_buildwin.7z OR OpenCPN_buildwin-svg.7z
Expand the buildwin directory and put the buildwin directory under ocpn_draw\build\
Quote:
From OpenCPN.org Developers Manual - Compiling for Windows
after you copy the most current opencpn.lib, WXSVG.lib, expat.lib & cairo.lib files from the most recently fetched & compiled Opencpn to the build directory, from the "build" directory issue:
What I did step by step:
Quote:
Make new Directory: C:\Users\...\ocpn_draw_pi\images
Copy: \ocpn_draw_pi\data\[all images] ---> ocpn_draw_pi\images\
Copy: \ocpn_draw_pi\build\buildwin\gtk\cairo.lib ---> ocpn_draw_pi\build\
Copy: \ocpn_draw_pi\build\buildwin\expat-2.1.0\expate.lib ---> ocpn_draw_pi\build\
Copy: \OpenCPN\build\release\wxsvg.lib ---> ocpn_draw_pi\build\
Copy: \OpenCPN\build\release\opencpn.lib ---> ocpn_draw_pi\build\

Or get these files from a recent Opencpn
Copy: \GitHub\OpenCPN\buildwin\gtk\cairo.lib ---> ocpn_draw_pi\build\
Copy: \GitHub\OpenCPN\buildwin\expat-2.1.0\expate.lib ---> ocpn_draw_pi\build\
Copy: \GitHub\OpenCPN\build\release\wxsvg.lib ---> ocpn_draw_pi\build\
Copy: \GitHub\OpenCPN\build\release\opencpn.lib ---> ocpn_draw_pi\build\
After compiling the most recent O with wxsvg.lib added.
I tried ODraw and it does not appear in the Plugins Options area.

I suppose I am supposed to compile O with some changes for SVG?
I did not find the direction you mention in the Windows compile manual.
So what I did was this:
Quote:
Copy: OpenCPN\buildwin\gtk\cairo.lib ---> ocpn_draw_pi\build\
Copy: OpenCPN\buildwin\expat-2.1.0\expate.lib ---> ocpn_draw_pi\build\
Copy: OpenCPN\build\release\wxsvg.lib ---> ocpn_draw_pi\build\
Copy: OpenCPN\build\release\opencpn.lib ---> ocpn_draw_pi\build\
What do I do about the images?
I have copied
copy: \OpenCPN\data\svg\folders\[images]
--->OpenCPN\images\folders\[images]
Is this correct? What is "share" directory?

Thanks.
__________________
rgleason is offline   Reply With Quote
Old 15-01-2016, 19:12   #773
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,098
Re: Ocpn-Draw and Boundary

Jon also tried moving "images" file to
C:\Users\All Users\opencpn\plugins\ocpn_draw_pi\

Did not help.

PS: How do I determine if OpenCPN is using SVG icons?
__________________
rgleason is offline   Reply With Quote
Old 15-01-2016, 22:18   #774
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: Ocpn-Draw and Boundary

Rick,
To use SVG within OD you need to ensure that OD_USE_SVG=ON in the cmake. You can do this by issuing "cmake -DOD_USE_SVG=ON .." from your OD build directory, then issue make. You will also need to ensure that OCPN is using SVG, i.e. compiled with OCPN_USE_SVG=ON as a cmake option. If you are using VC2013 you can tell it to build the project once you have run the cmake command. This will expect to find the lib files and will complain if it does not. At run time it will use the DLL's which should have been loaded by OCPN. I have cairo.lib, expat.lib and WXSVG.lib in the root of the build directory.

If you are debugging you should copy the *.svg & *.png files from the 'data' directory git to the 'vc2013 build directory'\plugins\ocpn_draw_pi\data. I am creating install packages, installing these and then running the OCPN. In this case the image files will all be in C:\Program Files\OpenCPN\plugins\ocpn_draw_pi\data.

You should notice that the SVG files are cleaner looking and if you cause them to scale they should still look OK. If you are not sure rename one of the SVG icons. In this case you will get a green jigsaw piece instead of the icon.

Jon
__________________
jongough is offline   Reply With Quote
Old 15-01-2016, 23:43   #775
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,813
Re: Ocpn-Draw and Boundary

Rick
I use this bat to copy files needed, and actually some more, for OCPN release and package. No pathway tweaking, just be sure to run it from OCPN root.
I use to run it as soon a patch contain files.
Håkan
Attached Files
File Type: pdf CopyFiles.bat.pdf (1.8 KB, 6 views)
__________________
Hakan is offline   Reply With Quote
Old 16-01-2016, 00:31   #776
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: Ocpn-Draw and Boundary

Gerhard,
Do you want a setting in preferences that will let the System Close icon (normally a small x in one corner of the screen) act as an implicit save/OK? If so, do you have any words I can use to describe this on the panel?

Jon

Quote:
Originally Posted by CarCode View Post
On a Mac usually setting changes are immediately in effect. However most developers doesn't know how a Mac works and so OpenCPN doesn't act like a Mac software.

Gerhard
__________________
jongough is offline   Reply With Quote
Old 16-01-2016, 00:43   #777
NAV
Registered User

Join Date: Sep 2010
Location: Netherlands
Posts: 424
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by Gilletarom View Post
hello Dave,
It is 1h 56, french hour. I am going to crowdin. No change appear ???
I can see that Dave updated the pot-file CrowdIn. However, zero strings were added.
__________________
NAV is offline   Reply With Quote
Old 16-01-2016, 00:56   #778
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,506
Re: Ocpn-Draw and Boundary

That might mean that Jon has not converted all Strings into _TranslatableStrings yet...
__________________
bcn is online now   Reply With Quote
Old 16-01-2016, 01:58   #779
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,685
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by jongough View Post
Gerhard,
Do you want a setting in preferences that will let the System Close icon (normally a small x in one corner of the screen) act as an implicit save/OK? If so, do you have any words I can use to describe this on the panel?

Jon
Jon,

please don't make any extras for Mac OS X version in your plugin. There are already so many items in OpenCPN main and other plugins that doesn't follow Apples Guidelines for Developers and a lot of them could not be done because the wxWidgets port is not able to do.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 16-01-2016, 04:42   #780
Registered User

Join Date: Apr 2012
Location: Opua, New Zealand
Boat: Van der Stadt Samoa 48
Posts: 123
Re: Ocpn-Draw and Boundary

I am using Watchdog as anchor alarm at it is working as it is supposed to do. When I create a boundary as exclusion zone close to our boat watchdog gives no alarm. Watchdog is setup to give alarm if the distance gets below 3nm
__________________

__________________
Taarnskov is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 22:22
Buoys out in Boundary Bay, BC Carogan Liveaboard's Forum 0 27-08-2012 06:41
For Sale: Cascade Designs Seal Line Boundary 70 Dry Bag thesparrow Classifieds Archive 0 14-03-2011 15:27
Current draw and insulation of portable fridges troppo Plumbing Systems and Fixtures 6 06-03-2011 09:00
amperage draw for Garmin radar and MFD janders Marine Electronics 8 16-12-2008 17:00


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 01:47.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.