Ignore:
Timestamp:
May 5, 2019, 12:09:56 AM (5 years ago)
Author:
chronos
Message:
Location:
trunk/Packages/CoolTranslator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CoolTranslator/CoolTranslator.lpk

    r54 r102  
    1 <?xml version="1.0"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<CONFIG>
    33  <Package Version="4">
    44    <PathDelim Value="\"/>
    55    <Name Value="CoolTranslator"/>
     6    <Type Value="RunAndDesignTime"/>
    67    <AddToProjectUsesSection Value="True"/>
    78    <Author Value="Chronos (robie@centrum.cz)"/>
    89    <CompilerOptions>
    9       <Version Value="10"/>
     10      <Version Value="11"/>
    1011      <PathDelim Value="\"/>
    1112      <SearchPaths>
    12         <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
     13        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    1314      </SearchPaths>
     15      <Parsing>
     16        <SyntaxOptions>
     17          <CStyleOperator Value="False"/>
     18          <AllowLabel Value="False"/>
     19          <CPPInline Value="False"/>
     20        </SyntaxOptions>
     21      </Parsing>
     22      <CodeGeneration>
     23        <Optimizations>
     24          <OptimizationLevel Value="0"/>
     25        </Optimizations>
     26      </CodeGeneration>
     27      <Linking>
     28        <Debugging>
     29          <GenerateDebugInfo Value="False"/>
     30        </Debugging>
     31      </Linking>
    1432      <Other>
    15         <CompilerPath Value="$(CompPath)"/>
     33        <CompilerMessages>
     34          <IgnoredMessages idx5024="True"/>
     35        </CompilerMessages>
    1636      </Other>
    1737    </CompilerOptions>
     
    3858      <OutDir Value="Languages"/>
    3959    </i18n>
    40     <Type Value="RunAndDesignTime"/>
    4160    <RequiredPkgs Count="2">
    4261      <Item1>
  • trunk/Packages/CoolTranslator/UCoolTranslator.pas

    r85 r102  
    127127  I, J: Integer;
    128128  Po: TPoFile;
     129  Item: TPOFileItem;
    129130begin
    130131  TranslateComponentRecursive(Application);
     
    136137    with TPoFile(FPoFiles[I]) do
    137138      for J := 0 to Items.Count - 1 do
    138       with TPoFileItem(Items[J]) do
    139         Po.Add(IdentifierLow, Original, Translation, Comments, Context,
     139      with TPoFileItem(Items[J]) do begin
     140        Item := nil;
     141        Po.FillItem(Item, IdentifierLow, Original, Translation, Comments, Context,
    140142          Flags, PreviousID);
     143      end;
    141144    Translations.TranslateResourceStrings(Po);
    142145  finally
     
    295298  Result := FPOFilesFolder;
    296299  if Copy(Result, 1, 1) <> DirectorySeparator then
    297     Result := ExtractFileDir(UTF8Encode(Application.ExeName)) +
     300    Result := ExtractFileDir(Application.ExeName) +
    298301      DirectorySeparator + Result;
    299302end;
Note: See TracChangeset for help on using the changeset viewer.