Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
DitriXNew committed May 3, 2023
1 parent 6c57173 commit 51a441d
Show file tree
Hide file tree
Showing 31 changed files with 2,534 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@
<key>en</key>
<value>Row key</value>
</synonym>
<synonym>
<key>ru</key>
<value>Ключ строки</value>
</synonym>
<synonym>
<key>tr</key>
<value>Satır anahtarı</value>
</synonym>
<type>
<types>DefinedType.typeRowID</types>
</type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@
<key>en</key>
<value>Expense type</value>
</synonym>
<synonym>
<key>ru</key>
<value>Статьи затрат</value>
</synonym>
<synonym>
<key>tr</key>
<value>Gider tipi</value>
</synonym>
<type>
<types>CatalogRef.ExpenseAndRevenueTypes</types>
</type>
Expand All @@ -259,6 +267,14 @@
<key>en</key>
<value>Type</value>
</synonym>
<synonym>
<key>ru</key>
<value>Вид</value>
</synonym>
<synonym>
<key>tr</key>
<value>Tip</value>
</synonym>
<type>
<types>EnumRef.PayrollTypes</types>
</type>
Expand Down
12 changes: 1 addition & 11 deletions IRP/src/Catalogs/Files/Forms/ItemForm/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,7 @@ EndProcedure

&AtServer
Function CreatePictureParameters()
PictureParameters = New Structure();
PictureParameters.Insert("Ref", Object.Ref);
PictureParameters.Insert("Description", Object.Description);
PictureParameters.Insert("FileID", Object.FileID);
PictureParameters.Insert("isFilledVolume", Object.Volume <> Catalogs.IntegrationSettings.EmptyRef());
PictureParameters.Insert("GETIntegrationSettings", Object.Volume.GETIntegrationSettings);
PictureParameters.Insert("isLocalPictureURL", Object.Volume.GETIntegrationSettings.IntegrationType
= Enums.IntegrationType.LocalFileStorage);
PictureParameters.Insert("URI", Object.URI);

Return PictureParameters;
Return PictureViewerServer.CreatePictureParameters(Object);
EndFunction

&AtClient
Expand Down
16 changes: 16 additions & 0 deletions IRP/src/Catalogs/IntegrationSettings/IntegrationSettings.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@
<key>en</key>
<value>Hide</value>
</synonym>
<synonym>
<key>ru</key>
<value>Скрыть</value>
</synonym>
<synonym>
<key>tr</key>
<value>Sakla</value>
</synonym>
<type>
<types>Boolean</types>
</type>
Expand Down Expand Up @@ -317,6 +325,14 @@
<key>en</key>
<value>Hide</value>
</synonym>
<synonym>
<key>ru</key>
<value>Скрыть</value>
</synonym>
<synonym>
<key>tr</key>
<value>Sakla</value>
</synonym>
<type>
<types>Boolean</types>
</type>
Expand Down
40 changes: 40 additions & 0 deletions IRP/src/Catalogs/Taxes/Forms/ChoiceTransactionTypes/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,14 @@
<key>en</key>
<value>Use</value>
</title>
<title>
<key>ru</key>
<value>Использование</value>
</title>
<title>
<key>tr</key>
<value>Kullan</value>
</title>
<id>2</id>
<valueType>
<types>Boolean</types>
Expand All @@ -404,6 +412,14 @@
<key>en</key>
<value>Transaction type</value>
</title>
<title>
<key>ru</key>
<value>Вид операции</value>
</title>
<title>
<key>tr</key>
<value>İşlem tipi</value>
</title>
<id>3</id>
<valueType>
<types>EnumRef</types>
Expand All @@ -422,6 +438,14 @@
<key>en</key>
<value>Document name</value>
</title>
<title>
<key>ru</key>
<value>Наименование документа</value>
</title>
<title>
<key>tr</key>
<value>Evrak ismi</value>
</title>
<id>4</id>
<valueType>
<types>String</types>
Expand All @@ -440,6 +464,14 @@
<key>en</key>
<value>Ok</value>
</title>
<title>
<key>ru</key>
<value>Ок</value>
</title>
<title>
<key>tr</key>
<value>Tamam</value>
</title>
<id>1</id>
<use>
<common>true</common>
Expand All @@ -457,6 +489,14 @@
<key>en</key>
<value>Cancel</value>
</title>
<title>
<key>ru</key>
<value>Отмена</value>
</title>
<title>
<key>tr</key>
<value>İptal</value>
</title>
<id>2</id>
<use>
<common>true</common>
Expand Down
16 changes: 16 additions & 0 deletions IRP/src/Catalogs/Taxes/Taxes.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,14 @@
<key>en</key>
<value>Document name</value>
</synonym>
<synonym>
<key>ru</key>
<value>Наименование документа</value>
</synonym>
<synonym>
<key>tr</key>
<value>Evrak ismi</value>
</synonym>
<type>
<types>String</types>
<stringQualifiers>
Expand All @@ -362,6 +370,14 @@
<key>en</key>
<value>Transaction type</value>
</synonym>
<synonym>
<key>ru</key>
<value>Вид операции</value>
</synonym>
<synonym>
<key>tr</key>
<value>İşlem tipi</value>
</synonym>
<type>
<types>EnumRef</types>
</type>
Expand Down
12 changes: 1 addition & 11 deletions IRP/src/CommonForms/AttachFile/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,5 @@ EndProcedure

&AtServer
Function CreatePictureParameters(File)
PictureParameters = New Structure();
PictureParameters.Insert("Ref", File.Ref);
PictureParameters.Insert("Description", File.Description);
PictureParameters.Insert("FileID", File.FileID);
PictureParameters.Insert("isFilledVolume", File.Volume <> Catalogs.IntegrationSettings.EmptyRef());
PictureParameters.Insert("GETIntegrationSettings", File.Volume.GETIntegrationSettings);
PictureParameters.Insert("isLocalPictureURL", File.Volume.GETIntegrationSettings.IntegrationType
= Enums.IntegrationType.LocalFileStorage);
PictureParameters.Insert("URI", File.URI);

Return PictureParameters;
Return PictureViewerServer.CreatePictureParameters(File);
EndFunction
16 changes: 16 additions & 0 deletions IRP/src/CommonForms/UpdateItemListInfo/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,14 @@
<key>en</key>
<value>Check all</value>
</title>
<title>
<key>ru</key>
<value>Выбрать все</value>
</title>
<title>
<key>tr</key>
<value>Tümü işaretle</value>
</title>
<id>3</id>
<use>
<common>true</common>
Expand All @@ -745,6 +753,14 @@
<key>en</key>
<value>Uncheck all</value>
</title>
<title>
<key>ru</key>
<value>Отменить все</value>
</title>
<title>
<key>tr</key>
<value>Tümü kaldır</value>
</title>
<id>4</id>
<use>
<common>true</common>
Expand Down
4 changes: 3 additions & 1 deletion IRP/src/CommonModules/Localization/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,9 @@ Function Strings(Lang) Export
Strings.Insert("CLV_1", NStr("en='All';
|ru='Все';
|tr='Tümü'", Lang));
Strings.Insert("CLV_2", NStr("en='Transaction type'", Lang));
Strings.Insert("CLV_2", NStr("en='Transaction type';
|ru='Вид операции';
|tr='İşlem tipi'", Lang));
#EndRegion

#Region SalesOrderStatusReport
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/CommonModules/PictureViewerClient/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Function UploadPicture(File, Volume) Export
Return FileInfo;
EndFunction

Function ExtensionCall_UploadPicture(FileInfo, Parameters)
Function ExtensionCall_UploadPicture(FileInfo, Parameters) Export
Return False
EndFunction

Expand Down
67 changes: 56 additions & 11 deletions IRP/src/CommonModules/PictureViewerClientServer/Module.bsl
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@

// File info.
//
// Returns:
// Structure - File info:
// * Success - Boolean -
// * FileID - String -
// * FileName - String -
// * Extension - String -
// * Height - Number -
// * Width - Number -
// * Size - Number -
// * URI - String -
// * MD5 - String -
// * Ref - CatalogRef.Files -
// * Preview - Undefined, BinaryData -
Function FileInfo() Export
Return New Structure("Success,
|FileID,
|FileName,
|Height,
|Width,
|Size,
|Extension,
|URI,
|MD5,
|Ref,
|Preview");
FileInfo = New Structure();
FileInfo.Insert("Success", False);
FileInfo.Insert("FileID", "");
FileInfo.Insert("FileName", "");
FileInfo.Insert("Extension", "");
FileInfo.Insert("Height", 0);
FileInfo.Insert("Width", 0);
FileInfo.Insert("Size", 0);
FileInfo.Insert("URI", "");
FileInfo.Insert("MD5", "");
FileInfo.Insert("Ref", PredefinedValue("Catalog.Files.EmptyRef"));
FileInfo.Insert("Preview", Undefined);
Return FileInfo;
EndFunction

Procedure SetFileInfo(FileInfo, Object) Export
Expand All @@ -36,4 +54,31 @@ EndFunction

Function PreparePictureURL(IntegrationSettings, URI, UUID = "", AddInfo = Undefined) Export
Return URI;
EndFunction

// Get image extensions.
//
// Parameters:
// Mode - Number - Mode:
// 0 - only extension
// 1 - begin on a point
// 2 - as file pattern
//
// Returns:
// Array - Get image extensions
Function GetImageExtensions(Mode = 1) Export
// BSLLS:Typo-off
ImgList = ".ase,.art,.bmp,.blp,.cd5,.cit,.cpt,.cr2,.cut,.dds,.dib,.djvu,.egt,.exif,.gif,.gpl,.grf,.icns,.ico,.iff,.jng,.jpeg,.jpg,.jfif,.jp2,.jps,.lbm,.max,.miff,.mng,.msp,.nitf,.ota,.pbm,.pc1,.pc2,.pc3,.pcf,.pcx,.pdn,.pgm,.PI1,.PI2,.PI3,.pict,.pct,.pnm,.pns,.ppm,.psb,.psd,.pdd,.psp,.px,.pxm,.pxr,.qfx,.raw,.rle,.sct,.sgi,.rgb,.int,.bw,.tga,.tiff,.tif,.vtf,.xbm,.xcf,.xpm,.3dv,.amf,.ai,.awg,.cgm,.cdr,.cmx,.dxf,.e2d,.egt,.eps,.fs,.gbr,.odg,.svg,.stl,.vrml,.x3d,.sxd,.v2d,.vnd,.wmf,.emf,.art,.xar,.png,.webp,.jxr,.hdp,.wdp,.cur,.ecw,.iff,.lbm,.liff,.nrrd,.pam,.pcx,.pgf,.sgi,.rgb,.rgba,.bw,.int,.inta,.sid,.ras,.sun,.tga";
// BSLLS:Typo-on
Result = StrSplit(ImgList, ",");
If Not Mode = 1 Then
For index = 0 To Result.UBound() Do
If Mode = 0 Then
Result[index] = Mid(Result[index], 2);
ElsIf Mode = 2 Then
Result[index] = "*" + Result[index];
EndIf;
EndDo;
EndIf;
Return Result;
EndFunction
Loading

0 comments on commit 51a441d

Please sign in to comment.