View Issue Details

IDProjectCategoryView StatusLast Update
0029777LazarusOtherpublic2016-03-10 09:01
ReporterPéter GáborAssigned ToMaxim Ganetsky 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.7 (SVN)Product Build 
Target VersionFixed in Version1.8 
Summary0029777: Localization support for glazres
DescriptionAttached patch contains the required changes to support localization in glazres.
(Hungarian translation included.)
TagsNo tags attached.
Fixed in Revision51895
LazTarget-
Widgetset
Attached Files
  • glazres_localization_support.diff (12,768 bytes)
    Index: tools/glazres/glazres.lpi
    ===================================================================
    --- tools/glazres/glazres.lpi	(revision 51822)
    +++ tools/glazres/glazres.lpi	(working copy)
    @@ -12,7 +12,8 @@
           <Icon Value="0"/>
         </General>
         <i18n>
    -      <EnableI18N LFM="False"/>
    +      <EnableI18N Value="True"/>
    +      <OutDir Value="languages"/>
         </i18n>
         <VersionInfo>
           <StringTable ProductVersion=""/>
    Index: tools/glazres/glazres.lpr
    ===================================================================
    --- tools/glazres/glazres.lpr	(revision 51822)
    +++ tools/glazres/glazres.lpr	(working copy)
    @@ -7,7 +7,7 @@
       cthreads,
       {$ENDIF}{$ENDIF}
       Interfaces, // this includes the LCL widgetset
    -  Forms, glazresmain;
    +  Forms, glazresmain, DefaultTranslator;
     
     {$R *.res}
     
    Index: tools/glazres/glazresmain.lfm
    ===================================================================
    --- tools/glazres/glazresmain.lfm	(revision 51822)
    +++ tools/glazres/glazresmain.lfm	(working copy)
    @@ -184,7 +184,7 @@
       OnClose = FormClose
       OnCreate = FormCreate
       OnShow = FormShow
    -  LCLVersion = '1.5'
    +  LCLVersion = '1.7'
       object LrsLabel: TLabel
         Left = 16
         Height = 17
    @@ -376,9 +376,7 @@
         Width = 552
         OnAcceptFileName = DestEdtAcceptFileName
         DialogKind = dkSave
    -    DialogTitle = 'Save resourcefile as'
         DialogOptions = [ofOverwritePrompt, ofEnableSizing, ofViewDetail]
    -    Filter = 'Lazarus Resource Files|*.lrs|All Files|*'
         FilterIndex = 0
         DefaultExt = 'lrs'
         HideDirectories = False
    Index: tools/glazres/glazresmain.pp
    ===================================================================
    --- tools/glazres/glazresmain.pp	(revision 51822)
    +++ tools/glazres/glazresmain.pp	(working copy)
    @@ -95,7 +95,7 @@
     
     {$R *.lfm}
     
    -const
    +resourcestring
       ErrConvertToText = 'ERROR: unable to convert Delphi form to text: "%s"';
       ErrFileNotFound = 'ERROR: File not found: "%s"';
       ErrFileIsResource = 'ERROR: Cannot add resource file to itself ("%s")';
    @@ -109,6 +109,15 @@
     
       MsgWrongExt = 'Filename does not have the required extension: fix it?';
     
    +  DESaveResourcefileAs = 'Save resourcefile as';
    +  DEFilter = 'Lazarus Resource Files|*.lrs|All Files|*';
    +  ODOpenExistingFile = 'Open existing file';
    +  OPDOpenExistingPicture = 'Open existing picture';
    +  OPDFilter ='Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitmaps (*.bmp)|*.bmp|Cursor (*.cur)|*.cur|Icon (*.ico)|*.ico|Mac OS X Icon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animated GIF (*.gif)|*.gif|TGA Image File (*.tga)|*.tga|';
    +  OPDFilterAll = 'All files';
    +  CBtnCancel = 'Cancel';
    +
    +const
       AppName = 'GLazRes';
       IniName = {$ifdef windows}'GLazRes.ini'{$else}'glazres.conf'{$endif};
       scPosition = 'Position';
    @@ -139,6 +148,13 @@
       FIniFileName := GetAppConfigDir(False) + IniName;
       CreateAnchors;
       LoadWindowGeometry;
    +  DestEdt.DialogTitle := DESaveResourcefileAs;
    +  DestEdt.Filter := DEFilter;
    +  OpenDialog.Title := ODOpenExistingFile;
    +  //OpenDialog.Filter := OPDFilterAll + {$IFDEF WINDOWS} ' (*.*)|*.*|' {$ELSE} ' (*)|*|' {$ENDIF} ;
    +  OpenPictureDialog.Title := OPDOpenExistingPicture;
    +  OpenPictureDialog.Filter := OPDFilter + OPDFilterAll + {$IFDEF WINDOWS} ' (*.*)|*.*|' {$ELSE} ' (*)|*|' {$ENDIF} ;
    +  CloseBtn.Caption := CBtnCancel;
     end;
     
     procedure TGLazResForm.FormShow(Sender: TObject);
    Index: tools/glazres/languages/glazres.hu.po
    ===================================================================
    --- tools/glazres/languages/glazres.hu.po	(revision 0)
    +++ tools/glazres/languages/glazres.hu.po	(working copy)
    @@ -0,0 +1,141 @@
    +msgid ""
    +msgstr ""
    +"Project-Id-Version: \n"
    +"POT-Creation-Date: \n"
    +"PO-Revision-Date: \n"
    +"Last-Translator: Péter Gábor <ptrg@freemail.hu>\n"
    +"Language-Team: Magyar (Hungarian)\n"
    +"Language: hu\n"
    +"MIME-Version: 1.0\n"
    +"Content-Type: text/plain; charset=UTF-8\n"
    +"Content-Transfer-Encoding: 8bit\n"
    +"X-Generator: Poedit 1.5.4\n"
    +
    +#: glazresmain.cbtncancel
    +msgid "Cancel"
    +msgstr "Mégse"
    +
    +#: glazresmain.defilter
    +msgctxt "glazresmain.defilter"
    +msgid "Lazarus Resource Files|*.lrs|All Files|*"
    +msgstr "Lazarus erőforrásfájlok|*.lrs|Minden fájl|*"
    +
    +#: glazresmain.desaveresourcefileas
    +msgctxt "glazresmain.desaveresourcefileas"
    +msgid "Save resourcefile as"
    +msgstr "Erőforrásfájl mentése"
    +
    +#: glazresmain.errconverttotext
    +msgid "ERROR: unable to convert Delphi form to text: \"%s\""
    +msgstr "HIBA: A Delphi form nem alakítható át szöveggé: \"%s\""
    +
    +#: glazresmain.errcreate
    +msgid "ERROR: Cannot create \"%s\""
    +msgstr "HIBA: Nem hozható létre: \"%s\""
    +
    +#: glazresmain.errfileisresource
    +msgid "ERROR: Cannot add resource file to itself (\"%s\")"
    +msgstr "HIBA: Az erőforrás nem építhető önmagába (\"%s\")"
    +
    +#: glazresmain.errfilenotfound
    +msgid "ERROR: File not found: \"%s\""
    +msgstr "HIBA: a fájl nem található: \"%s\""
    +
    +#: glazresmain.errnoresourcename
    +msgid "ERROR: No resourcename found for \"%s\""
    +msgstr "HIBA: Nem találhatók erőforrások ehhez: \"%s\""
    +
    +#: glazresmain.errread
    +msgid "ERROR: Cannot read from \"%s\""
    +msgstr "HIBA: Nem lehet olvasni innen: \"%s\""
    +
    +#: glazresmain.msgcreatinglrs
    +msgid "Creating \"%s\""
    +msgstr "„%s” létrehozása"
    +
    +#: glazresmain.msgprocessing
    +msgid "Processing \"%s\""
    +msgstr "\"%s\" feldolgozása"
    +
    +#: glazresmain.msgresourcenametype
    +msgid " Resource name = \"%s\", Type = \"%s\""
    +msgstr " Erőforrás neve = \"%s\", típusa = \"%s\""
    +
    +#: glazresmain.msgsuccess
    +msgid ""
    +"Done.\n"
    +"Number of resources added: %d.\n"
    +msgstr ""
    +"Kész.\n"
    +"Hozzáadott erőforrások száma: %d\n"
    +
    +#: glazresmain.msgwrongext
    +msgid "Filename does not have the required extension: fix it?"
    +msgstr "A fájl kiterjesztése nem megfelelő. Javítás?"
    +
    +#: glazresmain.odopenexistingfile
    +msgctxt "glazresmain.odopenexistingfile"
    +msgid "Open existing file"
    +msgstr "Létező fájl megnyitása"
    +
    +#: glazresmain.opdfilter
    +msgctxt "glazresmain.opdfilter"
    +msgid "Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitmaps (*.bmp)|*.bmp|Cursor (*.cur)|*.cur|Icon (*.ico)|*.ico|Mac OS X Icon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animated GIF (*.gif)|*.gif|TGA Image File (*.tga)|*.tga|"
    +msgstr "Grafika (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitképek (*.bmp)|*.bmp|Kurzor (*.cur)|*.cur|Ikon (*.ico)|*.ico|Mac OS X Ikon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animált GIF (*.gif)|*.gif|TGA képfájl (*.tga)|*.tga|"
    +
    +#: glazresmain.opdfilterall
    +msgid "All files"
    +msgstr "Minden fájl"
    +
    +#: glazresmain.opdopenexistingpicture
    +msgctxt "glazresmain.opdopenexistingpicture"
    +msgid "Open existing picture"
    +msgstr "Létező kép megnyitása"
    +
    +#: tglazresform.addanybtn.hint
    +msgid "Add (any kind of) files to the list"
    +msgstr "Fájlok hozzáadása a listához (bármilyen típusú)"
    +
    +#: tglazresform.addimgbtn.hint
    +msgid "Add images to the list"
    +msgstr "Képek hozzáadása a listához"
    +
    +#: tglazresform.caption
    +msgid "LRS Builder"
    +msgstr "LRS építő"
    +
    +#: tglazresform.clearbtn.caption
    +msgid "Clear"
    +msgstr "Kiürítés"
    +
    +#: tglazresform.clearbtn.hint
    +msgid "Cleare the entire list"
    +msgstr "A lista kiürítése"
    +
    +#: tglazresform.closebtn.hint
    +msgid "Exit the program"
    +msgstr "Kilépés a programból"
    +
    +#: tglazresform.deletebtn.hint
    +msgid "Delete selected files from the list"
    +msgstr "Kiválasztott fájlok törlése a listából"
    +
    +#: tglazresform.fileslabel.caption
    +msgid "Files to include"
    +msgstr "Beemelendő fájlok"
    +
    +#: tglazresform.lrslabel.caption
    +msgid "Lazarus Resource Filename"
    +msgstr "Lazarus erőforrásfájl neve"
    +
    +#: tglazresform.messageslabel.caption
    +msgid "Messages"
    +msgstr "Üzenetek"
    +
    +#: tglazresform.startbtn.caption
    +msgid "Create LRS"
    +msgstr "LRS létrehozása"
    +
    +#: tglazresform.startbtn.hint
    +msgid "Create the output LRS file"
    +msgstr "Az LRS kimeneti fájl létrehozása"
    Index: tools/glazres/languages/glazres.po
    ===================================================================
    --- tools/glazres/languages/glazres.po	(revision 0)
    +++ tools/glazres/languages/glazres.po	(working copy)
    @@ -0,0 +1,130 @@
    +msgid ""
    +msgstr "Content-Type: text/plain; charset=UTF-8"
    +
    +#: glazresmain.cbtncancel
    +msgid "Cancel"
    +msgstr ""
    +
    +#: glazresmain.defilter
    +msgctxt "glazresmain.defilter"
    +msgid "Lazarus Resource Files|*.lrs|All Files|*"
    +msgstr ""
    +
    +#: glazresmain.desaveresourcefileas
    +msgctxt "glazresmain.desaveresourcefileas"
    +msgid "Save resourcefile as"
    +msgstr ""
    +
    +#: glazresmain.errconverttotext
    +msgid "ERROR: unable to convert Delphi form to text: \"%s\""
    +msgstr ""
    +
    +#: glazresmain.errcreate
    +msgid "ERROR: Cannot create \"%s\""
    +msgstr ""
    +
    +#: glazresmain.errfileisresource
    +msgid "ERROR: Cannot add resource file to itself (\"%s\")"
    +msgstr ""
    +
    +#: glazresmain.errfilenotfound
    +msgid "ERROR: File not found: \"%s\""
    +msgstr ""
    +
    +#: glazresmain.errnoresourcename
    +msgid "ERROR: No resourcename found for \"%s\""
    +msgstr ""
    +
    +#: glazresmain.errread
    +msgid "ERROR: Cannot read from \"%s\""
    +msgstr ""
    +
    +#: glazresmain.msgcreatinglrs
    +msgid "Creating \"%s\""
    +msgstr ""
    +
    +#: glazresmain.msgprocessing
    +msgid "Processing \"%s\""
    +msgstr ""
    +
    +#: glazresmain.msgresourcenametype
    +msgid " Resource name = \"%s\", Type = \"%s\""
    +msgstr ""
    +
    +#: glazresmain.msgsuccess
    +msgid ""
    +"Done.\n"
    +"Number of resources added: %d.\n"
    +msgstr ""
    +
    +#: glazresmain.msgwrongext
    +msgid "Filename does not have the required extension: fix it?"
    +msgstr ""
    +
    +#: glazresmain.odopenexistingfile
    +msgctxt "glazresmain.odopenexistingfile"
    +msgid "Open existing file"
    +msgstr ""
    +
    +#: glazresmain.opdfilter
    +msgctxt "glazresmain.opdfilter"
    +msgid "Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitmaps (*.bmp)|*.bmp|Cursor (*.cur)|*.cur|Icon (*.ico)|*.ico|Mac OS X Icon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animated GIF (*.gif)|*.gif|TGA Image File (*.tga)|*.tga|"
    +msgstr ""
    +
    +#: glazresmain.opdfilterall
    +msgid "All files"
    +msgstr ""
    +
    +#: glazresmain.opdopenexistingpicture
    +msgctxt "glazresmain.opdopenexistingpicture"
    +msgid "Open existing picture"
    +msgstr ""
    +
    +#: tglazresform.addanybtn.hint
    +msgid "Add (any kind of) files to the list"
    +msgstr ""
    +
    +#: tglazresform.addimgbtn.hint
    +msgid "Add images to the list"
    +msgstr ""
    +
    +#: tglazresform.caption
    +msgid "LRS Builder"
    +msgstr ""
    +
    +#: tglazresform.clearbtn.caption
    +msgid "Clear"
    +msgstr ""
    +
    +#: tglazresform.clearbtn.hint
    +msgid "Cleare the entire list"
    +msgstr ""
    +
    +#: tglazresform.closebtn.hint
    +msgid "Exit the program"
    +msgstr ""
    +
    +#: tglazresform.deletebtn.hint
    +msgid "Delete selected files from the list"
    +msgstr ""
    +
    +#: tglazresform.fileslabel.caption
    +msgid "Files to include"
    +msgstr ""
    +
    +#: tglazresform.lrslabel.caption
    +msgid "Lazarus Resource Filename"
    +msgstr ""
    +
    +#: tglazresform.messageslabel.caption
    +msgid "Messages"
    +msgstr ""
    +
    +#: tglazresform.startbtn.caption
    +msgid "Create LRS"
    +msgstr ""
    +
    +#: tglazresform.startbtn.hint
    +msgid "Create the output LRS file"
    +msgstr ""
    +
    

Activities

Péter Gábor

2016-03-04 12:29

reporter  

glazres_localization_support.diff (12,768 bytes)
Index: tools/glazres/glazres.lpi
===================================================================
--- tools/glazres/glazres.lpi	(revision 51822)
+++ tools/glazres/glazres.lpi	(working copy)
@@ -12,7 +12,8 @@
       <Icon Value="0"/>
     </General>
     <i18n>
-      <EnableI18N LFM="False"/>
+      <EnableI18N Value="True"/>
+      <OutDir Value="languages"/>
     </i18n>
     <VersionInfo>
       <StringTable ProductVersion=""/>
Index: tools/glazres/glazres.lpr
===================================================================
--- tools/glazres/glazres.lpr	(revision 51822)
+++ tools/glazres/glazres.lpr	(working copy)
@@ -7,7 +7,7 @@
   cthreads,
   {$ENDIF}{$ENDIF}
   Interfaces, // this includes the LCL widgetset
-  Forms, glazresmain;
+  Forms, glazresmain, DefaultTranslator;
 
 {$R *.res}
 
Index: tools/glazres/glazresmain.lfm
===================================================================
--- tools/glazres/glazresmain.lfm	(revision 51822)
+++ tools/glazres/glazresmain.lfm	(working copy)
@@ -184,7 +184,7 @@
   OnClose = FormClose
   OnCreate = FormCreate
   OnShow = FormShow
-  LCLVersion = '1.5'
+  LCLVersion = '1.7'
   object LrsLabel: TLabel
     Left = 16
     Height = 17
@@ -376,9 +376,7 @@
     Width = 552
     OnAcceptFileName = DestEdtAcceptFileName
     DialogKind = dkSave
-    DialogTitle = 'Save resourcefile as'
     DialogOptions = [ofOverwritePrompt, ofEnableSizing, ofViewDetail]
-    Filter = 'Lazarus Resource Files|*.lrs|All Files|*'
     FilterIndex = 0
     DefaultExt = 'lrs'
     HideDirectories = False
Index: tools/glazres/glazresmain.pp
===================================================================
--- tools/glazres/glazresmain.pp	(revision 51822)
+++ tools/glazres/glazresmain.pp	(working copy)
@@ -95,7 +95,7 @@
 
 {$R *.lfm}
 
-const
+resourcestring
   ErrConvertToText = 'ERROR: unable to convert Delphi form to text: "%s"';
   ErrFileNotFound = 'ERROR: File not found: "%s"';
   ErrFileIsResource = 'ERROR: Cannot add resource file to itself ("%s")';
@@ -109,6 +109,15 @@
 
   MsgWrongExt = 'Filename does not have the required extension: fix it?';
 
+  DESaveResourcefileAs = 'Save resourcefile as';
+  DEFilter = 'Lazarus Resource Files|*.lrs|All Files|*';
+  ODOpenExistingFile = 'Open existing file';
+  OPDOpenExistingPicture = 'Open existing picture';
+  OPDFilter ='Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitmaps (*.bmp)|*.bmp|Cursor (*.cur)|*.cur|Icon (*.ico)|*.ico|Mac OS X Icon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animated GIF (*.gif)|*.gif|TGA Image File (*.tga)|*.tga|';
+  OPDFilterAll = 'All files';
+  CBtnCancel = 'Cancel';
+
+const
   AppName = 'GLazRes';
   IniName = {$ifdef windows}'GLazRes.ini'{$else}'glazres.conf'{$endif};
   scPosition = 'Position';
@@ -139,6 +148,13 @@
   FIniFileName := GetAppConfigDir(False) + IniName;
   CreateAnchors;
   LoadWindowGeometry;
+  DestEdt.DialogTitle := DESaveResourcefileAs;
+  DestEdt.Filter := DEFilter;
+  OpenDialog.Title := ODOpenExistingFile;
+  //OpenDialog.Filter := OPDFilterAll + {$IFDEF WINDOWS} ' (*.*)|*.*|' {$ELSE} ' (*)|*|' {$ENDIF} ;
+  OpenPictureDialog.Title := OPDOpenExistingPicture;
+  OpenPictureDialog.Filter := OPDFilter + OPDFilterAll + {$IFDEF WINDOWS} ' (*.*)|*.*|' {$ELSE} ' (*)|*|' {$ENDIF} ;
+  CloseBtn.Caption := CBtnCancel;
 end;
 
 procedure TGLazResForm.FormShow(Sender: TObject);
Index: tools/glazres/languages/glazres.hu.po
===================================================================
--- tools/glazres/languages/glazres.hu.po	(revision 0)
+++ tools/glazres/languages/glazres.hu.po	(working copy)
@@ -0,0 +1,141 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: Péter Gábor <ptrg@freemail.hu>\n"
+"Language-Team: Magyar (Hungarian)\n"
+"Language: hu\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#: glazresmain.cbtncancel
+msgid "Cancel"
+msgstr "Mégse"
+
+#: glazresmain.defilter
+msgctxt "glazresmain.defilter"
+msgid "Lazarus Resource Files|*.lrs|All Files|*"
+msgstr "Lazarus erőforrásfájlok|*.lrs|Minden fájl|*"
+
+#: glazresmain.desaveresourcefileas
+msgctxt "glazresmain.desaveresourcefileas"
+msgid "Save resourcefile as"
+msgstr "Erőforrásfájl mentése"
+
+#: glazresmain.errconverttotext
+msgid "ERROR: unable to convert Delphi form to text: \"%s\""
+msgstr "HIBA: A Delphi form nem alakítható át szöveggé: \"%s\""
+
+#: glazresmain.errcreate
+msgid "ERROR: Cannot create \"%s\""
+msgstr "HIBA: Nem hozható létre: \"%s\""
+
+#: glazresmain.errfileisresource
+msgid "ERROR: Cannot add resource file to itself (\"%s\")"
+msgstr "HIBA: Az erőforrás nem építhető önmagába (\"%s\")"
+
+#: glazresmain.errfilenotfound
+msgid "ERROR: File not found: \"%s\""
+msgstr "HIBA: a fájl nem található: \"%s\""
+
+#: glazresmain.errnoresourcename
+msgid "ERROR: No resourcename found for \"%s\""
+msgstr "HIBA: Nem találhatók erőforrások ehhez: \"%s\""
+
+#: glazresmain.errread
+msgid "ERROR: Cannot read from \"%s\""
+msgstr "HIBA: Nem lehet olvasni innen: \"%s\""
+
+#: glazresmain.msgcreatinglrs
+msgid "Creating \"%s\""
+msgstr "„%s” létrehozása"
+
+#: glazresmain.msgprocessing
+msgid "Processing \"%s\""
+msgstr "\"%s\" feldolgozása"
+
+#: glazresmain.msgresourcenametype
+msgid " Resource name = \"%s\", Type = \"%s\""
+msgstr " Erőforrás neve = \"%s\", típusa = \"%s\""
+
+#: glazresmain.msgsuccess
+msgid ""
+"Done.\n"
+"Number of resources added: %d.\n"
+msgstr ""
+"Kész.\n"
+"Hozzáadott erőforrások száma: %d\n"
+
+#: glazresmain.msgwrongext
+msgid "Filename does not have the required extension: fix it?"
+msgstr "A fájl kiterjesztése nem megfelelő. Javítás?"
+
+#: glazresmain.odopenexistingfile
+msgctxt "glazresmain.odopenexistingfile"
+msgid "Open existing file"
+msgstr "Létező fájl megnyitása"
+
+#: glazresmain.opdfilter
+msgctxt "glazresmain.opdfilter"
+msgid "Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitmaps (*.bmp)|*.bmp|Cursor (*.cur)|*.cur|Icon (*.ico)|*.ico|Mac OS X Icon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animated GIF (*.gif)|*.gif|TGA Image File (*.tga)|*.tga|"
+msgstr "Grafika (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitképek (*.bmp)|*.bmp|Kurzor (*.cur)|*.cur|Ikon (*.ico)|*.ico|Mac OS X Ikon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animált GIF (*.gif)|*.gif|TGA képfájl (*.tga)|*.tga|"
+
+#: glazresmain.opdfilterall
+msgid "All files"
+msgstr "Minden fájl"
+
+#: glazresmain.opdopenexistingpicture
+msgctxt "glazresmain.opdopenexistingpicture"
+msgid "Open existing picture"
+msgstr "Létező kép megnyitása"
+
+#: tglazresform.addanybtn.hint
+msgid "Add (any kind of) files to the list"
+msgstr "Fájlok hozzáadása a listához (bármilyen típusú)"
+
+#: tglazresform.addimgbtn.hint
+msgid "Add images to the list"
+msgstr "Képek hozzáadása a listához"
+
+#: tglazresform.caption
+msgid "LRS Builder"
+msgstr "LRS építő"
+
+#: tglazresform.clearbtn.caption
+msgid "Clear"
+msgstr "Kiürítés"
+
+#: tglazresform.clearbtn.hint
+msgid "Cleare the entire list"
+msgstr "A lista kiürítése"
+
+#: tglazresform.closebtn.hint
+msgid "Exit the program"
+msgstr "Kilépés a programból"
+
+#: tglazresform.deletebtn.hint
+msgid "Delete selected files from the list"
+msgstr "Kiválasztott fájlok törlése a listából"
+
+#: tglazresform.fileslabel.caption
+msgid "Files to include"
+msgstr "Beemelendő fájlok"
+
+#: tglazresform.lrslabel.caption
+msgid "Lazarus Resource Filename"
+msgstr "Lazarus erőforrásfájl neve"
+
+#: tglazresform.messageslabel.caption
+msgid "Messages"
+msgstr "Üzenetek"
+
+#: tglazresform.startbtn.caption
+msgid "Create LRS"
+msgstr "LRS létrehozása"
+
+#: tglazresform.startbtn.hint
+msgid "Create the output LRS file"
+msgstr "Az LRS kimeneti fájl létrehozása"
Index: tools/glazres/languages/glazres.po
===================================================================
--- tools/glazres/languages/glazres.po	(revision 0)
+++ tools/glazres/languages/glazres.po	(working copy)
@@ -0,0 +1,130 @@
+msgid ""
+msgstr "Content-Type: text/plain; charset=UTF-8"
+
+#: glazresmain.cbtncancel
+msgid "Cancel"
+msgstr ""
+
+#: glazresmain.defilter
+msgctxt "glazresmain.defilter"
+msgid "Lazarus Resource Files|*.lrs|All Files|*"
+msgstr ""
+
+#: glazresmain.desaveresourcefileas
+msgctxt "glazresmain.desaveresourcefileas"
+msgid "Save resourcefile as"
+msgstr ""
+
+#: glazresmain.errconverttotext
+msgid "ERROR: unable to convert Delphi form to text: \"%s\""
+msgstr ""
+
+#: glazresmain.errcreate
+msgid "ERROR: Cannot create \"%s\""
+msgstr ""
+
+#: glazresmain.errfileisresource
+msgid "ERROR: Cannot add resource file to itself (\"%s\")"
+msgstr ""
+
+#: glazresmain.errfilenotfound
+msgid "ERROR: File not found: \"%s\""
+msgstr ""
+
+#: glazresmain.errnoresourcename
+msgid "ERROR: No resourcename found for \"%s\""
+msgstr ""
+
+#: glazresmain.errread
+msgid "ERROR: Cannot read from \"%s\""
+msgstr ""
+
+#: glazresmain.msgcreatinglrs
+msgid "Creating \"%s\""
+msgstr ""
+
+#: glazresmain.msgprocessing
+msgid "Processing \"%s\""
+msgstr ""
+
+#: glazresmain.msgresourcenametype
+msgid " Resource name = \"%s\", Type = \"%s\""
+msgstr ""
+
+#: glazresmain.msgsuccess
+msgid ""
+"Done.\n"
+"Number of resources added: %d.\n"
+msgstr ""
+
+#: glazresmain.msgwrongext
+msgid "Filename does not have the required extension: fix it?"
+msgstr ""
+
+#: glazresmain.odopenexistingfile
+msgctxt "glazresmain.odopenexistingfile"
+msgid "Open existing file"
+msgstr ""
+
+#: glazresmain.opdfilter
+msgctxt "glazresmain.opdfilter"
+msgid "Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.gif;*.tga|Portable Network Graphic (*.png)|*.png|Pixmap (*.xpm)|*.xpm|Bitmaps (*.bmp)|*.bmp|Cursor (*.cur)|*.cur|Icon (*.ico)|*.ico|Mac OS X Icon (*.icns)|*.icns|Joint Picture Expert Group (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|Tagged Image File Format (*.tif;*.tiff)|*.tif;*.tiff|Graphics Interchange Format (*.gif)|*.gif|Portable PixMap (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm|Animated GIF (*.gif)|*.gif|TGA Image File (*.tga)|*.tga|"
+msgstr ""
+
+#: glazresmain.opdfilterall
+msgid "All files"
+msgstr ""
+
+#: glazresmain.opdopenexistingpicture
+msgctxt "glazresmain.opdopenexistingpicture"
+msgid "Open existing picture"
+msgstr ""
+
+#: tglazresform.addanybtn.hint
+msgid "Add (any kind of) files to the list"
+msgstr ""
+
+#: tglazresform.addimgbtn.hint
+msgid "Add images to the list"
+msgstr ""
+
+#: tglazresform.caption
+msgid "LRS Builder"
+msgstr ""
+
+#: tglazresform.clearbtn.caption
+msgid "Clear"
+msgstr ""
+
+#: tglazresform.clearbtn.hint
+msgid "Cleare the entire list"
+msgstr ""
+
+#: tglazresform.closebtn.hint
+msgid "Exit the program"
+msgstr ""
+
+#: tglazresform.deletebtn.hint
+msgid "Delete selected files from the list"
+msgstr ""
+
+#: tglazresform.fileslabel.caption
+msgid "Files to include"
+msgstr ""
+
+#: tglazresform.lrslabel.caption
+msgid "Lazarus Resource Filename"
+msgstr ""
+
+#: tglazresform.messageslabel.caption
+msgid "Messages"
+msgstr ""
+
+#: tglazresform.startbtn.caption
+msgid "Create LRS"
+msgstr ""
+
+#: tglazresform.startbtn.hint
+msgid "Create the output LRS file"
+msgstr ""
+

Maxim Ganetsky

2016-03-10 00:10

developer   ~0090822

Applied, thanks.

Issue History

Date Modified Username Field Change
2016-03-04 12:29 Péter Gábor New Issue
2016-03-04 12:29 Péter Gábor File Added: glazres_localization_support.diff
2016-03-04 12:46 Maxim Ganetsky Assigned To => Maxim Ganetsky
2016-03-04 12:46 Maxim Ganetsky Status new => assigned
2016-03-10 00:10 Maxim Ganetsky Fixed in Revision => 51895
2016-03-10 00:10 Maxim Ganetsky LazTarget => -
2016-03-10 00:10 Maxim Ganetsky Note Added: 0090822
2016-03-10 00:10 Maxim Ganetsky Status assigned => resolved
2016-03-10 00:10 Maxim Ganetsky Fixed in Version => 1.8
2016-03-10 00:10 Maxim Ganetsky Resolution open => fixed
2016-03-10 09:01 Péter Gábor Status resolved => closed