User Tools

Site Tools


en:app:photovision:translate

Photovision translation

Photovision

Translations directory: /languages

File format: Gnu gettext

Translation file (PhotoVision 2.x): PhotoVision2.[ISO 639-2 Code].po, example ⇒ PhotoVision2.plk.po

Translation file (PhotoVision 1.x): PhotoVision.[ISO 639-2 Code].po, example ⇒ PhotoVision.plk.po

Plugins (PhotoVision 2.1+)

Internal translation in [plugin].ini

Section in plugin cfg file: Translation_[ISO 639-2 Code] Example Polish translation:

[Translation_PLK]
ID_000=Przetłumaczony tekst 1
ID_001=Przetłumaczony tekst 2
ID_002=Przetłumaczony tekst 3

Pascal Script UI:

function TranslatePluginUI(const default_text:string; id: string; TranslateFile: String):string;

Example

TranslatePluginUI('Default_English_Text' ,'ID_001' ,plugin_INI)

Plugins (PhotoVision 1.x)

Translations directory: /languages

File format: Ini File

Default plugin translation

Pascal Script:

function Translate(const default_text:string; id: string):string;

Translation file: Default.[ISO 639-2 Code], example ⇒ Default.plk

Custom plugin translation

Pascal Script:

function TranslateUI(const default_text:string;const id: string;const TranslateFile: String):string;

Translation file: [Plugin_Name].[ISO 639-2 Code], example ⇒ MSPaint.plk

en/app/photovision/translate.txt · Last modified: 2024/01/08 19:00 by sgj

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki