Pelles C forum

C language => User contributions => Topic started by: JohnF on December 13, 2013, 09:33:16 AM

Title: FindFile update
Post by: JohnF on December 13, 2013, 09:33:16 AM
FindFile has been updated.

From the change log.

=============================
12th December 2013. Version 3.0.0.0 (JF)
=============================
New 64Bit version. Changed Ole image loader to GdiPlus image loader.
Will now load PNG, TIF, JPG, GIF, EMF, BMP, DIB, WMF.
Icons are loaded with LoadImage API.

Improved the way the rename edit box is displayed with border
and horizontal scrolling.

Increased number of MRU items for Browsing to ten.

32bit and 64bit project files are included in zip.

Tidied up various things, deleted obsolete images, deleted
any other files not needed and some unused functions.

If an existing MRU is selected move to top and shuffle the
rest down.
============================

EDIT: timovjl found a bug, I'd used (DWORD) instead of (LONG_PTR) in func SubClassRenameEditBoxProc using API SetWindowLongPtr().

Thanks timovjl.

EDIT2: Another bug

1. If one has selected one of the MRU's then selects BROWSE and
then Cancel, the wrong MRU was placed at the top of the list.

The following code was added to the function OnCommand() case IDC_COMBO:

// Only do IfMruExists if selection is past the BROWSE
if(idx > g_dwLastNative){
    IfMruExists(g_sInitialDir);
    idx = g_dwLastNative+1; // If MRU was placed at top idx must reflect that
}

John
Title: Re: FindFile update
Post by: Grincheux on February 10, 2016, 10:25:18 PM
Nice work except for the french translation. may be I could help you.
Title: Re: FindFile update
Post by: TimoVJL on February 10, 2016, 11:24:11 PM
No french language support?
But finnish supported?

Sure you can.
Just insert your translation to that rc-file.
John is pleased!

EDIT: There is french resource already, something wrong with it?
Title: Re: FindFile update
Post by: Grincheux on February 11, 2016, 02:45:17 AM
I will do it, tht is in the rc file, there are English, German, Frech, Protugese, Finnish and Russian string tables.
Title: Re: FindFile update
Post by: Grincheux on February 11, 2016, 03:31:07 AM
Here is the french translation :

Quote
LANGUAGE LANG_FRENCH,SUBLANG_FRENCH

STRINGTABLE
{
  IDI_FINDFILE, "Explorer le dossier"
  IDI_DELETE, "Voir les dépendances"
  IDI_MOVE, "Ouvrir"
  4, "Renommer"
  5, "Copier vers"
  6, "Déplacer vers"
  7, "Suppression"
  8, "Corbeille"
  9, "Propriétés"
  10, "Sortie"
  11, "Envoyer au Menu"
  12, "Recherche avancée"
  13, "A propos de FindFile32"
  14, "Résultats de la recherche"
  15, "Résultats de la recherche des textes"
}

STRINGTABLE
{
  16, "Envoyer à"
  17, "(aucun)"
  18, "Version %1d.%1d.%1d.%1d"
  19, "Type de fichier (*.exe)"
  20, "Choisir le programme"
  ID_LNK, "Vous devez écrire un nom d\'affichage !"
  22, "Vous devez choisir un dossier ou le programme !"
  23, "Déplacer"
  24, "%u fichier(s)"
  25, "Nom"
  26, "Dossier"
  27, "Taille"
  28, "Modifié"
  29, "Impossible de renommer le fichier ! Essayez un nom différent."
  30, "Recherche "
  31, "Recherche faite en %1.3f sec ...  %u fichier(s) trouvé(s)"
}

STRINGTABLE
{
  32, "Disques locaux "
  33, "Type de disque inconnu "
  34, "Aucun volume monté "
  35, "Lecteur de disquettes "
  36, "Disque amovible "
  37, "Disque distant "
  38, "Lecteur de CDROM "
  39, "Disque virtuel "
  40, "Date suivante"
  41, "Date précédente"
  42, "Taille supérieure"
  43, "Taille inférieure"
  44, "FindFile32"
  45, "FindFile32 -> "
  46, "Choisir un dossier pour \"Copier dans\""
  47, "Choisir un dossier pour \"Déplacer vers\""
}

STRINGTABLE
{
  48, "Êtes-vous sûr de déplacer ces articles \?"
  49, "Êtes-vous sûr de supprimer ces articles \?"
  50, "Tous les fichier n\'ont pu être supprimés !"
  51, "Permettre la recherche avancée"
  52, "Recherche de fichiers"
  53, "Recherche de textes"
  54, "Recherche dans les sous-dossiers"
  55, "*Jokers automatiques*"
  56, "Sensible à la casse"
  57, "Comptage des fichiers seulement"
  58, "Annulation"
  59, "Recherche"
  60, "Paramètres avancés de recherche"
  61, "FindFile32 - Confirmer l\'opération"
  62, "&Oui"
  63, "&Annulation"
}

STRINGTABLE
{
  64, "Message de FindFile32…"
  65, "OK"
  66, "Envoyer aux Articles de Menu"
  67, "Ajouter ou éditer une commande au menu « Envoyer vers »"
  68, "Éditer l\'item"
  69, "Éditer le menu « Envoyer vers »"
  70, "Programme"
  71, "Choisir un dossier ou un programme puis donnez lui un nom"
  72, "Nom affiché"
  73, "Le dossier ou le programme"
  74, "Vider tout"
  75, "RAZ"
  76, "Plus que des octets"
  77, "Moins que des octets"
  78, "Compléter un ou plusieurs paramètres (dates au format dd/mm/yyyy)"
  79, "Après"
}

STRINGTABLE
{
  80, "Avant"
  81, "Prêt"
  82, "&Fichier"
  83, "&Éditer"
  84, "&Aide"
  85, "Naviguer"
  86, "Recherche des textes Unicode"
  87, "Disque local"
  88, "Choisir un dossier pour rechercher"
  89, "Choisir un dossier"
  90, "Tous les types (*.*)"
}

Just one note : In French the symboles ?;!: must a space before. The symboles ';' and ':' needs a space before and after.
The symbole '.' needs no space before but one space after.
Examples :

How are you?  Comment allez-vous ?
It is hard! C'est dur !
End of line. Next line Fin de ligne. Début de la suivante

If that could help you for your future translations;
I was very suprised and apreciate this idea. Thanks a lot.
Title: Re: FindFile update
Post by: JohnF on February 11, 2016, 11:45:26 AM
Thank you. I assume this is to replace the French that is already in the RC file?

John
Title: Re: FindFile update
Post by: Grincheux on February 11, 2016, 02:25:03 PM
Yes.

I will take a look on the way you have speak many languages.
I think it's difficult to give the fields a good size, in French and in German words are longs.
Title: Re: FindFile update
Post by: JohnF on February 12, 2016, 01:20:53 PM
I'm sure anyone interested will have done it them selves but it is now updated on my web site.

Title: Re: FindFile update
Post by: JohnF on March 17, 2016, 08:11:30 AM
Hello,

There is one more string I need translating into various languages.

"Are you sure you want to move these item(s) to the RecycleBin?"

I have English(obviously) and Russian, and would like to have

FRENCH
GERMAN
PORTUGUESE, PORTUGUESE_BRAZILIAN
FINNISH

Your kindness will be appreciated.

John


Title: Re: FindFile update
Post by: Grincheux on March 17, 2016, 10:56:43 AM
Quote
"Are you sure you want to move these item(s) to the RecycleBin?"

Etes-vous certain de vouloir mettre ces éléments dans la corbeille .

My answer in French
Title: Re: FindFile update
Post by: Sam Steele on April 09, 2016, 03:14:25 AM
Sind Sie sicher, dass Sie diese Elemente in den Papierkorb verschieben?
Title: Re: FindFile update
Post by: JohnF on April 09, 2016, 09:01:37 AM
Thank you both!

John
Title: Re: FindFile update
Post by: jj2007 on April 12, 2016, 03:19:14 AM
Sind Sie sicher, dass Sie diese Elemente in den Papierkorb verschieben wollen?
Title: Re: FindFile update
Post by: Siekmanski on April 12, 2016, 12:25:25 PM
Dutch: Weet u zeker dat u deze onderdelen naar de prullenbak wilt verplaatsen?
Title: Re: FindFile update
Post by: JohnF on April 12, 2016, 02:04:37 PM
Dutch: Weet u zeker dat u deze onderdelen naar de prullenbak wilt verplaatsen?

I would only need Dutch if you were to do the whole string resource in Dutch.
Code: [Select]
STRINGTABLE
{
  1, "Explore Folder"
  2, "View Dependencies"
  3, "Open"
  4, "Rename"
  5, "CopyTo"
  6, "MoveTo"
  7, "Delete"
  8, "Recycle Bin"
  9, "Properties"
  10, "Exit"
  11, "SendTo Menu"
  12, "Extended Search"
  13, "About FindFile32"
  14, "View Search Results"
  15, "Text Search Results"
}

STRINGTABLE
{
  16, "Send To"
  17, "(none)"
  18, "Version %1d.%1d\0"
  19, "File Type (*.exe)"
  20, "Choose Program"
  21, "You need to enter a Display Name!"
  22, "You need to select either a Folder or Program!"
  23, "Move"
  24, "%u File(s)"
  25, "Name"
  26, "Folder"
  27, "Size"
  28, "Modified"
  29, "Could not rename file! Try a different name."
  30, "Searching "
  31, "search done in %1.3f sec ...  %u File(s) found"
}

STRINGTABLE
{
  32, "Local Drives "
  33, "Unknown Drive Type "
  34, "No Mounted Volume "
  35, "Floppy Drive "
  36, "Removable Drive "
  37, "Remote Drive "
  38, "CDROM Drive "
  39, "RAM Drive "
  40, "Date After"
  41, "Date Before"
  42, "Size Greater"
  43, "Size Less"
  44, "FindFile32"
  45, "FindFile32 -> "
  46, "Choose a Folder to Copy To"
  47, "Choose a Folder to Move To"
}

STRINGTABLE
{
  48, "Are you sure you want to Move these item(s)\?"
  49, "Are you sure you want to Delete these item(s)\?"
  50, "Not all of the files could be deleted!"
  51, "Enable Extended Search"
  52, "File Search"
  53, "Text Search"
  54, "Search SubFolders"
  55, "*AutoWildcards*"
  56, "Case Sensitive"
  57, "File counts only"
  58, "Cancel"
  59, "Search"
  60, "Extended Search Parameters"
  61, "FindFile32 - Confirm Operation"
  62, "&Yes"
  63, "&Cancel"
}

STRINGTABLE
{
  64, "FindFile32 Message..."
  65, "OK"
  66, "SendTo Menu Items"
  67, "Add or Edit a SendTo Menu Item"
  68, "Edit Item"
  69, "Edit SendTo Menu"
  70, "Program"
  71, "Choose Either a Folder or Program and enter the Display Name"
  72, "Display Name"
  73, "The Folder Or Program"
  74, "Clear All"
  75, "Reset"
  76, "More Than Bytes"
  77, "Less Than Bytes"
  78, "Fill in one or more Parameters (dates require dd/mm/yyyy)"
  79, "After"
}

STRINGTABLE
{
  80, "Before"
  81, "Ready"
  82, "&File"
  83, "&Edit"
  84, "&Help"
  85, "BROWSE"
  86, "Unicode Text Search"
  87, "Local Drive "
  88, "Choose a Folder to Search"
  89, "Choose a Folder"
  90, "All Types (*.*)"
  91, "Are you sure you want to move these item(s) to the RecycleBin?"
}

If you do it thanks.

John

Title: Re: FindFile update
Post by: Siekmanski on April 12, 2016, 04:03:13 PM
Dutch version,

Code: [Select]
STRINGTABLE
{
  1, "Verken Map"
  2, "Bekijk Samenhang"
  3, "Openen"
  4, "Hernoemen"
  5, "Kopiëren Naar"
  6, "Verplaatsen Naar"
  7, "Verwijderen"
  8, "Prullenbak"
  9, "Eigenschappen"
  10, "Afsluiten"
  11, "Verzenden Naar Menu"
  12, "Uitgebreid Zoeken"
  13, "Over FindFile32"
  14, "Bekijk Zoekresultaten"
  15, "Tekst Zoekresultaten"
}

STRINGTABLE
{
  16, "Verzenden Naar"
  17, "(geen)"
  18, "Versie %1d.%1d\0"
  19, "Bestandstype (*.exe)"
  20, "Kies Programma"
  21, "U moet een weergavenaam invoeren!"
  22, "U moet ofwel een Map of een Programma kiezen!"
  23, "Verplaats"
  24, "%u Bestand(en)"
  25, "Naam"
  26, "Map"
  27, "Grootte"
  28, "Gewijzigd"
  29, "Kan Bestand niet hernoemen! Probeer een andere Naam."
  30, "Bezig met Zoeken "
  31, "Zoeken gedaan in %1.3f sec ...  %u Bestand(en) gevonden"
}

STRINGTABLE
{
  32, "Lokale Stations "
  33, "Onbekend Stationstype "
  34, "Geen Verbonden Apparaat "
  35, "Floppy Station "
  36, "Verwijderbaar Station "
  37, "Netwerk Station "
  38, "CDROM Station "
  39, "RAM Station "
  40, "Datum Na"
  41, "Datum Voor"
  42, "Omvang Groter"
  43, "Omvang Kleiner"
  44, "FindFile32"
  45, "FindFile32 -> "
  46, "Kies een Map om naar te Kopiëren"
  47, "Kies een Map om naar te Verplaatsen"
}

STRINGTABLE
{
  48, "Weet u zeker dat u deze Bestand(en) wilt Verplaatsen\?"
  49, "Weet u zeker dat u deze Bestand(en) wilt Verwijderen\?"
  50, "Niet alle bestanden kunnen worden Verwijderd!"
  51, "Inschakelen Uitgebreid zoeken"
  52, "Bestand Zoeken"
  53, "Tekst Zoeken"
  54, "Zoek onderliggende Mappen"
  55, "*AutoWildcards*"
  56, "Hoofdlettergevoelig"
  57, "Alleen bestand tellen"
  58, "Annuleren"
  59, "Zoeken"
  60, "Uitgebreide Zoekparameters"
  61, "FindFile32 - Bevestig Opdracht"
  62, "&Ja"
  63, "&Annuleren"
}

STRINGTABLE
{
  64, "FindFile32 Bericht..."
  65, "OK"
  66, "Verzenden Naar Menu Items"
  67, "Toevoegen of Bewerken van een Verzenden Naar Menu Item"
  68, "Bewerken Item"
  69, "Bewerken Verzenden Naar Menu"
  70, "Programma"
  71, "Kies voor een Map of een Programma en voer de Weergavenaam in"
  72, "Weergavenaam"
  73, "Een Map of een Programma
  74, "Wis Alles"
  75, "Reset"
  76, "Meer dan Bytes"
  77, "Minder dan Bytes"
  78, "Vul een of meer Parameters in (data format dd/mm/yyyy)"
  79, "Na"
}

STRINGTABLE
{
  80, "Vooraf"
  81, "Klaar"
  82, "&Bestand"
  83, "&Bewerkrn"
  84, "&Help"
  85, "BEKIJKEN"
  86, "Unicode Tekst Zoeken"
  87, "Lokaal Station "
  88, "Kies een Map om in te Zoeken"
  89, "Kies een Map"
  90, "Alle Typen (*.*)"
  91, "Weet u zeker dat u deze Bestand(en) naar de Prullenbak wilt Verplaatsen?"
}

Marinus
Title: Re: FindFile update
Post by: JohnF on April 12, 2016, 04:13:20 PM
Well done and thanks!

John