View Issue Details

IDProjectCategoryView StatusLast Update
0021612LazarusIDEpublic2012-03-31 15:42
ReporterbarloneAssigned ToMaxim Ganetsky 
PrioritynormalSeveritytextReproducibilityN/A
Status closedResolutionfixed 
Product Version0.9.31 (SVN)Product Build 
Target VersionFixed in Version0.9.31 (SVN) 
Summary0021612: Updated russian translation for Cody options
Descriptionupdate for russian i18n for components\codetools\ide files
TagsNo tags attached.
Fixed in Revision36472
LazTarget-
Widgetset
Attached Files
  • cody_i18n.patch (3,481 bytes)
    Index: codymiscoptsframe.pas
    ===================================================================
    --- codymiscoptsframe.pas	(revision 36390)
    +++ codymiscoptsframe.pas	(working copy)
    @@ -8,7 +8,7 @@
       Classes, SysUtils, FileUtil, DividerBevel, LResources, Forms, Controls,
       StdCtrls, ComCtrls, FileProcs,
       IDEOptionsIntf, LazIDEIntf,
    -  CodyOpts, CodyIdentifiersDlg;
    +  CodyOpts, CodyIdentifiersDlg, CodyStrConsts;
     
     type
       { TCodyMiscOptionsFrame }
    @@ -107,25 +107,25 @@
     function TCodyMiscOptionsFrame.SecondsToStr(Seconds: integer): string;
     begin
       if Seconds>=60 then
    -    Result:=IntToStr(Seconds div 60)+' minutes'
    +    Result:=IntToStr(Seconds div 60)+crsMinutes
       else
    -    Result:=IntToStr(Seconds)+' seconds';
    +    Result:=IntToStr(Seconds)+crsSeconds;
     end;
     
     procedure TCodyMiscOptionsFrame.UDUpdateLoadDelayInfo;
     begin
    -  UDLoadDelayLabel.Caption:='Load dictionary after '+SecondsToStr(CodyUnitDictionary.LoadAfterStartInS);
    +  UDLoadDelayLabel.Caption:=crsLoadDictionaryAfter+SecondsToStr(CodyUnitDictionary.LoadAfterStartInS);
     end;
     
     procedure TCodyMiscOptionsFrame.UDUpdateSaveIntervalInfo;
     begin
    -  UDSaveIntervalLabel.Caption:='Save dictionary every '+SecondsToStr(CodyUnitDictionary.SaveIntervalInS);
    +  UDSaveIntervalLabel.Caption:=crsSaveDictionaryEvery+SecondsToStr(CodyUnitDictionary.SaveIntervalInS);
     end;
     
     constructor TCodyMiscOptionsFrame.Create(TheOwner: TComponent);
     begin
       inherited Create(TheOwner);
    -  UDDividerBevel.Caption:='Unit / Identifier Dictionary';
    +  UDDividerBevel.Caption:=crsUnitIdentifierDictionary;
       FOldOptions:=TCodyMiscOptions.Create;
     end;
     
    @@ -157,18 +157,18 @@
       );
     begin
       UDLoadDelayTrackBar.ShowHint:=true;
    -  UDLoadDelayTrackBar.Hint:='The dictionary is loaded on demand or after this time';
    +  UDLoadDelayTrackBar.Hint:=crsTheDictionaryIsLoadedHint;
       UDLoadDelayTrackBar.Min:=Low(UDLoadDelayTrackbarValues);
       UDLoadDelayTrackBar.Max:=High(UDLoadDelayTrackbarValues);
     
       UDSaveIntervalLabel.ShowHint:=true;
    -  UDSaveIntervalLabel.Hint:='The dictionary is saved in intervals';
    +  UDSaveIntervalLabel.Hint:=crsTheDictionaryIsSavedHint;
       UDSaveIntervalTrackBar.Min:=Low(UDSaveIntervalTrackbarValues);
       UDSaveIntervalTrackBar.Max:=High(UDSaveIntervalTrackbarValues);
     
    -  UDSaveButton.Caption:='Save dictionary now';
    +  UDSaveButton.Caption:=crsSaveDictionaryNowHint;
       UDSaveButton.ShowHint:=true;
    -  UDSaveButton.Hint:='Save to file '+CodyUnitDictionary.GetFilename;
    +  UDSaveButton.Hint:=crsSaveToFileHint+CodyUnitDictionary.GetFilename;
     end;
     
     class function TCodyMiscOptionsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
    Index: codystrconsts.pas
    ===================================================================
    --- codystrconsts.pas	(revision 36390)
    +++ codystrconsts.pas	(working copy)
    @@ -208,6 +208,15 @@
         +' Maybe the identifier does not exist for this platform or maybe the'
         +' identifier was deleted/renamed.';
       crsPackage2 = 'Package: %s';
    +  crsMinutes = ' minutes';
    +  crsSeconds = ' seconds';
    +  crsLoadDictionaryAfter = 'Load dictionary after ';
    +  crsSaveDictionaryEvery = 'Save dictionary every ';
    +  crsUnitIdentifierDictionary = 'Unit / Identifier Dictionary'
    +  crsTheDictionaryIsLoadedHint = 'The dictionary is loaded on demand or after this time';
    +  crsTheDictionaryIsSavedHint = 'The dictionary is saved in intervals';
    +  crsSaveDictionaryNowHint = 'Save dictionary now';
    +  crsSaveToFileHint = 'Save to file ';
     
     implementation
     
    
    cody_i18n.patch (3,481 bytes)
  • codystrconsts.ru.po (22,491 bytes)

Activities

2012-03-30 18:10

 

cody_i18n.patch (3,481 bytes)
Index: codymiscoptsframe.pas
===================================================================
--- codymiscoptsframe.pas	(revision 36390)
+++ codymiscoptsframe.pas	(working copy)
@@ -8,7 +8,7 @@
   Classes, SysUtils, FileUtil, DividerBevel, LResources, Forms, Controls,
   StdCtrls, ComCtrls, FileProcs,
   IDEOptionsIntf, LazIDEIntf,
-  CodyOpts, CodyIdentifiersDlg;
+  CodyOpts, CodyIdentifiersDlg, CodyStrConsts;
 
 type
   { TCodyMiscOptionsFrame }
@@ -107,25 +107,25 @@
 function TCodyMiscOptionsFrame.SecondsToStr(Seconds: integer): string;
 begin
   if Seconds>=60 then
-    Result:=IntToStr(Seconds div 60)+' minutes'
+    Result:=IntToStr(Seconds div 60)+crsMinutes
   else
-    Result:=IntToStr(Seconds)+' seconds';
+    Result:=IntToStr(Seconds)+crsSeconds;
 end;
 
 procedure TCodyMiscOptionsFrame.UDUpdateLoadDelayInfo;
 begin
-  UDLoadDelayLabel.Caption:='Load dictionary after '+SecondsToStr(CodyUnitDictionary.LoadAfterStartInS);
+  UDLoadDelayLabel.Caption:=crsLoadDictionaryAfter+SecondsToStr(CodyUnitDictionary.LoadAfterStartInS);
 end;
 
 procedure TCodyMiscOptionsFrame.UDUpdateSaveIntervalInfo;
 begin
-  UDSaveIntervalLabel.Caption:='Save dictionary every '+SecondsToStr(CodyUnitDictionary.SaveIntervalInS);
+  UDSaveIntervalLabel.Caption:=crsSaveDictionaryEvery+SecondsToStr(CodyUnitDictionary.SaveIntervalInS);
 end;
 
 constructor TCodyMiscOptionsFrame.Create(TheOwner: TComponent);
 begin
   inherited Create(TheOwner);
-  UDDividerBevel.Caption:='Unit / Identifier Dictionary';
+  UDDividerBevel.Caption:=crsUnitIdentifierDictionary;
   FOldOptions:=TCodyMiscOptions.Create;
 end;
 
@@ -157,18 +157,18 @@
   );
 begin
   UDLoadDelayTrackBar.ShowHint:=true;
-  UDLoadDelayTrackBar.Hint:='The dictionary is loaded on demand or after this time';
+  UDLoadDelayTrackBar.Hint:=crsTheDictionaryIsLoadedHint;
   UDLoadDelayTrackBar.Min:=Low(UDLoadDelayTrackbarValues);
   UDLoadDelayTrackBar.Max:=High(UDLoadDelayTrackbarValues);
 
   UDSaveIntervalLabel.ShowHint:=true;
-  UDSaveIntervalLabel.Hint:='The dictionary is saved in intervals';
+  UDSaveIntervalLabel.Hint:=crsTheDictionaryIsSavedHint;
   UDSaveIntervalTrackBar.Min:=Low(UDSaveIntervalTrackbarValues);
   UDSaveIntervalTrackBar.Max:=High(UDSaveIntervalTrackbarValues);
 
-  UDSaveButton.Caption:='Save dictionary now';
+  UDSaveButton.Caption:=crsSaveDictionaryNowHint;
   UDSaveButton.ShowHint:=true;
-  UDSaveButton.Hint:='Save to file '+CodyUnitDictionary.GetFilename;
+  UDSaveButton.Hint:=crsSaveToFileHint+CodyUnitDictionary.GetFilename;
 end;
 
 class function TCodyMiscOptionsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
Index: codystrconsts.pas
===================================================================
--- codystrconsts.pas	(revision 36390)
+++ codystrconsts.pas	(working copy)
@@ -208,6 +208,15 @@
     +' Maybe the identifier does not exist for this platform or maybe the'
     +' identifier was deleted/renamed.';
   crsPackage2 = 'Package: %s';
+  crsMinutes = ' minutes';
+  crsSeconds = ' seconds';
+  crsLoadDictionaryAfter = 'Load dictionary after ';
+  crsSaveDictionaryEvery = 'Save dictionary every ';
+  crsUnitIdentifierDictionary = 'Unit / Identifier Dictionary'
+  crsTheDictionaryIsLoadedHint = 'The dictionary is loaded on demand or after this time';
+  crsTheDictionaryIsSavedHint = 'The dictionary is saved in intervals';
+  crsSaveDictionaryNowHint = 'Save dictionary now';
+  crsSaveToFileHint = 'Save to file ';
 
 implementation
 
cody_i18n.patch (3,481 bytes)

2012-03-30 18:10

 

codystrconsts.ru.po (22,491 bytes)

Maxim Ganetsky

2012-03-31 00:07

developer   ~0058205

I made changes inspired by your patch, thanks.

Please test and close if ok.

Issue History

Date Modified Username Field Change
2012-03-30 18:10 barlone New Issue
2012-03-30 18:10 barlone File Added: cody_i18n.patch
2012-03-30 18:10 barlone File Added: codystrconsts.ru.po
2012-03-30 22:46 Maxim Ganetsky Status new => assigned
2012-03-30 22:46 Maxim Ganetsky Assigned To => Maxim Ganetsky
2012-03-31 00:07 Maxim Ganetsky Fixed in Revision => 36472
2012-03-31 00:07 Maxim Ganetsky LazTarget => -
2012-03-31 00:07 Maxim Ganetsky Status assigned => resolved
2012-03-31 00:07 Maxim Ganetsky Fixed in Version => 0.9.31 (SVN)
2012-03-31 00:07 Maxim Ganetsky Resolution open => fixed
2012-03-31 00:07 Maxim Ganetsky Note Added: 0058205
2012-03-31 15:42 barlone Status resolved => closed