[Module] MarkDown Gadget (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

What rest? I don't understand French.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
deeproot
Enthusiast
Enthusiast
Posts: 269
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: [Module] MarkDown Gadget (all OS)

Post by deeproot »

All looks good to me - - - Vielen Dank für das Update :)
Fred
Administrator
Administrator
Posts: 16621
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Module] MarkDown Gadget (all OS)

Post by Fred »

Thorsten1867 wrote: Wed May 04, 2022 9:05 am What rest? I don't understand French.
rest = remaining :)
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: [Module] MarkDown Gadget (all OS)

Post by HeX0R »

I think Thorsten knows that, but what both seem to refer to is this post:
https://www.purebasic.fr/english/viewto ... 37#p583837

And since no one translated that into something understandable, Thorsten can't fix it

Deepl came up with this, which makes it, at least, half understandable:
Hello,

I have tested .... and I would like to give my opinion.
It's an interesting program but it has a lot of problems...

I was a bit confused by your program:

- No bubble info on the buttons, not practical at all!
- When you change the language, the contextual menu does not update, you have to restart the program.
I have to restart the program and there is no message to tell us.
- The text (in French) in the 'cut' element of the contextual menu is wrong >
CuttingAus
- Text error in the 'Font Style' element of the contextual menu > 'Emphase
Emphasis'.
- Text error (in French) in the 'Increase Font Size' element of the contextual menu > 'abonné', and 'Decrease Font Size' of the contextual menu > 'Exposant
- Error in the 'note', when I convert to HTML, in each element is indicated: 'Lore Ipsum'.
I'm not sure if it is deepls fault, but I personally find those comments too aggressive.

"it has a lot of problems"? -> Your list doesn't really indicate any problem, only flaws.
"No bubble info on the buttons, not practical at all!" -> I would have said: "ToolTipps for the buttons would be cool"
[...]
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: [Module] MarkDown Gadget (all OS)

Post by ChrisR »

HeX0R wrote: Wed May 04, 2022 11:21 am I'm not sure if it is deepls fault, but I personally find those comments too aggressive.
Not DeepL's fault but this is Shadow!
I don't think he's a bad guy but he doesn't know how to put the forms, a bit crude, not all alone in his head.
He forgets that all Thorsten's nice code is generously offered. But, with a bit of hindsight, there might be things to take.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

Code: Select all

# Heading 1 #
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
Diam maecenas sed enim ut sem viverra aliquet. Vel pharetra vel turpis nunc eget. Laoreet non curabitur gravida arcu ac.
---
## Heading 2 ##
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
Diam maecenas sed enim ut sem viverra aliquet. Vel pharetra vel turpis nunc eget. Laoreet non curabitur gravida arcu ac.

This is not a programme error. You have marked the text as a heading.

This is the correct syntax:

Code: Select all

# Heading 1 #
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
Diam maecenas sed enim ut sem viverra aliquet. Vel pharetra vel turpis nunc eget. Laoreet non curabitur gravida arcu ac.

---

Heading 2
----------
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
Diam maecenas sed enim ut sem viverra aliquet. Vel pharetra vel turpis nunc eget. Laoreet non curabitur gravida arcu ac.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

Update:
- Bugfixes: Headings
- Bugfixes: Ordered Lists
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ShadowStorm
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Feb 14, 2017 12:07 pm

Re: [Module] MarkDown Gadget (all OS)

Post by ShadowStorm »

ChrisR wrote: Wed May 04, 2022 1:51 pm
HeX0R wrote: Wed May 04, 2022 11:21 am I'm not sure if it is deepls fault, but I personally find those comments too aggressive.
Not DeepL's fault but this is Shadow!
I don't think he's a bad guy but he doesn't know how to put the forms, a bit crude, not all alone in his head.
He forgets that all Thorsten's nice code is generously offered. But, with a bit of hindsight, there might be things to take.
Exactly, I'm just a bit clumsy by nature, I apologize, I'll add it in my signature by the way...
Nothing mean, just clumsy.
I am French, I do not speak English.
My apologies for the mistakes.

I have sometimes problems of expression
I am sometimes quite clumsy, please excuse me and let me know.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

Update:
- ToolTips with Markdown-Syntax
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ShadowStorm
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Feb 14, 2017 12:07 pm

Re: [Module] MarkDown Gadget (all OS)

Post by ShadowStorm »

Hello, here are some small issues in video, it would be nice to add tooltips on the buttons and corrected two three thing, thank you :)
https://drive.google.com/file/d/11kYd_c ... sp=sharing
I am French, I do not speak English.
My apologies for the mistakes.

I have sometimes problems of expression
I am sometimes quite clumsy, please excuse me and let me know.
normeus
Enthusiast
Enthusiast
Posts: 414
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: [Module] MarkDown Gadget (all OS)

Post by normeus »

ShadowStorm,

Along with the program there is a file named "MarkdownEditor.lng". It contains multiple languages. If you open it with notepad, you'll be able to fix the french section:

Code: Select all

      <element key="Cut">CuttingAus</element>

change that to:

Code: Select all

      <element key="Cut">Couper</element>

Change all the ones you are not comfortable with. If you are willing to work a little harder to get Tool Tips, then do the following.
At the end of the French translation, after the definition for "Code" and before </strg>, it looks like this:

Code: Select all

      <element key="Reference">Référence</element>
      <element key="Code">Code</element>
    </Strg>
    
Make it look like this:

Code: Select all

      <element key="Reference">Référence</element>
      <element key="Code">Code</element>
      <element key="TT_Update">Update Output Window</element>
      <element key="TT_Table">Create Table</element>
      <element key="TT_Note">Add a Note</element>
      <element key="TT_New">Reset editor</element>
      <element key="TT_Open">Open File</element>
      <element key="TT_Settings">Edit Settings</element>
      <element key="TT_PDF">Export to PDF</element>
      <element key="TT_HTML">Export to HTML</element>
      <element key="Msg_Restart"> Restart the program for changes to take effect</element>      
    </Strg>
You now have created tool tips in the French language section.
For the last step, translate from English to French.
[edit] forgot to add the "restart the program message" [/edit]

Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
ShadowStorm
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Feb 14, 2017 12:07 pm

Re: [Module] MarkDown Gadget (all OS)

Post by ShadowStorm »

normeus, thanks a lot for your help, I did all that :)
It is clear that this module and all the code are very complex "MarkDown", thanks for sharing!

I put the text I modified "MarkdownEditor.lng".
<?xml version="1.0" encoding="UTF-8"?>

<map>
<element key="DE">
<Strg>
<element key="Cut">Ausschneiden</element>
<element key="Msg_Load">Bitte Datei zum Laden auswählen</element>
<element key="Emoji">Emoji</element>
<element key="TOC">Inhaltsverzeichnis</element>
<element key="Note">Hinweis</element>
<element key="Keystroke">Taste</element>
<element key="Link">Link</element>
<element key="Left">Links</element>
<element key="Bulb">Glühbirne</element>
<element key="Image">Bild</element>
<element key="Caution">Vorsicht</element>
<element key="Pencil">Stift</element>
<element key="Phone">Telefon</element>
<element key="Apply">Übernehmen</element>
<element key="Glossary">Glossar</element>
<element key="Settings">Einstellungen</element>
<element key="Italic">kursiv</element>
<element key="Paste">Einfügen</element>
<element key="Bookmark">Lesezeichen</element>
<element key="Memo">Memo</element>
<element key="Warning">Warnung</element>
<element key="Abbreviation">Abkürzung</element>
<element key="Center">Zentriert</element>
<element key="Highlight">highlight</element>
<element key="Msg_Close">Soll das aktuelle Dokument gespeichert werden?</element>
<element key="EMail">E-Mail</element>
<element key="Footnote">Fußnote</element>
<element key="CodeBlock">Block mit Code</element>
<element key="Strikethrough">durchgestrichen</element>
<element key="Copy">Kopieren</element>
<element key="Language">Sprache</element>
<element key="Paperclip">Büroklammer</element>
<element key="Emphasis">Hervorhebung</element>
<element key="ColAlign">Spaltenausrichtung</element>
<element key="Table">Tabelle</element>
<element key="Bold">fett</element>
<element key="Columns">Spalten</element>
<element key="Inline">direkt</element>
<element key="Msg_Save">Bitte Datei zum Speichern auswählen</element>
<element key="Magnifier">Lupe</element>
<element key="Info">Information</element>
<element key="Headings">Überschriften</element>
<element key="TMsg_Close">Neues Dokument</element>
<element key="Error">Fehler</element>
<element key="Date">Termin</element>
<element key="Mail">Brief</element>
<element key="Insert">Einfügen</element>
<element key="Right">Rechts</element>
<element key="SuperScript">hochgestellt</element>
<element key="SubScript">tiefgestellt</element>
<element key="Rows">Zeilen</element>
<element key="Spellcheck">Rechtschreibung</element>
<element key="Question">Frage</element>
<element key="Reference">Referenz</element>
<element key="Code">Code</element>
</Strg>
</element>
<element key="FR">
<Strg>
<element key="Cut">Couper</element>
<element key="Msg_Load">Veuillez sélectionner le fichier à charger</element>
<element key="Emoji">Emoji</element>
<element key="TOC">Table des matières</element>
<element key="Note">Note</element>
<element key="Keystroke">Bouton</element>
<element key="Link">Lien</element>
<element key="Left">Gauche</element>
<element key="Bulb">Ampoule</element>
<element key="Image">Image</element>
<element key="Caution">Attention</element>
<element key="Pencil">Stylo</element>
<element key="Phone">Téléphone</element>
<element key="Apply">Appliquer </element>
<element key="Glossary">Glossaire</element>
<element key="Settings">Paramètres</element>
<element key="Italic">Italic</element>
<element key="Paste">Coller</element>
<element key="Bookmark">Signet</element>
<element key="Memo">Mémo</element>
<element key="Warning">Attention</element>
<element key="Abbreviation">Abréviation</element>
<element key="Center">Centrée</element>
<element key="Highlight">Surligner</element>
<element key="Msg_Close">Le document actuel doit-il être sauvegardé ?</element>
<element key="EMail">E-mail</element>
<element key="Footnote">Note de bas de page</element>
<element key="CodeBlock">Bloc de code</element>
<element key="Strikethrough">Barré</element>
<element key="Copy">Copier</element>
<element key="Language">Langue</element>
<element key="Paperclip">Trombone</element>
<element key="Emphasis">Font Style</element>
<element key="ColAlign">Alignement colonnes</element>
<element key="Table">Tableau</element>
<element key="Bold">Gras</element>
<element key="Columns">Colonnes</element>
<element key="Inline">Directement</element>
<element key="Msg_Save">Veuillez sélectionner le fichier à enregistrer</element>
<element key="Magnifier">Loupe</element>
<element key="Info">Informations</element>
<element key="Headings">Rubriques</element>
<element key="TMsg_Close">Nouveau document</element>
<element key="Error">Erreur</element>
<element key="Date">Date</element>
<element key="Mail">Lettre</element>
<element key="Insert">Inserer</element>
<element key="Right">Droite</element>
<element key="SuperScript">Exposant</element>
<element key="SubScript">Indice</element>
<element key="Rows">Lignes</element>
<element key="Spellcheck">Orthographe</element>
<element key="Question">Question</element>
<element key="Reference">Référence</element>
<element key="Code">Code</element>
<element key="TT_Update">Mettre à jour la sortie</element>
<element key="TT_Table">Créer un tableau</element>
<element key="TT_Note">Ajouter une note</element>
<element key="TT_New">Réinitialiser l'éditeur</element>
<element key="TT_Open">Ouvrir un fichier</element>
<element key="TT_Settings">Modifier les paramètres</element>
<element key="TT_PDF">Exporter au format PDF</element>
<element key="TT_HTML">Exporter au format HTML</element>
<element key="Msg_Restart"> Veuillez redémarrez le programme pour que les changements prennent effet</element>.
</Strg>
</element>
<element key="GB">
<Strg>
<element key="Cut">Cut</element>
<element key="Msg_Load">Please select file to load</element>
<element key="Emoji">Emoji</element>
<element key="TOC">Table of contents</element>
<element key="Note">Note</element>
<element key="Keystroke">Keystroke</element>
<element key="Link">Link</element>
<element key="Left">Left</element>
<element key="Bulb">Bulb</element>
<element key="Image">Image</element>
<element key="Caution">Caution</element>
<element key="Pencil">Pencil</element>
<element key="Phone">Phone</element>
<element key="Apply">Apply</element>
<element key="Glossary">Glossary</element>
<element key="Settings">Settings</element>
<element key="Italic">italic</element>
<element key="Paste">Paste</element>
<element key="Bookmark">Bookmark</element>
<element key="Memo">Memo</element>
<element key="Warning">Warning</element>
<element key="Abbreviation">Abbreviation</element>
<element key="Center">Center</element>
<element key="Highlight">highlight</element>
<element key="Msg_Close">Should the current document be saved?</element>
<element key="EMail">E-Mail</element>
<element key="Footnote">Footnote</element>
<element key="CodeBlock">Block of code</element>
<element key="Strikethrough">Strikethrough</element>
<element key="Copy">Copy</element>
<element key="Language">Language</element>
<element key="Paperclip">Paperclip</element>
<element key="Emphasis">Emphasis</element>
<element key="ColAlign">Column Align</element>
<element key="Table">Table</element>
<element key="Bold">bold</element>
<element key="Columns">Columns</element>
<element key="Inline">Inline</element>
<element key="Msg_Save">Please select file to save</element>
<element key="Magnifier">Magnifier</element>
<element key="Info">Information</element>
<element key="Headings">Headings</element>
<element key="TMsg_Close">New document</element>
<element key="Error">Error</element>
<element key="Date">Date</element>
<element key="Mail">Mail</element>
<element key="Insert">Insert</element>
<element key="Right">Right</element>
<element key="SuperScript">SuperScript</element>
<element key="SubScript">SubScript</element>
<element key="Rows">Rows</element>
<element key="Spellcheck">Spellchecking</element>
<element key="Question">Question</element>
<element key="Reference">Reference</element>
<element key="Code">Code</element>
<element key="TT_Update">Update Output Window</element>
<element key="TT_Table">Create Table</element>
<element key="TT_Note">Add a Note</element>
<element key="TT_New">Reset editor</element>
<element key="TT_Open">Open File</element>
<element key="TT_Settings">Edit Settings</element>
<element key="TT_PDF">Export to PDF</element>
<element key="TT_HTML">Export to HTML</element>
<element key="Msg_Restart"> Restart the program for changes to take effect</element>
</Strg>
</element>
</map>
I am French, I do not speak English.
My apologies for the mistakes.

I have sometimes problems of expression
I am sometimes quite clumsy, please excuse me and let me know.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

Updaate:
Replaced outdated language file.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: [Module] MarkDown Gadget (all OS)

Post by Marc56us »

<element key="Msg_Restart"> Veuillez redémarrez le programme pour que les changements prennent effet</element>.
...Veuillez redémarrer ...
:wink:
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

I copied your translation. ;-)

-> updated
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply