Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 23-03-2014, 07:16   #721
Registered User

Join Date: Mar 2013
Location: Tallinn, Estonia
Posts: 12
Re: OpenCPN Internationalization ( i18n )

Hi

Estonian update for OpenCPN 3.3.1419 wiht Dashboard and Grib
Attached Files
File Type: doc estonian_3_3_1419.zip.doc (67.4 KB, 21 views)
__________________

__________________
Highlander_et is offline   Reply With Quote
Old 03-04-2014, 13:05   #722
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,229
Re: OpenCPN Internationalization ( i18n )

Hello,

Here join updated files for :

French language file for Grib

French language file for Dashbord

Best regards Gilletarom
__________________

__________________
Gilletarom is offline   Reply With Quote
Old 04-04-2014, 03:21   #723
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,506
Re: OpenCPN Internationalization ( i18n )

Translators for your information, there is a specific thread for the S63-Plug-in as Dave has to keep this separated from the main code:

S-63 PI preparing the beta: translations
__________________
bcn is online now   Reply With Quote
Old 05-04-2014, 15:23   #724
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,685
Re: OpenCPN Internationalization ( i18n )

German po files for opencpn, dashboard, grib.

Gerhard
Attached Files
File Type: doc opencpn_de.zip.doc (31.9 KB, 26 views)
__________________
CarCode is offline   Reply With Quote
Old 07-04-2014, 01:55   #725
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,229
Re: OpenCPN Internationalization ( i18n )

Hello Dave,

O331606 : OpenCPN french file language (using pot file version 2014-04-05)
Attached Files
File Type: doc opencpn_fr_V3.3.1606_A.zip.doc (52.7 KB, 25 views)
__________________
Gilletarom is offline   Reply With Quote
Old 10-04-2014, 09:23   #726
Registered User

Join Date: Mar 2013
Location: Tallinn, Estonia
Posts: 12
Re: OpenCPN Internationalization ( i18n )

Hi!

New estonian translation in attachment.

Regards
Attached Files
File Type: doc opencpn_3.3.1606_et.zip.doc (45.3 KB, 20 views)
__________________
Highlander_et is offline   Reply With Quote
Old 24-04-2014, 09:10   #727
Registered User

Join Date: Jun 2013
Location: Moscow, Russia
Boat: Clerk Chair 1.6ft
Posts: 39
Re: OpenCPN Internationalization ( i18n )

Russian translation for OpenCPN, Dashboard and GRIB. Use at your own risk.
Attached Files
File Type: doc core_ru.zip.doc (40.6 KB, 22 views)
__________________
SamsonovAnton is offline   Reply With Quote
Old 24-04-2014, 23:56   #728
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,813
Re: OpenCPN Internationalization ( i18n )

POT-file creation – help needed
The br24radar_pi plugin is close to be ”official” on Opencpn.org but we need some help to create the pot file. For OCPN and plugins the pot file is updated during built when a valid “POTFILES.in” is present. I understand this is controlled by “CMakeLists.txt” and I have compared our “CMakeLists.txt” with these for other plugins and can’t find any significant difference why this is not working.
Please I need help to learn how the initial pot file is created either by descriptions here or point to a wiki.
Our cmakelist is attached (discard the .pdf extension).

Thanks Håkan
Attached Files
File Type: pdf CMakeLists.txt.pdf (6.3 KB, 18 views)
__________________
Hakan is offline   Reply With Quote
Old 25-04-2014, 05:53   #729
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN Internationalization ( i18n )

Hakan...
I didn't look at the file yet, but to there are 2 conditions:
1) you must have the whole gettext toolchain available
2) You must build the respective build target (POT-update and PO-update) to regenerate the .POT or .PO files.

Let me know if it worked, if not, I will look at your code over the weekend and fix it.

Pavel
__________________
nohal is offline   Reply With Quote
Old 25-04-2014, 12:30   #730
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,813
Re: OpenCPN Internationalization ( i18n )

Many thanks for answering. You're as solid as usual.
Quote:
Originally Posted by nohal View Post
Hakan...
I didn't look at the file yet, but to there are 2 conditions:
1) you must have the whole gettext toolchain available
Since OCPN and the other plugins get there's POT and PO files updated during build I presume the toolchain is correct.
Quote:
2) You must build the respective build target (POT-update and PO-update) to regenerate the .POT or .PO files.
"..the respective.." That's the part I don't understand. How do I build the POT file? Isn't that in cmakalist, the "pot.dummy" part?


Håkan
__________________
Hakan is offline   Reply With Quote
Old 25-04-2014, 13:15   #731
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN Internationalization ( i18n )

Hakan...
there should be a pot-update project generated even for VS, I don't really remember.
Or do it from command line with
Code:
cd <your_build_dir>
cmake --build . --target pot-update
and the POT will get regenerated
with
Code:
cmake --build . --target po-update
It should look similar to the following even on Windows:
Code:
nohal@knut:~/source/opencpn/build$ cmake --build . --target pot-update
Scanning dependencies of target pot-update
[100%] pot-update [opencpn]: Generated pot file.
[100%] pot-update: Done.
[100%] Built target pot-update
nohal@knut:~/source/opencpn/build$ ^C
nohal@knut:~/source/opencpn/build$ cmake --build . --target po-update
Scanning dependencies of target po-update
[  0%] po-update [opencpn_fr_FR]: Updated po file.
[  0%] po-update [opencpn_es_ES]: Updated po file.
[  0%] po-update [opencpn_de_DE]: Updated po file.
[  0%] po-update [opencpn_nb_NO]: Updated po file.
[ 16%] po-update [opencpn_it_IT]: Updated po file.
[ 16%] po-update [opencpn_da_DK]: Updated po file.
[ 16%] po-update [opencpn_fi_FI]: Updated po file.
[ 16%] po-update [opencpn_et_ET]: Updated po file.
[ 33%] po-update [opencpn_tr_TR]: Updated po file.
[ 33%] po-update [opencpn_nl_NL]: Updated po file.
[ 33%] po-update [opencpn_gl_ES]: Updated po file.
[ 33%] po-update [opencpn_hu_HU]: Updated po file.
[ 50%] po-update [opencpn_el_GR]: Updated po file.
[ 50%] po-update [opencpn_ca_ES]: Updated po file.
[ 50%] po-update [opencpn_ru_RU]: Updated po file.
[ 50%] po-update [opencpn_cs_CZ]: Updated po file.
[ 66%] po-update [opencpn_pl_PL]: Updated po file.
[ 66%] po-update [opencpn_zh_TW]: Updated po file.
[ 66%] po-update [opencpn_pt_BR]: Updated po file.
[ 66%] po-update [opencpn_pt_PT]: Updated po file.
[ 83%] po-update [opencpn_sv_SE]: Updated po file.
[100%] po-update: Done.
[100%] Built target po-update
Pavel
__________________
nohal is offline   Reply With Quote
Old 25-04-2014, 13:21   #732
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN Internationalization ( i18n )

Oh..
And I forgot to add one more thing, for plugins built inside the OpenCpn tree, you will need something like
Code:
cmake --build . --target grib-pot-update
Of course replace "grib" with the name of the respective plugin.
__________________
nohal is offline   Reply With Quote
Old 25-04-2014, 21:01   #733
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,813
Re: OpenCPN Internationalization ( i18n )

Quote:
Originally Posted by nohal View Post
Oh..
And I forgot to add one more thing, for plugins built inside the OpenCpn tree, you will need something like
Code:
cmake --build . --target grib-pot-update
Of course replace "grib" with the name of the respective plugin.
Yes -- and thanks Pavel. There is was. Cmake pot-update works fine.
And your text "there should be a pot-update project generated even for VS" finally kicked in some thinking activity also in by brain. Yes it is done in VC as well, and very clear, it was nothing else then to read a couple of rows up to find: "br24radar pot-update" and build only that project as usual. It was too obvious?
Thanks for your patience, I really appreciate your support.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 26-04-2014, 06:56   #734
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,813
Re: OpenCPN Internationalization ( i18n )

More basics:
Is there maybe a nice short answer to this as well?
Now I've one mo file,"opencpn-br24radar_pi.mo", in the correct directory but br24radar_pi.dll is not translating anything.
Where is the call to read the files in the "LC_MESSAGES" lib? Is it a function in every plugin that we could have missed? (I've compared with other plugins but didn't find it)

Thanks Håkan
__________________
Hakan is offline   Reply With Quote
Old 26-04-2014, 07:23   #735
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,685
Re: OpenCPN Internationalization ( i18n )

There should be a line with:
Code:
AddLocaleCatalog( _T("opencpn-br24radar_pi") );
in file br24radar_pi.cpp but it is not.
Obviously it was not made for localisations.

So you must do it yourself and prepand all strings for localisation with "_(" instead of "_T(" or "wxT(".

Gerhard
__________________

__________________
CarCode 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
OpenCPN 2.3.0 dlymn OpenCPN 3 29-06-2011 01:44
Help with OpenCPN moggie OpenCPN 4 15-02-2011 16:18
Help with OpenCPN moggie Marine Electronics 1 10-02-2011 06:26
OpenCPN bdbcat OpenCPN 1343 19-09-2009 15:59


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 10:32.


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.