Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 13 Nov 2018, 18:35
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
2Pot Online Translator v0.4.1
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 3444
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 24 Sep 2018, 05:22    Post subject:  2Pot Online Translator v0.4.1  

Bonjour,
2Pot could be called "(Yet) Another Puppy Online Translator". I felt like doing it when I discovered the "trans" CLI through the vovchik's Arrow gXlat - Desktop Google Translator redux.
Wouldn't it be interesting to be able to use trans to translate gettext translation files and to create scripts to do it automatically using the right-click "Open with" menu?
Arrow Noting that, unfortunately, Google produces only rough translations, this feature was not convincing and therefore not used. But now that Arrow DeepL is available, it seemed to me that it could be studied again because it does is nearly perfect!

So, "2Pot" implements this feature (which can, at best, only be a translation assistance) and also allows any standard text translation:
    - playing it back (using your "defaultmediaplayer")
    - displaying it in separate window (see picture below), either by using an internal editing window or any text editor such as Geany or Leafpad.

2Pot also gives access to web pages directly translated with Google translate in the browser of your choice.

Requirements:
      gawk (4.xx release or greater)
      yad (0.17 release or greater)

    Managing gettext files:
      devx (gettext applications and nls files)
      poeditor
      csplit* (see next message)

2Pot GUI languages support: English, French, Spanish, German.

0.4.1 version (Oct 25, 2018)
    - warning messages if the text to be translated (display and play) window is empty
    - processing of texts to be translated regardless of their number of characters, both in DISPLAY and PLAY modes
    - playing texts back without taking non-printable characters (line breaks) into account
    - progress bars for translation processing (display and play) + cancel button
    - close and quit (close all opened windows) separated buttons in the main window
    - translating back the target to the source language
    - splash window at startup during Internet connection check
    - deleting warning messages and parts of the code that have become obsolete
    - pottrans: pottrans now totally stand-alone - improved translation process - sound notification when translation process done
    - modified integrated gtk-splash to avoid bold font by default
    - revision of the 2Pot GUI French translation
    - addition of the 2Pot GUI Spanish translation (as pottrans test to be checked/corrected)
    - some cosmetic...

0.3.3 version (Oct 15, 2018)
    - integration of the old Puppy Precise "gtkdialog-splash" as standalone /usr/bin/gtk-splash for compatibility with newer Puppies
    - added warning windows, replaced some Xdialog messages with yaf-splash windows and animated gifs
    - many fixes of small bugs or minor malfunctions
    - code and feature improvements (mainly in pottrans)
    - revision of help files.
    - revision of the 2Pot GUI French translation

0.3 version (Oct 03, 2018)
    - removed listen mode paragraph by paragraph
    - graphical media players instead of command line players (allowing to simply stop, pause, resume or listen to the translation again)
    - saving audio files
    - preventing user to start new translation while a process is already underway (DISPLAY & PLAY)
    - separated help for every source type
    - new "DISPLAY", "PLAY" and "JUMP TO" icons
    - global details instead of particular details for every language
    - character counter for typed text
    - warning when the source or destination language is not supported by DeepL

0.2.3 version (Sep 24, 2018)

Thanks to did18, fabrice_035.

Cordialement
2Pot-0.4.1_all.pet
Description 
pet

 Download 
Filename  2Pot-0.4.1_all.pet 
Filesize  183.8 KB 
Downloaded  22 Time(s) 
181025_172649_788x891_easyshot.jpg
 Description   
 Filesize   164.71 KB
 Viewed   173 Time(s)

181025_172649_788x891_easyshot.jpg


_________________


Last edited by Argolance on Sat 27 Oct 2018, 04:52; edited 24 times in total
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 3444
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 24 Sep 2018, 08:00    Post subject:  

    - *It took me a while to understand why the gettext pot files translation functionality failed on recent Puppies. That's because they don't ship csplit (split a file into sections determined by context lines), present in Puppy Precise! Shocked

    - Puppy Tahr 6.0.5 has yad 0.12 version. Yad version 0.17 or greater is required for 2Pot help texts to be displayed.
    - Dpup Stretch identifies *.pot files as Microsoft presentation files. Now, the symbolic link "pot2po" allowing user to run "pottrans" from right click "Open with" menu is present in the main "Open with" directory.

If not:
Code:
# pottrans /path/to/file.pot


As attached file, a german translation of 2Pot using pottrans (mo and po files, to be checked!).
2Pot_de.tar.gz
Description 
gz

 Download 
Filename  2Pot_de.tar.gz 
Filesize  14.64 KB 
Downloaded  22 Time(s) 
181026_114208_412x142_easyshot.png
 Description   
 Filesize   171.89 KB
 Viewed   161 Time(s)

181026_114208_412x142_easyshot.png

csplit.gz
Description  To be renamed as csplit without gz extention and copied to /bin directory then made executable
gz

 Download 
Filename  csplit.gz 
Filesize  101.8 KB 
Downloaded  29 Time(s) 

_________________


Last edited by Argolance on Fri 26 Oct 2018, 15:31; edited 10 times in total
Back to top
View user's profile Send private message Visit poster's website 
mfb

Joined: 22 Mar 2016
Posts: 60

PostPosted: Thu 04 Oct 2018, 04:37    Post subject:  

This complex and innovative project is a pleasure to run because its power is so easily used by novices (like me).
.

Last edited by mfb on Fri 26 Oct 2018, 05:57; edited 2 times in total
Back to top
View user's profile Send private message 
mfb

Joined: 22 Mar 2016
Posts: 60

PostPosted: Thu 04 Oct 2018, 04:37    Post subject:  

place holder
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0367s ][ Queries: 13 (0.0038s) ][ GZIP on ]